fakeapi

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2018 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const WS_SCHEME = "wss://"

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeApi

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

func NewFakeApi

func NewFakeApi() *FakeApi

func (*FakeApi) Append

func (f *FakeApi) Append(pattern string, handler func(http.ResponseWriter, *http.Request))

func (*FakeApi) AppendInstances

func (f *FakeApi) AppendInstances(protoInstances []*proto.Instance)

func (*FakeApi) AppendInstancesId added in v1.5.0

func (f *FakeApi) AppendInstancesId(id uint, protoInstance *proto.Instance)

func (*FakeApi) AppendPing

func (f *FakeApi) AppendPing()

func (*FakeApi) Close

func (f *FakeApi) Close()

func (*FakeApi) URL

func (f *FakeApi) URL() string

func (*FakeApi) WSURL

func (f *FakeApi) WSURL() string

Jump to

Keyboard shortcuts

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