bar

package
v0.0.0-...-b6584d0 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BarGate

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

BarGate - mock gateway

func New

func New(ss domain.StartStopInterface, lg *logrus.Entry, cnf *Config) *BarGate

func (*BarGate) CheckStatus

func (b *BarGate) CheckStatus() int

func (*BarGate) GetBar

func (b *BarGate) GetBar(barID string) (*domain.Bar, error)

func (*BarGate) Start

func (b *BarGate) Start() error

func (*BarGate) Stop

func (b *BarGate) Stop() error

type Config

type Config struct {
	Title       string
	Prefix      string
	MaxIDLenght *int `env:"BAR_MAX_ID_LENGHT"`
}

Jump to

Keyboard shortcuts

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