Documentation ¶
Index ¶
- Variables
- func RegisterUserDefinedSinkServer(s grpc.ServiceRegistrar, srv UserDefinedSinkServer)
- type Datum
- func (*Datum) Descriptor() ([]byte, []int)deprecated
- func (x *Datum) GetEventTime() *EventTime
- func (x *Datum) GetId() string
- func (x *Datum) GetKey() string
- func (x *Datum) GetValue() []byte
- func (x *Datum) GetWatermark() *Watermark
- func (*Datum) ProtoMessage()
- func (x *Datum) ProtoReflect() protoreflect.Message
- func (x *Datum) Reset()
- func (x *Datum) String() string
- type EventTime
- type ReadyResponse
- type Response
- func (*Response) Descriptor() ([]byte, []int)deprecated
- func (x *Response) GetErrMsg() string
- func (x *Response) GetId() string
- func (x *Response) GetSuccess() bool
- func (*Response) ProtoMessage()
- func (x *Response) ProtoReflect() protoreflect.Message
- func (x *Response) Reset()
- func (x *Response) String() string
- type ResponseList
- type UnimplementedUserDefinedSinkServer
- type UnsafeUserDefinedSinkServer
- type UserDefinedSinkClient
- type UserDefinedSinkServer
- type UserDefinedSink_SinkFnClient
- type UserDefinedSink_SinkFnServer
- type Watermark
Constants ¶
This section is empty.
Variables ¶
var File_pkg_apis_proto_sink_v1_udsink_proto protoreflect.FileDescriptor
var UserDefinedSink_ServiceDesc = grpc.ServiceDesc{ ServiceName: "sink.v1.UserDefinedSink", HandlerType: (*UserDefinedSinkServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "IsReady", Handler: _UserDefinedSink_IsReady_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "SinkFn", Handler: _UserDefinedSink_SinkFn_Handler, ClientStreams: true, }, }, Metadata: "pkg/apis/proto/sink/v1/udsink.proto", }
UserDefinedSink_ServiceDesc is the grpc.ServiceDesc for UserDefinedSink service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterUserDefinedSinkServer ¶
func RegisterUserDefinedSinkServer(s grpc.ServiceRegistrar, srv UserDefinedSinkServer)
Types ¶
type Datum ¶
type Datum struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` EventTime *EventTime `protobuf:"bytes,3,opt,name=event_time,json=eventTime,proto3" json:"event_time,omitempty"` Watermark *Watermark `protobuf:"bytes,4,opt,name=watermark,proto3" json:"watermark,omitempty"` Id string `protobuf:"bytes,5,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
* Datum represents a datum element.
func (*Datum) Descriptor
deprecated
func (*Datum) GetEventTime ¶
func (*Datum) GetWatermark ¶
func (*Datum) ProtoMessage ¶
func (*Datum) ProtoMessage()
func (*Datum) ProtoReflect ¶
func (x *Datum) ProtoReflect() protoreflect.Message
type EventTime ¶
type EventTime struct { // event_time is the time associated with each datum. EventTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=event_time,json=eventTime,proto3" json:"event_time,omitempty"` // contains filtered or unexported fields }
func (*EventTime) Descriptor
deprecated
func (*EventTime) GetEventTime ¶
func (x *EventTime) GetEventTime() *timestamppb.Timestamp
func (*EventTime) ProtoMessage ¶
func (*EventTime) ProtoMessage()
func (*EventTime) ProtoReflect ¶
func (x *EventTime) ProtoReflect() protoreflect.Message
type ReadyResponse ¶
type ReadyResponse struct { Ready bool `protobuf:"varint,1,opt,name=ready,proto3" json:"ready,omitempty"` // contains filtered or unexported fields }
* ReadyResponse is the health check result.
func (*ReadyResponse) Descriptor
deprecated
func (*ReadyResponse) Descriptor() ([]byte, []int)
Deprecated: Use ReadyResponse.ProtoReflect.Descriptor instead.
func (*ReadyResponse) GetReady ¶
func (x *ReadyResponse) GetReady() bool
func (*ReadyResponse) ProtoMessage ¶
func (*ReadyResponse) ProtoMessage()
func (*ReadyResponse) ProtoReflect ¶
func (x *ReadyResponse) ProtoReflect() protoreflect.Message
func (*ReadyResponse) Reset ¶
func (x *ReadyResponse) Reset()
func (*ReadyResponse) String ¶
func (x *ReadyResponse) String() string
type Response ¶
type Response struct { // id is the ID of the message, can be used to uniquely identify the message. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // success denotes the status of persisting to disk. if set to false, it means writing to sink for the message failed. Success bool `protobuf:"varint,2,opt,name=success,proto3" json:"success,omitempty"` // err_msg is the error message, set it if success is set to false. ErrMsg string `protobuf:"bytes,3,opt,name=err_msg,json=errMsg,proto3" json:"err_msg,omitempty"` // contains filtered or unexported fields }
* Response is the individual response of each message written to the sink.
func (*Response) Descriptor
deprecated
func (*Response) GetSuccess ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type ResponseList ¶
type ResponseList struct { Responses []*Response `protobuf:"bytes,1,rep,name=responses,proto3" json:"responses,omitempty"` // contains filtered or unexported fields }
* ResponseList is the list of responses. The number of elements in this list will be equal to the number of Datum elements passed to the SinkFn.
func (*ResponseList) Descriptor
deprecated
func (*ResponseList) Descriptor() ([]byte, []int)
Deprecated: Use ResponseList.ProtoReflect.Descriptor instead.
func (*ResponseList) GetResponses ¶
func (x *ResponseList) GetResponses() []*Response
func (*ResponseList) ProtoMessage ¶
func (*ResponseList) ProtoMessage()
func (*ResponseList) ProtoReflect ¶
func (x *ResponseList) ProtoReflect() protoreflect.Message
func (*ResponseList) Reset ¶
func (x *ResponseList) Reset()
func (*ResponseList) String ¶
func (x *ResponseList) String() string
type UnimplementedUserDefinedSinkServer ¶
type UnimplementedUserDefinedSinkServer struct { }
UnimplementedUserDefinedSinkServer must be embedded to have forward compatible implementations.
func (UnimplementedUserDefinedSinkServer) IsReady ¶
func (UnimplementedUserDefinedSinkServer) IsReady(context.Context, *emptypb.Empty) (*ReadyResponse, error)
func (UnimplementedUserDefinedSinkServer) SinkFn ¶
func (UnimplementedUserDefinedSinkServer) SinkFn(UserDefinedSink_SinkFnServer) error
type UnsafeUserDefinedSinkServer ¶
type UnsafeUserDefinedSinkServer interface {
// contains filtered or unexported methods
}
UnsafeUserDefinedSinkServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserDefinedSinkServer will result in compilation errors.
type UserDefinedSinkClient ¶
type UserDefinedSinkClient interface { // SinkFn writes the Datum to a user defined sink. SinkFn(ctx context.Context, opts ...grpc.CallOption) (UserDefinedSink_SinkFnClient, error) // IsReady is the heartbeat endpoint for gRPC. IsReady(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ReadyResponse, error) }
UserDefinedSinkClient is the client API for UserDefinedSink service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewUserDefinedSinkClient ¶
func NewUserDefinedSinkClient(cc grpc.ClientConnInterface) UserDefinedSinkClient
type UserDefinedSinkServer ¶
type UserDefinedSinkServer interface { // SinkFn writes the Datum to a user defined sink. SinkFn(UserDefinedSink_SinkFnServer) error // IsReady is the heartbeat endpoint for gRPC. IsReady(context.Context, *emptypb.Empty) (*ReadyResponse, error) // contains filtered or unexported methods }
UserDefinedSinkServer is the server API for UserDefinedSink service. All implementations must embed UnimplementedUserDefinedSinkServer for forward compatibility
type UserDefinedSink_SinkFnClient ¶
type UserDefinedSink_SinkFnClient interface { Send(*Datum) error CloseAndRecv() (*ResponseList, error) grpc.ClientStream }
type UserDefinedSink_SinkFnServer ¶
type UserDefinedSink_SinkFnServer interface { SendAndClose(*ResponseList) error Recv() (*Datum, error) grpc.ServerStream }
type Watermark ¶
type Watermark struct { // watermark is the monotonically increasing time which denotes completeness for the given time for the given vertex. // This watermark can be used to track completeness before persisting to sink. Watermark *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=watermark,proto3" json:"watermark,omitempty"` // contains filtered or unexported fields }
func (*Watermark) Descriptor
deprecated
func (*Watermark) GetWatermark ¶
func (x *Watermark) GetWatermark() *timestamppb.Timestamp
func (*Watermark) ProtoMessage ¶
func (*Watermark) ProtoMessage()
func (*Watermark) ProtoReflect ¶
func (x *Watermark) ProtoReflect() protoreflect.Message