Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ErrorLogger ¶
type ErrorLogger struct { }
func (*ErrorLogger) Printf ¶
func (l *ErrorLogger) Printf(msg string, args ...interface{})
type Helper ¶
type Helper struct {
// contains filtered or unexported fields
}
Helper assists in creating event handlers.
func NewDefaultHelper ¶
func NewDefaultHelper(ctx context.Context, handler *cloudevents.HandlerWrapper) *Helper
NewDefaultHelper returns a new Helper with default options.
func NewHelper ¶
func NewHelper(ctx context.Context, options *Options, handler *cloudevents.HandlerWrapper) *Helper
NewHelper returns a new Helper with options.
type Options ¶
type Options struct { Brokers []string Subjects []string GroupId string Concurrency int QueueCapacity int MinBytes int MaxBytes int StartOffset int64 ReadBatchTimeout time.Duration MaxWait time.Duration }
Options can be used to create customized handler.
func DefaultOptions ¶
DefaultOptions returns options based in config.
Click to show internal directories.
Click to hide internal directories.