logserver

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogListener

type LogListener interface {
	Listen(address string) error
}

func CreateLogListener

func CreateLogListener(opts *LogServerOptions) (LogListener, error)

type LogServerOptions

type LogServerOptions struct {
	MongoUrl           string
	Database           string
	Collection         string
	ExtraIndexes       []mongo.IndexModel // ts, level and id is automatically indexed
	ExpireAfterSeconds int32
}

Jump to

Keyboard shortcuts

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