v1

package
v0.1008.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_pkg_apis_proto_sink_v1_udsink_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Datum.ProtoReflect.Descriptor instead.

func (*Datum) GetEventTime

func (x *Datum) GetEventTime() *EventTime

func (*Datum) GetId

func (x *Datum) GetId() string

func (*Datum) GetKey

func (x *Datum) GetKey() string

func (*Datum) GetValue

func (x *Datum) GetValue() []byte

func (*Datum) GetWatermark

func (x *Datum) GetWatermark() *Watermark

func (*Datum) ProtoMessage

func (*Datum) ProtoMessage()

func (*Datum) ProtoReflect

func (x *Datum) ProtoReflect() protoreflect.Message

func (*Datum) Reset

func (x *Datum) Reset()

func (*Datum) String

func (x *Datum) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use EventTime.ProtoReflect.Descriptor instead.

func (*EventTime) GetEventTime

func (x *EventTime) GetEventTime() *timestamppb.Timestamp

func (*EventTime) ProtoMessage

func (*EventTime) ProtoMessage()

func (*EventTime) ProtoReflect

func (x *EventTime) ProtoReflect() protoreflect.Message

func (*EventTime) Reset

func (x *EventTime) Reset()

func (*EventTime) String

func (x *EventTime) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetErrMsg

func (x *Response) GetErrMsg() string

func (*Response) GetId

func (x *Response) GetId() string

func (*Response) GetSuccess

func (x *Response) GetSuccess() bool

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

func (x *Response) ProtoReflect() protoreflect.Message

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

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) SinkFn

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.

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) Descriptor() ([]byte, []int)

Deprecated: Use Watermark.ProtoReflect.Descriptor instead.

func (*Watermark) GetWatermark

func (x *Watermark) GetWatermark() *timestamppb.Timestamp

func (*Watermark) ProtoMessage

func (*Watermark) ProtoMessage()

func (*Watermark) ProtoReflect

func (x *Watermark) ProtoReflect() protoreflect.Message

func (*Watermark) Reset

func (x *Watermark) Reset()

func (*Watermark) String

func (x *Watermark) String() string

Directories

Path Synopsis
Package sinkmock is a generated GoMock package.
Package sinkmock is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL