Skip to content

Commit

Permalink
chore: update readme (#94)
Browse files Browse the repository at this point in the history
Signed-off-by: Yashash H L <[email protected]>
  • Loading branch information
yhl25 authored Jan 4, 2024
1 parent 2903e27 commit 133ef26
Show file tree
Hide file tree
Showing 19 changed files with 23 additions and 21 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ This SDK provides the interfaces to implement [Numaflow](https://github.com/numa
Source Transformer, Functions, Sinks or SideInputs in Golang.
- Implement [User Defined Sources](https://pkg.go.dev/github.com/numaproj/numaflow-go/pkg/sourcer)
- Implement [User Defined Source Transformers](https://pkg.go.dev/github.com/numaproj/numaflow-go/pkg/sourcetransformer)
- Implement [User Defined Functions](https://pkg.go.dev/github.com/numaproj/numaflow-go/pkg/function)
- Implement [User Defined Sinks](https://pkg.go.dev/github.com/numaproj/numaflow-go/pkg/sink)
- Implement User Defined Functions
- [Map](https://pkg.go.dev/github.com/numaproj/numaflow-go/pkg/mapper)
- [Reduce](https://pkg.go.dev/github.com/numaproj/numaflow-go/pkg/reducer)
- Implement [User Defined Sinks](https://pkg.go.dev/github.com/numaproj/numaflow-go/pkg/sinker)
- Implement [User Defined SideInputs](https://pkg.go.dev/github.com/numaproj/numaflow-go/pkg/sideinput)
2 changes: 1 addition & 1 deletion pkg/mapper/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type options struct {
// Option is the interface to apply options.
type Option func(*options)

func DefaultOptions() *options {
func defaultOptions() *options {
return &options{
sockAddr: address,
maxMessageSize: defaultMaxMessageSize,
Expand Down
2 changes: 1 addition & 1 deletion pkg/mapper/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type server struct {

// NewServer creates a new map server.
func NewServer(m Mapper, inputOptions ...Option) numaflow.Server {
opts := DefaultOptions()
opts := defaultOptions()
for _, inputOption := range inputOptions {
inputOption(opts)
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/mapstreamer/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type options struct {
// Option is the interface to apply options.
type Option func(*options)

func DefaultOptions() *options {
func defaultOptions() *options {
return &options{
sockAddr: address,
maxMessageSize: defaultMaxMessageSize,
Expand Down
2 changes: 1 addition & 1 deletion pkg/mapstreamer/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type server struct {

// NewServer creates a new map streaming server.
func NewServer(ms MapStreamer, inputOptions ...Option) numaflow.Server {
opts := DefaultOptions()
opts := defaultOptions()
for _, inputOption := range inputOptions {
inputOption(opts)
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/reducer/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type options struct {
// Option is the interface to apply options.
type Option func(*options)

func DefaultOptions() *options {
func defaultOptions() *options {
return &options{
sockAddr: address,
maxMessageSize: defaultMaxMessageSize,
Expand Down
2 changes: 1 addition & 1 deletion pkg/reducer/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type server struct {

// NewServer creates a new reduce server.
func NewServer(r ReducerCreator, inputOptions ...Option) numaflow.Server {
opts := DefaultOptions()
opts := defaultOptions()
for _, inputOption := range inputOptions {
inputOption(opts)
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/reducestreamer/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type options struct {
// Option is the interface to apply options.
type Option func(*options)

func DefaultOptions() *options {
func defaultOptions() *options {
return &options{
sockAddr: address,
maxMessageSize: defaultMaxMessageSize,
Expand Down
2 changes: 1 addition & 1 deletion pkg/reducestreamer/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type server struct {

// NewServer creates a new reduceStream server.
func NewServer(r ReduceStreamerCreator, inputOptions ...Option) numaflow.Server {
opts := DefaultOptions()
opts := defaultOptions()
for _, inputOption := range inputOptions {
inputOption(opts)
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/sessionreducer/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type options struct {
// Option is the interface to apply options.
type Option func(*options)

func DefaultOptions() *options {
func defaultOptions() *options {
return &options{
sockAddr: address,
maxMessageSize: defaultMaxMessageSize,
Expand Down
2 changes: 1 addition & 1 deletion pkg/sessionreducer/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type server struct {

// NewServer creates a new session reduce server.
func NewServer(r SessionReducerCreator, inputOptions ...Option) numaflow.Server {
opts := DefaultOptions()
opts := defaultOptions()
for _, inputOption := range inputOptions {
inputOption(opts)
}
Expand Down
4 changes: 2 additions & 2 deletions pkg/sideinput/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ type options struct {
// Option is the interface to apply options.
type Option func(*options)

// DefaultOptions returns the default options.
func DefaultOptions() *options {
// defaultOptions returns the default options.
func defaultOptions() *options {
return &options{
sockAddr: address,
maxMessageSize: defaultMaxMessageSize,
Expand Down
2 changes: 1 addition & 1 deletion pkg/sideinput/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type server struct {

// NewSideInputServer creates a new server object.
func NewSideInputServer(r SideInputRetriever, inputOptions ...Option) numaflow.Server {
opts := DefaultOptions()
opts := defaultOptions()
for _, inputOption := range inputOptions {
inputOption(opts)
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/sinker/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type options struct {
// Option is the interface to apply options.
type Option func(*options)

func DefaultOptions() *options {
func defaultOptions() *options {
return &options{
sockAddr: address,
maxMessageSize: defaultMaxMessageSize,
Expand Down
2 changes: 1 addition & 1 deletion pkg/sinker/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type sinkServer struct {

// NewServer creates a new sinkServer object.
func NewServer(h Sinker, inputOptions ...Option) numaflow.Server {
opts := DefaultOptions()
opts := defaultOptions()
for _, inputOption := range inputOptions {
inputOption(opts)
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/sourcer/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type options struct {
// Option is the interface to apply options.
type Option func(*options)

func DefaultOptions() *options {
func defaultOptions() *options {
return &options{
sockAddr: address,
maxMessageSize: defaultMaxMessageSize,
Expand Down
2 changes: 1 addition & 1 deletion pkg/sourcer/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type server struct {
func NewServer(
source Sourcer,
inputOptions ...Option) numaflow.Server {
var opts = DefaultOptions()
var opts = defaultOptions()

for _, inputOption := range inputOptions {
inputOption(opts)
Expand Down
2 changes: 1 addition & 1 deletion pkg/sourcetransformer/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type options struct {
// Option is the interface to apply options.
type Option func(*options)

func DefaultOptions() *options {
func defaultOptions() *options {
return &options{
sockAddr: address,
maxMessageSize: defaultMaxMessageSize,
Expand Down
2 changes: 1 addition & 1 deletion pkg/sourcetransformer/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type server struct {

// NewServer creates a new SourceTransformer server.
func NewServer(m SourceTransformer, inputOptions ...Option) numaflow.Server {
opts := DefaultOptions()
opts := defaultOptions()
for _, inputOption := range inputOptions {
inputOption(opts)
}
Expand Down

0 comments on commit 133ef26

Please sign in to comment.