generic

package
v0.0.0-...-386ff76 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2019 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

func NewCliContext

func NewCliContext() context.Context

Types

type Context

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

func NewContext

func NewContext(name string) (*Context, error)

func (Context) NewBadgerConnection

func (c Context) NewBadgerConnection() (*badger.DB, error)

type LogHander

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

func NewLogger

func NewLogger(name string, debug bool) *LogHander

func (LogHander) Error

func (l LogHander) Error(componentName string, err error, format string, args ...interface{})

func (LogHander) Fatal

func (l LogHander) Fatal(componentName string, err error, format string, args ...interface{})

func (LogHander) Info

func (l LogHander) Info(componentName string, format string, args ...interface{})

Jump to

Keyboard shortcuts

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