fakeobserver

package
v0.0.0-...-4bd6544 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2016 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Instance

type Instance struct {
	testing.Stub
}

Instance is a fake Observer used for testing.

func (*Instance) Join

func (f *Instance) Join(req *http.Request, connectionID uint64)

Join implements Observer.

func (*Instance) Leave

func (f *Instance) Leave()

Leave implements Observer.

func (*Instance) Login

func (f *Instance) Login(entity names.Tag, model names.ModelTag, fromController bool, userData string)

Login implements Observer.

func (*Instance) RPCObserver

func (f *Instance) RPCObserver() rpc.Observer

RPCObserver implements Observer.

type RPCInstance

type RPCInstance struct {
	testing.Stub
}

RPCInstance is a fake RPCObserver used for testing.

func (*RPCInstance) ServerReply

func (f *RPCInstance) ServerReply(req rpc.Request, hdr *rpc.Header, body interface{})

ServerReply implements Observer.

func (*RPCInstance) ServerRequest

func (f *RPCInstance) ServerRequest(hdr *rpc.Header, body interface{})

ServerRequest implements Observer.

Jump to

Keyboard shortcuts

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