Documentation
¶
Index ¶
Constants ¶
View Source
const ( Protocol = "unix" Addr = "/var/run/numaflow/udsink.sock" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { CloseConn(ctx context.Context) error IsReady(ctx context.Context, in *emptypb.Empty) (bool, error) SinkFn(ctx context.Context, datumList []*sinkpb.Datum) ([]*sinkpb.Response, error) }
Client contains methods to call a gRPC client.
type Response ¶
type Response struct { // ID corresponds the ID in the message. ID string `json:"id"` // Successful or not. If it's false, "err" is expected to be present. Success bool `json:"success"` // Err represents the error message when "success" is false. Err string `json:"err,omitempty"` }
Response is the processing result of each message
func ResponseFailure ¶
func ResponseOK ¶
type Responses ¶
type Responses []Response
func ResponsesBuilder ¶
func ResponsesBuilder() Responses
ResponsesBuilder returns an empty instance of Responses
type Service ¶
type Service struct { sinkpb.UnimplementedUserDefinedSinkServer Sinker SinkHandler }
Service implements the proto gen server interface and contains the sink operation handler.
Click to show internal directories.
Click to hide internal directories.