Documentation
¶
Index ¶
- func NewUDSGRPCBasedUDSink() (*udsGRPCBasedUDSink, error)
- type ApplyUDSinkErr
- type InternalErr
- type Option
- type UserDefinedSink
- func (br *UserDefinedSink) Close() error
- func (s *UserDefinedSink) ForceStop()
- func (s *UserDefinedSink) GetName() string
- func (s *UserDefinedSink) IsFull() bool
- func (s *UserDefinedSink) IsHealthy() error
- func (s *UserDefinedSink) Start() <-chan struct{}
- func (s *UserDefinedSink) Stop()
- func (s *UserDefinedSink) Write(ctx context.Context, messages []isb.Message) ([]isb.Offset, []error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewUDSGRPCBasedUDSink ¶ added in v0.5.6
func NewUDSGRPCBasedUDSink() (*udsGRPCBasedUDSink, error)
Types ¶
type ApplyUDSinkErr ¶
type ApplyUDSinkErr struct { UserUDSinkErr bool Message string InternalErr }
ApplyUDSinkErr represents any UDSink related error
func (ApplyUDSinkErr) Error ¶
func (e ApplyUDSinkErr) Error() string
func (ApplyUDSinkErr) IsInternalErr ¶
func (e ApplyUDSinkErr) IsInternalErr() bool
IsInternalErr is true if this is a platform issue. This is a blocking error.
func (ApplyUDSinkErr) IsUserUDSinkErr ¶
func (e ApplyUDSinkErr) IsUserUDSinkErr() bool
IsUserUDSinkErr is true if the problem is due to the user code in the UDSink.
type InternalErr ¶
InternalErr represents errors internal to the platform
type Option ¶
type Option func(*UserDefinedSink) error
func WithLogger ¶
func WithLogger(log *zap.SugaredLogger) Option
type UserDefinedSink ¶ added in v0.6.0
type UserDefinedSink struct {
// contains filtered or unexported fields
}
func NewUserDefinedSink ¶
func NewUserDefinedSink(vertex *dfv1.Vertex, fromBuffer isb.BufferReader, fetchWatermark fetch.Fetcher, publishWatermark map[string]publish.Publisher, opts ...Option) (*UserDefinedSink, error)
NewUserDefinedSink returns genericSink type.
func (*UserDefinedSink) Close ¶ added in v0.6.0
func (br *UserDefinedSink) Close() error
func (*UserDefinedSink) ForceStop ¶ added in v0.6.0
func (s *UserDefinedSink) ForceStop()
func (*UserDefinedSink) GetName ¶ added in v0.6.0
func (s *UserDefinedSink) GetName() string
func (*UserDefinedSink) IsFull ¶ added in v0.6.0
func (s *UserDefinedSink) IsFull() bool
func (*UserDefinedSink) IsHealthy ¶ added in v0.6.0
func (s *UserDefinedSink) IsHealthy() error
IsHealthy checks if the udsink sidecar is healthy.
func (*UserDefinedSink) Start ¶ added in v0.6.0
func (s *UserDefinedSink) Start() <-chan struct{}
func (*UserDefinedSink) Stop ¶ added in v0.6.0
func (s *UserDefinedSink) Stop()
Click to show internal directories.
Click to hide internal directories.