nats

package
v0.0.0-...-cc7cbc4 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Commander

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

Commander implements the Commander interface.

func NewCommander

func NewCommander(opts *options.Options, metricsCollector *metrics.Collector, logger *logrus.Logger) *Commander

NewCommander creates the Commander for publisher to NATS.

func (*Commander) Init

func (c *Commander) Init() error

Init implements the Commander interface and initializes the publisher to NATS.

func (*Commander) Start

func (c *Commander) Start() error

Start implements the Commander interface and starts the publisher.

func (*Commander) Stop

func (c *Commander) Stop() error

Stop implements the Commander interface and stops the publisher.

Jump to

Keyboard shortcuts

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