Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallbackType ¶
type CallbackType int
CallbackType defines the type for the callback.
const ( // OnSuccess will mark the call as success. OnSuccess CallbackType = iota // OnNonRetriableError will mark the call as errored but not retriable. OnNonRetriableError // OnRetriableError will mark the call as errored and should be retried. OnRetriableError )
Supported CallbackTypes.
type Callbackable ¶ added in v0.5.0
type Callbackable interface {
Callback(t CallbackType)
}
Callbackable can be called back.
func NewProtobufCallback ¶ added in v0.5.0
func NewProtobufCallback( msg consumer.Message, dec *protobuf.AggregatedDecoder, wg *sync.WaitGroup, ) Callbackable
NewProtobufCallback creates a callbackable.
type Configuration ¶
type Configuration struct {
// Server configs the server.
Server server.Configuration `yaml:"server"`
// Handler configs the handler.
Handler handlerConfiguration `yaml:"handler"`
// Consumer configs the consumer.
Consumer consumer.Configuration `yaml:"consumer"`
}
Configuration configs the m3msg server.
type Options ¶
type Options struct {
InstrumentOptions instrument.Options
WriteFn WriteFn
ProtobufDecoderPoolOptions pool.ObjectPoolOptions
BlockholePolicies []policy.StoragePolicy
}
Options for the ingest handler.
Click to show internal directories.
Click to hide internal directories.