config

package
v0.0.0-...-dffdc56 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package config contents type and methods for server and client configuration

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoggerConfig

func LoggerConfig(debug bool) zapcore.Level

LoggerConfig return log level according debug flag

Types

type Config

type Config struct {
	DBdsn      string
	ServerAddr string
	ServerKey  []byte
	UserKey    string
	TokenCache string // path to file with cli user token
	LogLevel   zapcore.Level
}

Config is general type for server and client configuration

func NewServerConf

func NewServerConf() (*Config, error)

NewServerConf generates server configuration according flags

Jump to

Keyboard shortcuts

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