store

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2016 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewElasticStore

func NewElasticStore(cfg log.ElasticConfig) log.LogStore

NewElasticStore 创建基于ElasticSearch存储的实例

func NewFileStore

func NewFileStore(config log.FileConfig) log.LogStore

NewFileStore 创建新的FileStore实例

func NewMongoStore

func NewMongoStore(cfg log.MongoConfig) log.LogStore

NewMongoStore 创建基于MongoDB存储的实例

Types

type ElasticStore

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

ElasticStore 提供ElasticSearch的存储实现

func (*ElasticStore) Store

func (es *ElasticStore) Store(item *log.LogItem) error

type FileStore

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

FileStore 提供文件日志存储

func (*FileStore) Store

func (fs *FileStore) Store(item *log.LogItem) error

type MongoStore

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

func (*MongoStore) Store

func (ms *MongoStore) Store(item *log.LogItem) error

Jump to

Keyboard shortcuts

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