wsmock

package
v0.0.0-...-370782b Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WsMock

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

func Init

func Init() *WsMock

func (*WsMock) Close

func (s *WsMock) Close()

func (*WsMock) Dialer

func (s *WsMock) Dialer() *websocket.Dialer

func (*WsMock) QueueResponse

func (s *WsMock) QueueResponse(responseFile string)

func (*WsMock) RegisterWithResponse

func (s *WsMock) RegisterWithResponse(requestContains string, responseFile string)

func (*WsMock) ServeHTTP

func (s *WsMock) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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