exchangetest

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeSubscriber

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

func NewFakeSubscriber

func NewFakeSubscriber(ch chan *obm.Update) *FakeSubscriber

func (*FakeSubscriber) OnSnapshot

func (s *FakeSubscriber) OnSnapshot(_ string, u *obm.Update) error

func (*FakeSubscriber) OnUpdate

func (s *FakeSubscriber) OnUpdate(_ string, u *obm.Update) error

type WS

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

func NewWS

func NewWS(t *testing.T, fn WsFn) *WS

func (*WS) ServeHTTP

func (ws *WS) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*WS) Start

func (ws *WS) Start() (string, func())

type WsFn

type WsFn func(*testing.T, *websocket.Conn)

Jump to

Keyboard shortcuts

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