replay package - github.com/cj123/assetto-server-manager/pkg/udp/replay - Go Packages

replay

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BucketName = []byte("sessions")

Functions

func RecordUDPMessages

func RecordUDPMessages(db *bbolt.DB) (callbackFunc udp.CallbackFunc)

func ReplayUDPMessages

func ReplayUDPMessages(db *bbolt.DB, multiplier int, callbackFunc udp.CallbackFunc, waitTime time.Duration) error

Types

type Entries added in v1.2.0

type Entries []*Entry

func (Entries) Len added in v1.2.0

func (e Entries) Len() int

func (Entries) Less added in v1.2.0

func (e Entries) Less(i, j int) bool

func (Entries) Swap added in v1.2.0

func (e Entries) Swap(i, j int)

type Entry

type Entry struct {
	Received  time.Time
	EventType udp.Event

	Data udp.Message
}

func (*Entry) UnmarshalJSON

func (e *Entry) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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