logger

package
v0.0.0-...-2be556a Latest Latest
Warning

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

Go to latest
Published: May 1, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	Driver string
	Mongo  mongodb.MongoDBInterface
}

Logger ..

func LoggerHandler

func LoggerHandler() *Logger

LoggerHandler habndler logger

func (*Logger) All

func (logging *Logger) All(action string) (interface{}, error)

All ...

func (*Logger) Get

func (logging *Logger) Get(uuid, action string) (*entity.LoggerEventHistory, error)

Get ...

func (*Logger) Save

func (logging *Logger) Save(origin string, log *entity.LoggerRequest) (*entity.LoggerEventHistory, error)

Save ...

type LoggerInterface

type LoggerInterface interface {
	Save(origin string, log *entity.LoggerRequest) (*entity.LoggerEventHistory, error)
	Get(uuid, collection string) (*entity.LoggerEventHistory, error)
	All(action string) (interface{}, error)
}

LoggerInterface ..

Jump to

Keyboard shortcuts

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