wsmock

package
v0.26.4 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2018 License: Apache-2.0 Imports: 10 Imported by: 2

Documentation

Overview

Package wsmock implements mock websocket server

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EchoServer

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

func NewEchoServer

func NewEchoServer(log *logrus.Entry, tls bool) *EchoServer

func (*EchoServer) Certificate

func (s *EchoServer) Certificate() *x509.Certificate

func (*EchoServer) URL

func (s *EchoServer) URL() *url.URL

type PeriodicServer

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

func NewPeriodicServer

func NewPeriodicServer(cfg PeriodicServerConfig, log *logrus.Entry, tls bool) *PeriodicServer

func (*PeriodicServer) Certificate

func (p *PeriodicServer) Certificate() *x509.Certificate

func (*PeriodicServer) URL

func (p *PeriodicServer) URL() *url.URL

type PeriodicServerConfig

type PeriodicServerConfig struct {
	MsgPeriod time.Duration
	MsgText   string
}

Directories

Path Synopsis
Code generated by noice.
Code generated by noice.

Jump to

Keyboard shortcuts

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