message

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 License: LGPL-2.1 Imports: 15 Imported by: 0

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

	Logger *log.Logger
	Users  func(string) []byte
	Debug  bool
	// 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) ValidatePassword added in v0.3.2

func (p *Ping) ValidatePassword(hashsalt []byte, user func(string) []byte) error

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