log_entry

package
v0.0.0-...-bb1c6aa Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddLogEntry

func AddLogEntry(logEntry *models.LogEntry) error

func ApplyLogEntryQuerySearchParams

func ApplyLogEntryQuerySearchParams(query *gorm.DB, params *LogEntrySearchParams) *gorm.DB

func CheckIfIdExists

func CheckIfIdExists(logEntryId uint) (bool, error)

func CheckIfLogEntryExists

func CheckIfLogEntryExists(producer string, message string) (bool, error)

func DeleteLogEntry

func DeleteLogEntry(logEntryId uint) error

func GetAllLogEntries

func GetAllLogEntries(limit int, offset int, params *LogEntrySearchParams) (*models.LogEntryList, int, error)

func GetLogEntryById

func GetLogEntryById(logEntryId uint) (*models.LogEntry, error)

func NewLogEntryListResponse

func NewLogEntryListResponse(logEntries *models.LogEntryList, offset int, limit int, totalCount int) *pagination.PaginatedResponse

func NewLogEntryResponse

func NewLogEntryResponse(logEntry *models.LogEntry) *models.LogEntryResponse

func UpdateLogEntry

func UpdateLogEntry(logEntryId uint, logEntryData *models.LogEntryRequest) (*models.LogEntry, error)

Types

type LogEntrySearchParams

type LogEntrySearchParams struct {
	Producer string
	Message  string
}

func GetLogEntrySearchParams

func GetLogEntrySearchParams(request *http.Request) *LogEntrySearchParams

Jump to

Keyboard shortcuts

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