app

package
v0.0.0-...-2754675 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	app.App
	Core *iamserver.Core
}

func NewByEnv

func NewByEnv(envPrefix string, defaultConfig *Config) (*App, error)

func NewWithCombinedHTTPServers

func NewWithCombinedHTTPServers(cfg Config, mux *http.ServeMux) (*App, error)

type Config

type Config struct {
	AppInfo *app.Info            `env:"APP"`
	Core    iamserver.CoreConfig `env:",squash"`

	HTTPBasePath         string `env:"HTTP_BASE_PATH"`
	RESTCanonicalBaseURL string `env:"REST_CANONICAL_BASE_URL"`

	WebUIEnabled bool                `env:"WEBUI_ENABLED"`
	WebUI        *webui.ServerConfig `env:"WEBUI"`
	RESTEnabled  bool                `env:"REST_ENABLED"`
	REST         *rest.ServerConfig  `env:"REST"`
	GRPCEnabled  bool                `env:"GRPC_ENABLED"`
	GRPC         *grpc.ServerConfig  `env:"GRPC"`
}

func ConfigSkeleton

func ConfigSkeleton() Config

func ConfigSkeletonPtr

func ConfigSkeletonPtr() *Config

Jump to

Keyboard shortcuts

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