dummy

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DummyFace

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

func NewDummyFace

func NewDummyFace() *DummyFace

func (*DummyFace) Close

func (f *DummyFace) Close() error

func (*DummyFace) Consume

func (f *DummyFace) Consume() (enc.Buffer, error)

Consume consumes a packet from the engine

func (*DummyFace) FeedPacket

func (f *DummyFace) FeedPacket(pkt enc.Buffer) error

FeedPacket feeds a packet for the engine to consume

func (*DummyFace) IsLocal

func (f *DummyFace) IsLocal() bool

func (*DummyFace) IsRunning

func (f *DummyFace) IsRunning() bool

func (*DummyFace) Open

func (f *DummyFace) Open() error

func (*DummyFace) Send

func (f *DummyFace) Send(pkt enc.Wire) error

func (*DummyFace) SetCallback

func (f *DummyFace) SetCallback(onPkt func(r enc.ParseReader) error,
	onError func(err error) error)

type Timer

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

func NewTimer

func NewTimer() *Timer

func (*Timer) MoveForward

func (tm *Timer) MoveForward(d time.Duration)

func (*Timer) Nonce

func (*Timer) Nonce() []byte

func (*Timer) Now

func (tm *Timer) Now() time.Time

func (*Timer) Schedule

func (tm *Timer) Schedule(d time.Duration, f func()) func() error

func (*Timer) Sleep

func (tm *Timer) Sleep(d time.Duration)

Jump to

Keyboard shortcuts

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