updates

package
v0.0.0-...-988e9ee Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2022 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 Log

type Log struct {
	Level     optional.Optional[types.Level]
	Service   optional.Optional[string]
	Module    optional.Optional[string]
	Message   optional.Optional[string]
	CreatedAt optional.Optional[types.Time]
}

func (*Log) Apply

func (l *Log) Apply(o *types.Log)

func (*Log) MongoQuery

func (l *Log) MongoQuery() bson.M

func (*Log) WithCreatedAt

func (l *Log) WithCreatedAt(createdAt types.Time) *Log

func (*Log) WithLevel

func (l *Log) WithLevel(level types.Level) *Log

func (*Log) WithMessage

func (l *Log) WithMessage(message string) *Log

func (*Log) WithModule

func (l *Log) WithModule(module string) *Log

func (*Log) WithService

func (l *Log) WithService(service string) *Log

type Token

type Token struct {
	OwnerID   optional.Optional[string]
	CreatedAt optional.Optional[types.Time]
	ExpiresAt optional.Optional[types.Time]
}

func (*Token) Apply

func (t *Token) Apply(o *types.Token)

func (*Token) MongoQuery

func (t *Token) MongoQuery() bson.M

func (*Token) WithCreatedAt

func (t *Token) WithCreatedAt(createdAt types.Time) *Token

func (*Token) WithExpiresAt

func (t *Token) WithExpiresAt(expiresAt types.Time) *Token

func (*Token) WithLevel

func (t *Token) WithLevel(ownerID string) *Token

type Updates

type Updates[T any] interface {
	Apply(T)
	MongoQuery() bson.M
}

Jump to

Keyboard shortcuts

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