masstransport

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DSN    string
	Config mt.Config
}

Config of connector.

type Connector

type Connector struct {
	MT mt.MassTransport

	daemon.WatcherConfigFunc
	daemon.HealthCheckFunc
	daemon.ShutdownFunc
	// contains filtered or unexported fields
}

func New

func New(prefix string, opts ...Option) *Connector

func (*Connector) AddHandler

func (c *Connector) AddHandler(serviceName string, handler mt.HandlerFunc)

type Option

type Option func(*Connector)

func WithHandler

func WithHandler(serviceName string, handler mt.HandlerFunc) Option

func WithLogger

func WithLogger(l logging.Logger) Option

Jump to

Keyboard shortcuts

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