stns

package
v2.2.12 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicAuth

type BasicAuth struct {
	User     string
	Password string
}

type Config

type Config struct {
	Port      int        `toml:"port"`
	BasicAuth *BasicAuth `toml:"basic_auth" yaml:"basic_auth"`
	TokenAuth *TokenAuth `toml:"token_auth" yaml:"token_auth"`

	AllowIPs         []string `toml:"allow_ips" yaml:"allow_ips"`
	UseServerStarter bool
	Users            *model.Users
	Groups           *model.Groups
	Include          string `toml:"include"`
	ModulePath       string `toml:"module_path" yaml:"module_path"`
	LoadModule       string `toml:"load_module" yaml:"load_module"`
	Modules          map[string]interface{}
	TLS              *TLS
	LDAP             *LDAP
	Redis            *redis `toml:"redis"`
	// contains filtered or unexported fields
}

func NewConfig

func NewConfig(confPath string) (Config, error)

type LDAP

type LDAP struct {
	BaseDN string
}

type TLS

type TLS struct {
	CA   string
	Cert string
	Key  string
}

type TokenAuth

type TokenAuth struct {
	Tokens []string
}

Jump to

Keyboard shortcuts

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