logstash

package
v0.0.0-...-316faa8 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(key, host string, debugLevel bool, options ...Option) core.Logger

New 创建一个logstash日志器

Types

type Config

type Config struct {
	DataType DataType
	DB       int
	Host     string
	Password string
	Port     int
	Key      string
}

Config is Configuration for redis input

type DataType

type DataType int8

DataType specify either list or channel

const (
	// List use rpush
	List DataType = iota
	// Channel use publish
	Channel
)

type Option

type Option func(*Config)

Option 是redis syncer的配置函数

Jump to

Keyboard shortcuts

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