models

package
v0.0.0-...-a1e0f3c Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ENTITY_USER = "USER"
	ENTITY_BOOK = "BOOK"

	ACTION_CREATE   = "CREATE"
	ACTION_GET      = "GET"
	ACTION_UPDATE   = "UPDATE"
	ACTION_DELETE   = "DELETE"
	ACTION_REGISTER = "REGISTER"
	ACTION_LOGIN    = "LOGIN"
)

Variables

This section is empty.

Functions

func ToPbAction

func ToPbAction(action string) (pb.LoggerRequest_Actions, error)

ToPbAction - converter

func ToPbEntity

func ToPbEntity(entity string) (pb.LoggerRequest_Entities, error)

ToPbEntity - converter

Types

type LogItem

type LogItem struct {
	Entity    string    `bson:"entity"`
	Action    string    `bson:"action"`
	EntityId  int64     `bson:"entity_id"`
	Timestamp time.Time `bson:"timestamp"`
}

LogItem

Jump to

Keyboard shortcuts

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