config

package
v0.0.0-...-43ccd23 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Asset

type Asset struct {
	Path string
}

Asset defines the available asset configuration.

type Config

type Config struct {
	File              string
	Log               Log
	Debug             Debug
	HTTP              HTTP
	GRPC              GRPC
	Server            Server
	Tracing           Tracing
	Asset             Asset
	TokenManager      TokenManager
	DB                DB
	UserGroupsManager UserGroupsManager

	Context    context.Context
	Supervised bool
}

Config combines all available configuration parts.

func New

func New() *Config

New initializes a new configuration with or without defaults.

type DB

type DB struct {
	Host     string
	Port     int
	Name     string
	Username string
	Password string
	Table    string
}

DB configuration for service

type Debug

type Debug struct {
	Addr   string
	Token  string
	Pprof  bool
	Zpages bool
}

Debug defines the available debug configuration.

type GRPC

type GRPC struct {
	Addr      string
	Namespace string
}

GRPC defines the available grpc configuration.

type HTTP

type HTTP struct {
	Addr      string
	Namespace string
	Root      string
	CacheTTL  int
}

HTTP defines the available http configuration.

type Log

type Log struct {
	Level  string
	Pretty bool
	Color  bool
	File   string
}

Log defines the available logging configuration.

type Server

type Server struct {
	Version string
	Name    string
}

Server configures a server.

type TokenManager

type TokenManager struct {
	JWTSecret string
}

TokenManager is the config for using the reva token manager

type Tracing

type Tracing struct {
	Enabled   bool
	Type      string
	Endpoint  string
	Collector string
	Service   string
}

Tracing defines the available tracing configuration.

type UserGroupsManager

type UserGroupsManager struct {
	SkipUserGroupsInToken bool
	RevaGateway           string
}

Jump to

Keyboard shortcuts

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