output

package
v0.0.0-...-cea89e5 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conf

type Conf struct {
	Type     string `json:"type"`
	User     string `json:"user"`
	Password string `json:"password"`
	Host     string `json:"host"`
	Index    string `json:"index"`
}

type EsOutput

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

func NewEs

func NewEs(confs []Conf, in chan processor.DataUnit, sizeRes int) EsOutput

func (EsOutput) Handle

func (out EsOutput) Handle(un Unit) error

func (EsOutput) Results

func (out EsOutput) Results() ([]byte, error)

func (EsOutput) Start

func (out EsOutput) Start()

type Output

type Output interface {
	Start()
	Handle(Unit) error
	Results() ([]byte, error)
}

type PostResponse

type PostResponse struct {
	Index  string `json:"_index"`
	Type   string `json:"_type"`
	Id     string `json:"_id"`
	Result string `json:"result"`
}

type Unit

type Unit struct {
	Url     string
	Outputs []interface{}
}

Jump to

Keyboard shortcuts

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