message

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2022 License: LGPL-2.1 Imports: 15 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

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

type FluentReader

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

func New

func New(eventHandler HandlerFunc) *FluentReader

type FluentSession added in v0.3.0

type FluentSession struct {
	Reader    *FluentReader
	SharedKey string

	Hostname       string
	PasswordForKey PasswordForKey
	// contains filtered or unexported fields
}

func (*FluentSession) Ack added in v0.3.0

func (s *FluentSession) Ack(chunk string) error

func (*FluentSession) Flush added in v0.3.0

func (s *FluentSession) Flush() error

func (*FluentSession) HandleEvents added in v0.3.0

func (s *FluentSession) HandleEvents(l int, _type string) error

func (*FluentSession) HandleHearthBeat added in v0.3.0

func (s *FluentSession) HandleHearthBeat() error

func (*FluentSession) Loop added in v0.3.0

func (s *FluentSession) Loop(conn io.ReadWriteCloser) error

type Flusher added in v0.3.0

type Flusher interface {
	Flush() error
}

type HandlerFunc

type HandlerFunc func(tag string, time *time.Time, record map[string]interface{}) error

type Option added in v0.3.0

type Option struct {
	Size       int
	Chunk      string
	Compressed string
	Stuff      map[string]interface{}
}

type PasswordForKey added in v0.3.0

type PasswordForKey func(string) string

type Ping added in v0.3.0

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

func (*Ping) ValidateSharedKeyHexdigest added in v0.3.0

func (p *Ping) ValidateSharedKeyHexdigest(nonce, sharedKey string) error

type Step added in v0.3.0

type Step int
const (
	WatingForHelo Step = iota
	WaitingForPing
	WaitingForPong
	WaitingForEvents
)

Jump to

Keyboard shortcuts

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