configuration

package
v0.0.0-...-6f75e30 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Common

type Common struct {
	Server Server `toml:"server"`
	Queue  Queue  `toml:"queue"`
	Logger Logger `toml:"logger"`
}

Common - root of configuration

type Logger

type Logger struct {
	Level zerolog.Level `toml:"level"`
}

Logger - live_debugger configuration

type Parser

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

func NewParser

func NewParser(fs fs.FS) *Parser

func (*Parser) Parse

func (p *Parser) Parse(path string) (config Common, err error)

type Queue

type Queue struct {
	Size uint64 `toml:"size"`
}

Queue - queue configuration

type Server

type Server struct {
	IP                               string `toml:"ip"`
	Port                             string `toml:"port"`
	InLocation                       string `toml:"in_location"`
	OutLocation                      string `toml:"out_location"`
	AmountOfSequentiallyErrorToBreak int    `toml:"amount_of_sequentially_error_to_break"`
	ThrottleDurationMs               int    `toml:"throttle_duration_ms"`
	SleepAfterErrorDurationMs        int    `toml:"sleep_after_error_duration_ms"`
}

Server - websocket server configuration

Jump to

Keyboard shortcuts

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