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: ? modules, 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

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