config

package
v0.0.0-...-8f08b9d Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Server ServerConfigurations
	Mongo  MongoConfigurations
	Log    LogConfigurations
}

type LogConfigurations

type LogConfigurations struct {
	LogLevel             string
	LogOutputPaths       string
	AccessLogLevel       string
	AccessLogOutputPaths string
}

type MongoConfigurations

type MongoConfigurations struct {
	Url    string
	DB     string
	Client *mongo.Client
	Cancel context.CancelFunc
	Ctx    context.Context
}

MongoConfigurations - responsible for mongo configuration

func (*MongoConfigurations) Close

func (m *MongoConfigurations) Close()

Close -

func (*MongoConfigurations) Init

func (m *MongoConfigurations) Init() error

type ServerConfigurations

type ServerConfigurations struct {
	Host     string
	GrpcPort string
	HttpPort string
}

Jump to

Keyboard shortcuts

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