conf

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 17, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDescStat

func GetDescStat() bool

func GetPort

func GetPort() uint32

func GetSockStat

func GetSockStat() bool

func GetStatus

func GetStatus(reqm, requ string) (bool, string, string)

Types

type Config

type Config struct {
	Plug struct {
		Sock bool   `json:"socket"`
		Tcp  uint32 `json:"port"`
		Bl   []struct {
			Cmd   string `json:"cmd"`
			Allow bool   `json:"allow"`
			Dmsg  string `json:"dmsg"`
			Amsg  string `json:"admin-msg"`
		} `json:"commands"`
		Desc bool `json:"description"`
	} `json:"plugin"`
}

type Db

type Db struct {
	All []struct {
		Cmd  []string `yaml:"commands"`
		Meth string   `yaml:"method"`
		Path []string `yaml:"path"`
	} `yaml:"methods"`
}

Jump to

Keyboard shortcuts

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