configuration

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	RequiredKey        *Secret        `mapstructure:"requiredkey" yaml:"requiredkey"`
	JWT                *Secret        `mapstructure:"jwt" yaml:"jwt"`
	MaxClientQueueSize int            `mapstructure:"maxqueuesize" yaml:"maxqueuesize"`
	URLAssignment      *URLAssignment `mapstructure:"urlassignment" yaml:"urlassignment"`
	APIServer          *Server        `mapstructure:"server" yaml:"server"`
}

func (*Configuration) Hydrate

func (c *Configuration) Hydrate() error

func (*Configuration) Validate

func (c *Configuration) Validate() error

type Secret

type Secret struct {
	Path  string `mapstructure:"path" yaml:"path"`
	Value string `mapstructure:"value" yaml:"value"`
}

type Server

type Server struct {
	Addr    string `mapstructure:"addr" yaml:"addr"`
	TLSCert string `mapstructure:"tlscert" yaml:"tlscert"`
	TLSKey  string `mapstructure:"tlskey" yaml:"tlskey"`
}

type URLAssignment

type URLAssignment struct {
	Scheme     string `mapstructure:"scheme" yaml:"scheme"`
	Domain     string `mapstructure:"domain" yaml:"domain"`
	Port       int    `mapstructure:"port" yaml:"port"`
	Path       string `mapstructure:"path" yaml:"path"`
	PathPrefix string `mapstructure:"pathprefix" yaml:"pathprefix"`
}

Jump to

Keyboard shortcuts

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