config

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Verbose bool

Verbose indicates if log should be verbose or not

Functions

func SetConfig

func SetConfig()

SetConfig Set config file settings and location

func SetLoggerConfig

func SetLoggerConfig()

SetLoggerConfig Set logger config

Types

type GrpcClientConfig

type GrpcClientConfig struct {
	Port     string
	Host     string
	Login    string
	Password string
	IP       string
}

GrpcClientConfig gRPC client configuration struct

func GetGrpcClientConfig

func GetGrpcClientConfig() *GrpcClientConfig

GetGrpcClientConfig Get gRPC client config

type GrpcServerConfig

type GrpcServerConfig struct {
	Host          string
	Port          string
	MetricsPort   string
	LoginLimit    uint64
	PasswordLimit uint64
	IPLimit       uint64
}

GrpcServerConfig gRPC server configuration struct

func GetGrpcServerConfig

func GetGrpcServerConfig() *GrpcServerConfig

GetGrpcServerConfig Get gRPC server configuration

type StorageConfig

type StorageConfig struct {
	Dsn         string
	StorageType string
}

StorageConfig Struct for config storage

func GetStorageConfig

func GetStorageConfig() *StorageConfig

GetStorageConfig Get storage config

Jump to

Keyboard shortcuts

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