logentry_services

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2021 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 ILogEntryService

type ILogEntryService interface {
	CreateLogEntry(entryRequest *logentry_models.CreateLogEntryRequest) (string, error)
	GetApplicationNames() ([]string, error)
	GetLogEntries(filter *filter_models.LogEntryFilter) (logentry_models.LogEntryCollection, int, error)
	GetLogEntry(id string) (*logentry_models.LogEntry, error)
	Delete(fromDate time.Time) (int, error)
}

type LogEntryService

type LogEntryService struct {
	DB       database.Database
	PageSize int
}

func NewLogEntryService

func NewLogEntryService(config LogEntryServiceConfig) LogEntryService

func (LogEntryService) CreateLogEntry

func (s LogEntryService) CreateLogEntry(entryRequest *logentry_models.CreateLogEntryRequest) (string, error)

func (LogEntryService) Delete

func (s LogEntryService) Delete(fromDate time.Time) (int, error)

func (LogEntryService) GetApplicationNames

func (s LogEntryService) GetApplicationNames() ([]string, error)

func (LogEntryService) GetLogEntries

func (LogEntryService) GetLogEntry

func (s LogEntryService) GetLogEntry(id string) (*logentry_models.LogEntry, error)

type LogEntryServiceConfig

type LogEntryServiceConfig struct {
	DB       database.Database
	PageSize int
}

Jump to

Keyboard shortcuts

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