utils

package
v0.0.0-...-606cdbc Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Log

func Log() *log.Logger

func SetLevel

func SetLevel(level log.Level) *log.Logger

func TestLogger

func TestLogger()

Types

type API

type API struct {
	Host string `yaml:"host"`
	Port int    `yaml:"port"`
}

type Config

type Config struct {

	// API specific settings
	API API `yaml:"api"`

	Logger Logger `yaml:"logger"`

	// Database specific settings
	Database Database `yaml:"database"`
}

func LoadConfig

func LoadConfig() *Config

type Database

type Database struct {
	URI      string `yaml:"uri"`
	Database string `yaml:"database"`
}

type FenixFormatter

type FenixFormatter struct {
}

func (*FenixFormatter) Format

func (f *FenixFormatter) Format(entry *log.Entry) ([]byte, error)

type Logger

type Logger struct {
	LogLevel string `yaml:"loglevel"`
}

Jump to

Keyboard shortcuts

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