storage

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2015 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LogRoot string

Exported so it can be set by an external agent-- namely main.go, which does some flag parsing.

Functions

This section is empty.

Types

type Adapter

type Adapter interface {
	Write(string, string) error
	Read(string, int) ([]string, error)
	Destroy(string) error
	Reopen() error
}

Adapter is an interface for pluggable components that store log messages.

func NewAdapter

func NewAdapter(storeageAdapterType string) (Adapter, error)

NewAdapter returns a pointer to an appropriate implementation of the Adapter interface, as determined by the storeageAdapterType string it is passed.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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