fakeobserver

package
Version: v0.0.0-...-9a03d5f Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2021 License: AGPL-3.0 Imports: 6 Imported by: 4

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.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL