Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnknownTopic = errors.New("unknown topic") ErrUnmarshall = errors.New("unmarshall error") )
View Source
var (
ErrIncorrectScheme = errors.New("incorrect scheme")
)
View Source
var (
ErrNoBrokerSpecified = errors.New("no broker specified")
)
Functions ¶
func RegisterSourceFactory ¶ added in v1.0.1
func RegisterSourceFactory(scheme string, factory SourceFactory)
RegisterSourceFactory registers a new source factory for the considered scheme.
func StartCommand ¶
func StartCommand()
Types ¶
type Configuration ¶
type LoggerFunc ¶
LoggerFunc turns a function into an a zerolog marshaller.
func KafkaMessageAsZerologObject ¶
func KafkaMessageAsZerologObject(message kafka.Message) LoggerFunc
AsEventTraitZerologObject converts a kafka message into a LogObjectMarshaler.
func MapAsZerologObject ¶ added in v1.0.1
func MapAsZerologObject(m map[string]interface{}) LoggerFunc
MapAsZerologObject converts a map into a LogObjectMarshaler.
func (LoggerFunc) MarshalZerologObject ¶
func (f LoggerFunc) MarshalZerologObject(e *zerolog.Event)
MarshalZerologObject makes the LoggerFunc type a LogObjectMarshaler.
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
func NewResolver ¶
func NewResolver(cfg *Configuration, log zerolog.Logger) (*Resolver, error)
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(cfg *Configuration) *Server
type Source ¶ added in v1.0.1
type Source interface { URI() *url.URL // NewConsumer returns a new observable consuming messages from the this source, from a topic, starting // at provided offset (if supported). NewConsumer(ctx context.Context, topic string, offset int64) rxgo.Observable }
Source specifies types which are able to provide a source of events through an Observable.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.