internal

package
v0.0.0-...-7467467 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IdleTimeout  = 60
	MSG_Shutdown = "SHUTDOWN"
)

Variables

This section is empty.

Functions

func Load

func Load(config string, release bool) (err error)

func Serve

func Serve(addr string, meta map[string]any) (errch chan error, err error)

func TlsEnabled

func TlsEnabled() bool

Types

type TlsConfig

type TlsConfig struct {
	Enable bool   `mapstructure:"enable"`
	Cert   string `mapstructure:"cert"`
	Key    string `mapstructure:"key"`
}

func NewTlsConfig

func NewTlsConfig(fp, key string) (config *TlsConfig, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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