gc

package
v0.0.0-...-fe78ce7 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2022 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsKnownPacket

func IsKnownPacket(packet *gc.GCPacket) bool

func UnmarshalPacket

func UnmarshalPacket(packet *gc.GCPacket, message proto.Message) error

Types

type Dispatcher

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

func NewDispatcher

func NewDispatcher(options DispatcherOptions) *Dispatcher

func (*Dispatcher) ChildSpec

func (*Dispatcher) HandleGCPacket

func (p *Dispatcher) HandleGCPacket(packet *gc.GCPacket)

HandleGCPacket implements the steam.GCPacketHandler interface.

It runs in the steam client goroutine.

It's not possible to de-register this handler once registered, so the owner must be long lived.

func (*Dispatcher) Start

func (p *Dispatcher) Start(ctx context.Context) (err error)

type DispatcherOptions

type DispatcherOptions struct {
	Log             *nslog.Logger
	Bus             *nsbus.Bus
	ShutdownTimeout time.Duration
}

type IncomingMessage

type IncomingMessage struct {
	Type     d2pb.EDOTAGCMsg
	Message  proto.Message
	BusTopic string
}

func NewIncomingMessage

func NewIncomingMessage(msgType d2pb.EDOTAGCMsg) *IncomingMessage

func (*IncomingMessage) UnmarshalPacket

func (m *IncomingMessage) UnmarshalPacket(packet *gc.GCPacket) error

Jump to

Keyboard shortcuts

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