rest

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultListenAddress = "0.0.0.0:9090"

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthAccount

type AuthAccount struct {
	Username string `mapstructure:"username"`
	Password string `mapstructure:"password"`
}

type AuthConfig

type AuthConfig struct {
	BasicAuth *BasicAuthConfig `mapstructure:"basic_auth,omitempty"`
}

type BasicAuthConfig

type BasicAuthConfig struct {
	Accounts []AuthAccount `mapstructure:"accounts"`
}

type Config

type Config struct {
	ListenAddress string       `mapstructure:"listen_address"`
	AlienConfig   a4c.Config   `mapstructure:"alien_config"`
	VaultConfig   vault.Config `mapstructure:"vault_config"`
	Auth          AuthConfig   `mapstructure:"auth"`
}

type Server

type Server struct {
	Config *Config
	// contains filtered or unexported fields
}

func (*Server) StartServer

func (s *Server) StartServer() error

Jump to

Keyboard shortcuts

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