goanalytics

package
v0.0.0-...-1e7bb80 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateLogger

func CreateLogger() *logrus.Logger

CreateLogger - Creates instace of the logger

func Exists

func Exists(name string) bool

Exists reports whether the named file or directory exists.

Types

type ApplicationApi

type ApplicationApi struct {
}

type Config

type Config struct {
	Server configServer `yaml:"server" json:"server"`
	Redis  configRedis  `yaml:"redis" json:"redis"`
	Cookie configCookie `yaml:"cookie" json:"cookie"`
	App    configApp    `yaml:"app" json:"app"`
}

Config - Application configration

func CreateConfig

func CreateConfig() *Config

CreateConfig - Creates config

func (*Config) ReadEnv

func (cfg *Config) ReadEnv()

ReadEnv - Reads configuration from the Environment

func (*Config) ReadYaml

func (cfg *Config) ReadYaml(filePath string)

ReadYaml - Reads configuration from the YAML file

Jump to

Keyboard shortcuts

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