run

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	Config *Config
	Logger *zap.Logger

	GRPCd    *grpcd.GRPCd
	Kafka    *kafka.Service
	Httpd    *httpd.Service
	Influxdb *influxdb.Service

	Closing chan struct{}
	Closed  chan struct{}
}

func New

func New(config *Config) (*Command, error)

func (*Command) Close

func (c *Command) Close() error

func (*Command) Open

func (c *Command) Open() error

func (*Command) WithLogger

func (c *Command) WithLogger(logger *zap.Logger)

type Config

type Config struct {
	GRPCDConfig    grpcd.Config     `yaml:"grpcd" mapstructure:"grpcd"`
	KafkaConfig    kafka.Config     `yaml:"kafka" mapstructure:"kafka"`
	HttpdConfig    util.HTTPdConfig `yaml:"httpd" mapstructure:"httpd"`
	InfluxdbConfig influxdb.Config  `yaml:"influxdb" mapstructure:"influxdb"`
}

func NewConfig

func NewConfig() *Config

Jump to

Keyboard shortcuts

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