Documentation ¶
Index ¶
- Constants
- func JSONMarshaller(message *message.Message) (types.PutRecordsRequestEntry, error)
- func JSONUnmarshaller(record types.Record) (*message.Message, error)
- type ClientOptions
- type Marshaller
- type MessageData
- type PubBuilder
- type Publisher
- type StdLogger
- func (l *StdLogger) Debug(msg string, fields watermill.LogFields)
- func (l *StdLogger) Error(msg string, err error, fields watermill.LogFields)
- func (l *StdLogger) Info(msg string, fields watermill.LogFields)
- func (l *StdLogger) Trace(msg string, fields watermill.LogFields)
- func (l *StdLogger) With(fields watermill.LogFields) watermill.LoggerAdapter
- func (l *StdLogger) WithDebug(debug bool) *StdLogger
- func (l *StdLogger) WithPrefix(prefix string) *StdLogger
- type SubBuilder
- type Unmarshaller
Constants ¶
View Source
const ApproximateArrivalTimestampKey = "approximateArrivalTimestamp"
View Source
const PartitionKeyKey = "partitionKey"
View Source
const ShardIDKey = "shardID"
Variables ¶
This section is empty.
Functions ¶
func JSONMarshaller ¶
func JSONMarshaller(message *message.Message) (types.PutRecordsRequestEntry, error)
Types ¶
type ClientOptions ¶
type Marshaller ¶
type Marshaller func(message *message.Message) (types.PutRecordsRequestEntry, error)
type MessageData ¶
type PubBuilder ¶
type PubBuilder struct {
// contains filtered or unexported fields
}
func PublisherBuilder ¶
func PublisherBuilder(options *ClientOptions, optFuncs ...func(options *ClientOptions)) PubBuilder
func (PubBuilder) Build ¶
func (b PubBuilder) Build() *Publisher
func (PubBuilder) WithEndpoint ¶
func (b PubBuilder) WithEndpoint(endpoint string) PubBuilder
func (PubBuilder) WithMarshaller ¶
func (b PubBuilder) WithMarshaller(marshaller Marshaller) PubBuilder
type StdLogger ¶
type StdLogger struct {
// contains filtered or unexported fields
}
func NewLogger ¶
NewLogger creates a Watermill logger that prints to Stdout This is different from watermill.NewLogger in that it does not print the caller file/line. Due to the log adapter used for the KCL library, the file location is incorrect.
func NewStdLogger ¶
func (*StdLogger) With ¶
func (l *StdLogger) With(fields watermill.LogFields) watermill.LoggerAdapter
func (*StdLogger) WithPrefix ¶
type SubBuilder ¶
type SubBuilder struct {
// contains filtered or unexported fields
}
func SubscriberBuilder ¶
func SubscriberBuilder(kclConfig *config.KinesisClientLibConfiguration) SubBuilder
func (SubBuilder) Build ¶
func (b SubBuilder) Build() (*subscriber.Subscriber, error)
func (SubBuilder) WithLogger ¶
func (b SubBuilder) WithLogger(logger watermill.LoggerAdapter) SubBuilder
func (SubBuilder) WithUnmarshaller ¶
func (b SubBuilder) WithUnmarshaller(unmarshaller Unmarshaller) SubBuilder
Click to show internal directories.
Click to hide internal directories.