config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AccessLevels = struct {
	PUBLIC          int
	ALL_USERS       int
	SPECIFIC_GROUPS int
}{
	PUBLIC:          0,
	ALL_USERS:       1,
	SPECIFIC_GROUPS: 2,
}

Functions

This section is empty.

Types

type Config

type Config interface {
	ExecutableFolder() string
	GetString(string) string
	Logger() *Logger
}

type ConfigViper

type ConfigViper struct {
	// contains filtered or unexported fields
}

func NewConfigViper

func NewConfigViper(flags RunFlags) (*ConfigViper, error)

func (*ConfigViper) ExecutableFolder

func (c *ConfigViper) ExecutableFolder() string

func (*ConfigViper) GetString

func (c *ConfigViper) GetString(key string) string

func (*ConfigViper) Logger

func (c *ConfigViper) Logger() *Logger

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

func NewLogger

func NewLogger(level int) Logger

func (*Logger) Debug

func (l *Logger) Debug(s string)

func (*Logger) Error

func (l *Logger) Error(s string)

func (*Logger) Info

func (l *Logger) Info(s string)

func (*Logger) Warning

func (l *Logger) Warning(s string)

type RunFlags

type RunFlags struct {
	Address string
	Mode    string
	Port    string
}

Jump to

Keyboard shortcuts

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