master

package
v0.0.0-...-683a7b2 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigPrefix = "master"

ConfigPrefix define configuration prefix

Functions

This section is empty.

Types

type Master

type Master interface {
	manager.Component
}

Client represents the master interface

func New

func New(opts ...Option) (Master, error)

New creates a new master instance

type Option

type Option func(*Options)

Option func

func Logger

func Logger(v logger.Logger) Option

Logger option

func Port

func Port(v int) Option

Port option

type Options

type Options struct {
	Logger logger.Logger `ignored:"true" json:"-"`

	Port int `default:"8181" envconfig:"port"`
}

Options represents the list of options

Jump to

Keyboard shortcuts

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