logs

package
v0.3.623 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, dbURL string) (models.LogStore, error)

New Creates a new log store based on a given URL

func NewMock

func NewMock(args ...interface{}) models.LogStore

func Register

func Register(pf Provider)

Register globally registers a new LogStore provider

func Wrap

func Wrap(ls models.LogStore) models.LogStore

Types

type Provider

type Provider interface {
	fmt.Stringer
	// Supports indicates if this provider can handle a specific URL scheme
	Supports(url *url.URL) bool
	//Create a new log store from the corresponding URL
	New(ctx context.Context, url *url.URL) (models.LogStore, error)
}

Provider defines a source that can create log stores

Directories

Path Synopsis
Package s3 implements an s3 api compatible log store
Package s3 implements an s3 api compatible log store

Jump to

Keyboard shortcuts

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