pkg

package
v2.3.3 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateLogEntryRequest

type CreateLogEntryRequest struct {
	Application string                       `json:"application"`
	Details     LogEntryDetailItemCollection `json:"details"`
	ID          bson.ObjectId
	Level       string `json:"level"`
	Message     string `json:"message"`
	Time        string `json:"time"`
}

CreateLogEntryRequest is used to create a new log entry.

type GenericResponse

type GenericResponse struct {
	Message string `json:"message"`
}

GenericResponse is used to communicate a message back to the caller.

type GetLogEntriesResponse

type GetLogEntriesResponse struct {
	Count      int                `json:"count"`
	LogEntries LogEntryCollection `json:"logEntries"`
	PageSize   int                `json:"pageSize"`
	TotalCount int                `json:"totalCount"`
}

GetLogEntriesResponse is returned when a client searches for log entries.

type LogEntry

type LogEntry struct {
	Application string                       `json:"application" bson:"application"`
	Details     LogEntryDetailItemCollection `json:"details" bson:"details"`
	ID          primitive.ObjectID           `json:"id" bson:"_id"`
	Level       string                       `json:"level" bson:"level"`
	Message     string                       `json:"message" bson:"message"`
	Time        time.Time                    `json:"time" bson:"time"`
}

LogEntry represents a single log entry in Fireplace.

type LogEntryCollection

type LogEntryCollection []*LogEntry

LogEntryCollection is a collection of LogEntry

type LogEntryDetailItem

type LogEntryDetailItem struct {
	Key   string `json:"key" bson:"key"`
	Value string `json:"value" bson:"value"`
}

LogEntryDetailItem is a key/value pair

type LogEntryDetailItemCollection

type LogEntryDetailItemCollection []*LogEntryDetailItem

LogEntryDetailItemCollection is a collection of key/value pairs.

type LogEntryFilter

type LogEntryFilter struct {
	Application string    `json:"application"`
	DateFrom    time.Time `json:"dateFrom"`
	DateTo      time.Time `json:"dateTo"`
	Level       string    `json:"level"`
	Page        int       `json:"page"`
	Search      string    `json:"search"`
}

LogEntryFilter provides a way to filter log entries when searching.

Jump to

Keyboard shortcuts

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