utils

package
v0.0.0-...-5fd3f30 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2019 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigsPath = "/etc/blog/router.conf"
	LogPath     = "/var/log/blog/router.log"
)

File with all global path

Variables

This section is empty.

Functions

This section is empty.

Types

type Log

type Log interface {
	Init(path string)
	Free()
}

func NewLogger

func NewLogger() Log

NewLogger make new struct

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

func (*Logger) Free

func (l *Logger) Free()

Free unload logger mod

func (*Logger) Init

func (l *Logger) Init(path string)

Init logger initialization

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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