discless

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Host = "localhost"
	Port = "8443"
)

Functions

func AddKey

func AddKey(bot, key string) error

func GetKey

func GetKey(bot string) (string, error)

func SetConfig

func SetConfig(config *Config) error

Types

type Config

type Config struct {
	Host    string `yaml:"host"`
	Port    string `yaml:"port"`
	SkipTLS bool   `yaml:"skiptls"`
	Auth    struct {
		Keys map[string]string `yaml:"keys"`
	} `yaml:"keys"`
}

func GetConfig

func GetConfig() (*Config, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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