logx

package
v0.0.0-...-8c2001a Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: MIT Imports: 1 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 string

type Message

type Message struct {
	Index    string
	TenantId string
	Payload  string
}

type Provider

type Provider interface {
	Proxy
	Sink
}

type Proxy

type Proxy interface {
	Query(tenantId string, req QueryRequest) ([]Log, error)
}

type QueryRequest

type QueryRequest struct {
	Count   int
	From    string
	To      string
	Cursor  string
	Filters map[string]string
}

type Service

type Service interface {
	GetEngineLogger() *zerolog.Logger
	GetAppLogger() *zerolog.Logger
	GetSiteLogger(tenantId, domain string) zerolog.Logger
	GetServiceLogger(service string) zerolog.Logger
	GetLogProxy() Proxy
}

type Sink

type Sink interface {
	Send(node_id int64, messages []Message) error
	LastLogId() (int64, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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