Documentation ¶
Index ¶
- type LogOptions
- type LogQuery
- func (l *LogQuery) MongoQuery() bson.M
- func (l *LogQuery) SetAfter(after types.Time)
- func (l *LogQuery) SetBefore(before types.Time)
- func (l *LogQuery) WithLevels(levels ...types.Level) *LogQuery
- func (l *LogQuery) WithModules(modules ...string) *LogQuery
- func (l *LogQuery) WithServices(services ...string) *LogQuery
- type Options
- type Query
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogOptions ¶
type LogOptions struct {
// contains filtered or unexported fields
}
func NewLogOptions ¶
func NewLogOptions() *LogOptions
func (*LogOptions) Limit ¶
func (l *LogOptions) Limit(limit int64) *LogOptions
func (*LogOptions) MongoOptions ¶
func (l *LogOptions) MongoOptions() *options.FindOptions
func (*LogOptions) Skip ¶
func (l *LogOptions) Skip(skip int64) *LogOptions
func (*LogOptions) SortCreatedAt ¶
func (l *LogOptions) SortCreatedAt(order int) *LogOptions
type LogQuery ¶
type LogQuery struct { Services optional.Optional[[]string] `json:"services"` Modules optional.Optional[[]string] `json:"modules"` Levels optional.Optional[[]types.Level] `json:"levels"` Before optional.Optional[types.Time] `json:"before"` After optional.Optional[types.Time] `json:"after"` }
func (*LogQuery) MongoQuery ¶
func (*LogQuery) WithModules ¶
func (*LogQuery) WithServices ¶
type Options ¶
type Options[T any] interface { MongoOptions() *options.FindOptions }
Click to show internal directories.
Click to hide internal directories.