config

package
v0.0.0-...-157e571 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Watch

func Watch(reload func())

Types

type Config

type Config struct {
	Main           int64
	Trash          int64
	Forwards       map[int64]Forward // map[From]Forward
	AnswerEndpoint string
	AnswerPause    int64 // in milliseconds, TODO: подкручивать паузу по накопленной статистике про step в budva32
	AnswerRepeat   int64
}

func Load

func Load() (*Config, error)

type Forward

type Forward struct {
	Answer bool
	To     int64
}

Jump to

Keyboard shortcuts

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