client

package
v0.0.0-...-6225b90 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(config *Config)

Types

type Config

type Config struct {
	Port     int       `json:"port"`
	Mode     Mode      `json:"mode"`
	Addr     string    `json:"addr"`
	AllowLan bool      `json:"allowLan"`
	LogLevel log.Level `json:"logLevel"`
}

type Mode

type Mode uint8
const (
	DirectMode Mode = iota
	RuleMode
	GlobalMode
)

func NewMode

func NewMode(m string) Mode

func (Mode) MarshalJSON

func (m Mode) MarshalJSON() ([]byte, error)

func (Mode) String

func (m Mode) String() string

func (*Mode) UnmarshalJSON

func (m *Mode) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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