Documentation ¶
Index ¶
- func AddLogEntry(logEntry *models.LogEntry) error
- func ApplyLogEntryQuerySearchParams(query *gorm.DB, params *LogEntrySearchParams) *gorm.DB
- func CheckIfIdExists(logEntryId uint) (bool, error)
- func CheckIfLogEntryExists(producer string, message string) (bool, error)
- func DeleteLogEntry(logEntryId uint) error
- func GetAllLogEntries(limit int, offset int, params *LogEntrySearchParams) (*models.LogEntryList, int, error)
- func GetLogEntryById(logEntryId uint) (*models.LogEntry, error)
- func NewLogEntryListResponse(logEntries *models.LogEntryList, offset int, limit int, totalCount int) *pagination.PaginatedResponse
- func NewLogEntryResponse(logEntry *models.LogEntry) *models.LogEntryResponse
- func UpdateLogEntry(logEntryId uint, logEntryData *models.LogEntryRequest) (*models.LogEntry, error)
- type LogEntrySearchParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddLogEntry ¶
func ApplyLogEntryQuerySearchParams ¶
func ApplyLogEntryQuerySearchParams(query *gorm.DB, params *LogEntrySearchParams) *gorm.DB
func CheckIfIdExists ¶
func CheckIfLogEntryExists ¶
func DeleteLogEntry ¶
func GetAllLogEntries ¶
func GetAllLogEntries(limit int, offset int, params *LogEntrySearchParams) (*models.LogEntryList, int, 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 ¶
Types ¶
type LogEntrySearchParams ¶
func GetLogEntrySearchParams ¶
func GetLogEntrySearchParams(request *http.Request) *LogEntrySearchParams
Click to show internal directories.
Click to hide internal directories.