Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func NewUDSGRPCBasedUDF ¶ added in v0.5.6
func NewUDSGRPCBasedUDF() (*udsGRPCBasedUDF, error)
NewUDSGRPCBasedUDF returns a new udsGRPCBasedUDF object.
Types ¶
type Applier ¶
type Applier interface {
Apply(ctx context.Context, message *isb.ReadMessage) ([]*isb.Message, error)
}
Applier applies the HTTPBasedUDF on the read message and gives back a new message. Any UserError will be retried here, while InternalErr can be returned and could be retried by the callee.
type ApplyUDFErr ¶
type ApplyUDFErr struct { UserUDFErr bool Message string InternalErr }
ApplyUDFErr represents any UDF related error
func (ApplyUDFErr) Error ¶
func (e ApplyUDFErr) Error() string
func (ApplyUDFErr) IsInternalErr ¶
func (e ApplyUDFErr) IsInternalErr() bool
IsInternalErr is true if this is a platform issue. This is a blocking error.
func (ApplyUDFErr) IsUserUDFErr ¶
func (e ApplyUDFErr) IsUserUDFErr() bool
IsUserUDFErr is true if the problem is due to the user code in the UDF.
type InternalErr ¶
InternalErr represents errors internal to the platform
Click to show internal directories.
Click to hide internal directories.