iomanager

package
v0.2.1-0...-9c16218 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2020 License: BSD-3-Clause 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 {
	NATSConn  *nats.Conn
	RedisConn *rediskv.Connection
}

Config describes the IO manager configuration.

type IOManager

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

IOManager contains the state of the IO Manager.

func New

func New(c Config) (m IOManager, err error)

New returns a new IO Manager.

func (IOManager) Start

func (m IOManager) Start()

Start starts the IO Manager by initializing handlers for NATS subscriptions.

func (IOManager) Stop

func (m IOManager) Stop() error

Stop stops the IO Manager by putting NATS subscriptions in a draining state.

Jump to

Keyboard shortcuts

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