Documentation
¶
Index ¶
- type Configuration
- type Event
- func (e *Event) GetBody() []byte
- func (e *Event) GetHeader(key string) interface{}
- func (e *Event) GetHeaders() map[string]interface{}
- func (e *Event) GetOffset() int
- func (e *Event) GetPath() string
- func (e *Event) GetShardID() int
- func (e *Event) GetSize() int
- func (e *Event) GetTimestamp() time.Time
- func (e *Event) GetTopic() string
- type SaramaLogger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct {
trigger.Configuration
Brokers []string
Topics []string
ConsumerGroup string
InitialOffset string
BalanceStrategy string
SASL struct {
Enable bool
Handshake *bool
User string
Password string
Mechanism string
// oauth
OAuth struct {
ClientID string
ClientSecret string
TokenURL string
Scopes []string
}
}
TLS struct {
Enable bool
InsecureSkipVerify bool
MinimumVersion string
}
SecretPath string
SessionTimeout string
HeartbeatInterval string
MaxProcessingTime string
RebalanceTimeout string
RebalanceRetryBackoff string
RetryBackoff string
MaxWaitTime string
MaxWaitHandlerDuringRebalance string
WorkerAllocationMode partitionworker.AllocationMode
RebalanceRetryMax int
FetchMin int
FetchDefault int
FetchMax int
ChannelBufferSize int
CACert string
AccessKey string
AccessCertificate string
LogLevel int
AckWindowSize int
Version string
// contains filtered or unexported fields
}
func NewConfiguration ¶
func NewConfiguration(id string, triggerConfiguration *functionconfig.Trigger, runtimeConfiguration *runtime.Configuration, logger logger.Logger) (*Configuration, error)
type Event ¶
type Event struct {
nuclio.AbstractEvent
// contains filtered or unexported fields
}
func (*Event) GetHeaders ¶
func (*Event) GetShardID ¶
func (*Event) GetTimestamp ¶
type SaramaLogger ¶
type SaramaLogger struct {
// contains filtered or unexported fields
}
func NewSaramaLogger ¶
func NewSaramaLogger(parentLogger logger.Logger) SaramaLogger
func (SaramaLogger) Print ¶
func (s SaramaLogger) Print(v ...interface{})
func (SaramaLogger) Printf ¶
func (s SaramaLogger) Printf(format string, v ...interface{})
func (SaramaLogger) Println ¶
func (s SaramaLogger) Println(v ...interface{})
Click to show internal directories.
Click to hide internal directories.