generators

package
v0.0.0-...-dca56ca Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2014 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HEARTBEAT_TAG = "heartbeat"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Amqpin

type Amqpin struct {
	AmqpConnection *amqp.Connection
	AmqpChannel    *amqp.Channel
	AmqpQueue      amqp.Queue
	// contains filtered or unexported fields
}

func NewAmqpin

func NewAmqpin() *Amqpin

func (*Amqpin) Close

func (amqpin *Amqpin) Close()

func (*Amqpin) Config

func (amqpin *Amqpin) Config(config *generic.ConfigurationLink) bool

func (*Amqpin) Do

func (amqpin *Amqpin) Do(input chan messages.Message) chan messages.Message

func (*Amqpin) GetName

func (amqpin *Amqpin) GetName() string

func (*Amqpin) GetType

func (amqpin *Amqpin) GetType() generic.LinkType

type Beat

type Beat struct {
	Timestamp int64  `json:"timestamp"`
	Message   string `json:"message"`
}

type Fanin

type Fanin struct {
	Channel chan messages.Message
	// contains filtered or unexported fields
}

func NewFanin

func NewFanin() *Fanin

func (*Fanin) Close

func (fanin *Fanin) Close()

func (*Fanin) Config

func (fanin *Fanin) Config(config *generic.ConfigurationLink) bool

func (*Fanin) Do

func (fanin *Fanin) Do(input chan messages.Message) chan messages.Message

func (*Fanin) GetName

func (fanin *Fanin) GetName() string

func (*Fanin) GetType

func (fanin *Fanin) GetType() generic.LinkType

type Heartbeat

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

func NewHeartbeat

func NewHeartbeat() *Heartbeat

func (*Heartbeat) Close

func (heartbeat *Heartbeat) Close()

func (*Heartbeat) Config

func (heartbeat *Heartbeat) Config(config *generic.ConfigurationLink) bool

func (*Heartbeat) Do

func (heartbeat *Heartbeat) Do(input chan messages.Message) chan messages.Message

func (*Heartbeat) GetName

func (heartbeat *Heartbeat) GetName() string

func (*Heartbeat) GetType

func (heartbeat *Heartbeat) GetType() generic.LinkType

type Httpin

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

func NewHttpin

func NewHttpin() *Httpin

func (*Httpin) Close

func (httpin *Httpin) Close()

func (*Httpin) Config

func (httpin *Httpin) Config(config *generic.ConfigurationLink) bool

func (*Httpin) Do

func (httpin *Httpin) Do(input chan messages.Message) chan messages.Message

func (*Httpin) GetName

func (httpin *Httpin) GetName() string

func (*Httpin) GetType

func (httpin *Httpin) GetType() generic.LinkType

func (*Httpin) Serve

func (httpin *Httpin) Serve(handler http.Handler)

type Line

type Line struct {
	Line string `json:"line"`
}

type Tail

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

func NewTail

func NewTail() *Tail

func (*Tail) Close

func (tail *Tail) Close()

func (*Tail) Config

func (tail *Tail) Config(config *generic.ConfigurationLink) bool

func (*Tail) Do

func (tail *Tail) Do(input chan messages.Message) chan messages.Message

func (*Tail) GetName

func (tail *Tail) GetName() string

func (*Tail) GetType

func (tail *Tail) GetType() generic.LinkType

func (*Tail) ProcessLine

func (tail *Tail) ProcessLine(line string) (output string, err error)

Jump to

Keyboard shortcuts

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