bar

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2024 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 *slog.Logger, 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 `toml:"gate_title" yaml:"gate_title" env:"Gate_title"`
	Prefix      string `toml:"gate_prefix" yaml:"gate_prefix" env:"GATE_PREFIX"`
	MaxIDLenght int    `toml:"gate_max_id_length" yaml:"gate_max_id_length" env:"GATE_MAX_ID_LENGTH"`
}

Jump to

Keyboard shortcuts

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