mock

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connection

func Connection(port int, t *testing.T) *websocket.Conn

Connection mock

func NewServiceContainer

func NewServiceContainer() websockets.ServiceContainer

func Server

func Server(t *testing.T) (ws *websockets.Server, port int)

Server mock websockets server

Types

type ServiceContainer

type ServiceContainer struct {
	mock.Mock
	// contains filtered or unexported fields
}

ServiceContainer mock

func (*ServiceContainer) GetLogger

func (cnt *ServiceContainer) GetLogger() websockets.Logger

func (*ServiceContainer) GetWebsocketsConfig

func (cnt *ServiceContainer) GetWebsocketsConfig() *websockets.ServerConfig

Jump to

Keyboard shortcuts

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