Help us shape the future of Go! Take the 2026 Go Developer Survey

logstore

package
v0.1.22 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LOGTYPE_INFO            string = "info"
	LOGTYPE_WARNING         string = "warning"
	LOGTYPE_ERROR           string = "error"
	LOGTYPE_LOGIN           string = "login"
	LOGTYPE_USERDEVICELOGIN string = "userdevicelogin"
	LOGTYPE_DEVICELOGIN     string = "devicelogin"
	LOGTYPE_DATAUPDATE      string = "dataupdate"
	LOGTYPE_DATAINSERT      string = "datainsert"
	LOGTYPE_DATADELETE      string = "datadelete"
)

Variables

This section is empty.

Functions

func LogItemStore

func LogItemStore(upn string, accessid int, dataarr string)

func SearchLog

func SearchLog(dest *[]LogStore, upn string, dateFrom time.Time, dateTo time.Time, search string, maxrecords int) error

func SearchSecLog

func SearchSecLog(dest *[]LogStoreSecurity, upn string, dateFrom time.Time, dateTo time.Time, search string, maxrecords int) error

Types

type Base

type Base struct {
	ID int `gorm:"autoIncrement;primaryKey"`
}

type LogStore

type LogStore struct {
	Base
	Data     string
	UPN      string
	AccessID int
	Created  time.Time
}

type LogStoreInterface

type LogStoreInterface interface {
	Store(upn string, accessid int, dataarr string)
	SearchLog(dest *[]LogStore, upn string, dateFrom time.Time, dateTo time.Time, search string, maxrecords int) error
}
var PluginLogStore LogStoreInterface

type LogStoreSecurity

type LogStoreSecurity struct {
	Base
	Data    string
	UPN     string
	Created time.Time
}

type SecurityLogEntry

type SecurityLogEntry struct {
	LogType        string
	UPN            string
	Timestamp      time.Time
	Message        string
	Entity         string
	CurrentObject  interface{}
	OriginalObject interface{}
}

func (*SecurityLogEntry) Store

func (lgx *SecurityLogEntry) Store()

type SecurityLogStoreInterface

type SecurityLogStoreInterface interface {
	Store(data *SecurityLogEntry)
	SearchSecLog(dest *[]LogStoreSecurity, upn string, dateFrom time.Time, dateTo time.Time, search string, maxrecords int) error
}
var PluginSecurityLogStore SecurityLogStoreInterface

Jump to

Keyboard shortcuts

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