server

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListenAndServe

func ListenAndServe(ctx context.Context, lgger *logger.Logger, c *Config) error

Types

type Config

type Config struct {
	Port             int64
	Debug            bool
	TLSCertFile      string
	TLSKeyFile       string
	AuthDisabled     bool
	JWKSUri          string
	RequestPolicy    string
	ResponsePolicy   string
	CorsAllowOrigins []string
	CorsAllowMethods []string
	CorsAllowHeaders []string
	StorageProvider  map[string]string
	CacheProvider    map[string]string
}

func (*Config) LoadEnv added in v0.2.3

func (c *Config) LoadEnv() error

func (*Config) SetDefaults

func (c *Config) SetDefaults()

func (*Config) Validate added in v0.2.3

func (c *Config) Validate() error

Jump to

Keyboard shortcuts

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