network

package
v0.0.1-pre-alpha.9 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2018 License: GPL-3.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ObjectUpdateMessage byte = iota
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Constructor

type Constructor func(uint64) (Object, error)

type Manager

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

func NewNetworkManager

func NewNetworkManager(conn io.ReadWriter) *Manager

func (*Manager) RegisterConstructor

func (mgr *Manager) RegisterConstructor(className string, f Constructor)

func (*Manager) RegisterInstance

func (mgr *Manager) RegisterInstance(obj Object)

func (*Manager) Update

func (mgr *Manager) Update() error

type Object

type Object interface {
	Id() uint64
}

Jump to

Keyboard shortcuts

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