peeradata

package
v0.6.3-beta01 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	PreviousConnID int    `json:"prev_connection_id"`
	ConnectionID   int    `json:"connection_id"`
	GroupID        int    `json:"connection_group_id"`
	Timestamp      string `json:"timestamp"`
	Reason         string `json:"route_change_reason,omitempty"`
}

func NewEntry

func NewEntry(prevID, connID, grID int) *Entry

type Message

type Message struct {
	common.MessageHeader
	Data []*Entry `json:"data"`
}

func NewMessage

func NewMessage() *Message

func (*Message) Add

func (msg *Message) Add(entries ...*Entry)

func (*Message) Send

func (msg *Message) Send(writer io.Writer) error

Jump to

Keyboard shortcuts

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