config

package
v0.0.0-...-f514c2e Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	APIKeys        []string
	BasicAuth      []basicauth.Credentials
	AllowedOrigins []string
}

type Config

type Config struct {
	Port string `toml:"port"`
	Auth *Auth  `toml:"auth"`
}

func NewConfig

func NewConfig(config []byte) (*Config, error)

Jump to

Keyboard shortcuts

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