routing

package
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 10, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Route

type Route struct {
	// contains filtered or unexported fields
}

func NewRoute

func NewRoute(def *config.RouteDef, partition int32, kafkaOps kafkaOps, logger *zap.SugaredLogger) *Route

func (*Route) String

func (r *Route) String() string

func (*Route) Subscribe

func (r *Route) Subscribe(msgChan chan *kafka.Message)

Subscribe is intended to run in goroutine. Assumes that messages in the channel are coming from the intended topic & partition. Subscription loop terminates once msgChan is closed.

type RouteOps

type RouteOps struct {
	// contains filtered or unexported fields
}

type Router

type Router struct {
	// contains filtered or unexported fields
}

func ProvideRouter

func ProvideRouter(kafkaCtx *config.KafkaContext, cfg *config.RouteConfig, logger *zap.SugaredLogger, lc fx.Lifecycle) *Router

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL