stns

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2018 License: MIT Imports: 4 Imported by: 15

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"`
	TokenAuth *TokenAuth `toml:"token_auth"`

	UseServerStarter bool
	Users            *model.Users
	Groups           *model.Groups
	Include          string `toml:"include"`
}

func NewConfig

func NewConfig(confPath string) (Config, error)

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