messages

package
v0.0.0-...-db8f46d Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminMessage

type AdminMessage struct {
	OrganizationID uuid.UUID
	LoggedAt       time.Time
	Severity       Severity
	Verbosity      int
	Summary        string
	Message        string
	Fields         map[string]interface{}
}

type Entry

type Entry struct {
	// contains filtered or unexported fields
}

func (Entry) Error

func (e Entry) Error() Entry

func (Entry) Info

func (e Entry) Info() Entry

func (Entry) Log

func (e Entry) Log()

func (Entry) Messagef

func (e Entry) Messagef(f string, a ...interface{}) Entry

func (Entry) Summaryf

func (e Entry) Summaryf(f string, a ...interface{}) Entry

func (Entry) V

func (e Entry) V(v int) Entry

func (Entry) WithField

func (e Entry) WithField(key string, value interface{}) Entry

func (Entry) WithFields

func (e Entry) WithFields(f Fields) Entry

type Fields

type Fields map[string]interface{}

type Severity

type Severity int
const (
	SeverityError Severity = iota
	SeverityInfo
)

type Wrapper

type Wrapper struct {
	// contains filtered or unexported fields
}

func NewWrapper

func NewWrapper(log logr.Logger, dbw *database.Wrapper, secr *secrets.Wrapper) *Wrapper

func (*Wrapper) Decrypt

func (w *Wrapper) Decrypt(organizationID uuid.UUID, messages []database.AdminMessage) ([]AdminMessage, error)

func (*Wrapper) Start

func (w *Wrapper) Start(organizationID uuid.UUID) Entry

Jump to

Keyboard shortcuts

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