message

package
v0.5.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ack added in v0.5.0

func Ack(wire *wire.Wire, chunk string) error

func DecodeEntry added in v0.5.0

func DecodeEntry(decoder *msgpack.Decoder) (*time.Time, map[string]interface{}, error)

func DecodeOption added in v0.5.0

func DecodeOption(decoder *msgpack.Decoder) (*msg.Option, error)

func DecodeTime added in v0.5.0

func DecodeTime(decoder *msgpack.Decoder) (*time.Time, error)

Types

type Event

type Event struct {
	Tag    string
	Ts     *time.Time
	Record map[string]interface{}
}

type FluentSession

type FluentSession struct {
	Wire *wire.Wire

	PasswordForKey PasswordForKey
	// contains filtered or unexported fields
}

func NewSession added in v0.5.0

func NewSession(opts *options.FluentOptions, conn io.ReadWriteCloser) *FluentSession

func (*FluentSession) DoHelo added in v0.5.0

func (s *FluentSession) DoHelo() error

func (*FluentSession) HandleEvents

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

func (*FluentSession) HandleHearthBeat

func (s *FluentSession) HandleHearthBeat() error

func (*FluentSession) HandlePing added in v0.5.0

func (s *FluentSession) HandlePing(wire *wire.Wire, l int, _type string) error

func (*FluentSession) Loop

func (s *FluentSession) Loop() error

type PasswordForKey

type PasswordForKey func(string) string

type Ping

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

func (*Ping) ValidatePassword

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

func (*Ping) ValidateSharedKeyHexdigest

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

type Step

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