config

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2020 License: Apache-2.0 Imports: 0 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	File      string
	Log       Log
	Debug     Debug
	Server    Server
	Tracing   Tracing
	Thumbnail Thumbnail
}

Config combines all available configuration parts.

func New

func New() *Config

New initializes a new configuration with or without defaults.

type Debug

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

Debug defines the available debug configuration.

type FileSystemSource

type FileSystemSource struct {
	BasePath string
}

FileSystemSource defines the available filesystem source configuration.

type FileSystemStorage

type FileSystemStorage struct {
	RootDirectory string
}

FileSystemStorage defines the available filesystem storage configuration.

type Log

type Log struct {
	Level  string
	Pretty bool
	Color  bool
}

Log defines the available logging configuration.

type Server

type Server struct {
	Name      string
	Namespace string
	Address   string
}

Server defines the available server configuration.

type Thumbnail

type Thumbnail struct {
	Resolutions       []string
	FileSystemStorage FileSystemStorage
	WebDavSource      WebDavSource
}

Thumbnail defines the available thumbnail related configuration.

type Tracing

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

Tracing defines the available tracing configuration.

type WebDavSource

type WebDavSource struct {
	BaseURL  string
	Insecure bool
}

WebDavSource defines the available webdav source configuration.

Jump to

Keyboard shortcuts

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