Skip to content

Commit

Permalink
impl
Browse files Browse the repository at this point in the history
Signed-off-by: Sidhant Kohli <[email protected]>
  • Loading branch information
Sidhant Kohli committed Jul 16, 2024
1 parent 675c431 commit 5859ca0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/info/server_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ func Read(opts ...Option) (*ServerInfo, error) {
return info, nil
}

// GetDefaultServerInfo returns a ServerInfo object with the default fields populated for Go-SDK
func GetDefaultServerInfo() *ServerInfo {
serverInfo := &ServerInfo{Protocol: UDS, Language: Go, MinimumNumaflowVersion: MinimumNumaflowVersion,
Version: GetSDKVersion()}
Expand Down
1 change: 1 addition & 0 deletions pkg/info/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const (
BatchMap MapMode = "batch-map"
)

// MapModeMetadata field is used to indicate which map mode is enabled
const MapModeMetadata = "MAP_MODE"

// MinimumNumaflowVersion specifies the minimum Numaflow version required by the current SDK version
Expand Down

0 comments on commit 5859ca0

Please sign in to comment.