mock

package
v0.0.0-...-be6f5f5 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultBufferSize = 4096

DefaultBufferSize is the default size for the read buffer

Functions

This section is empty.

Types

type MockServer

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

MockServer includes the conn, reader and the mock filters map

func NewMockServer

func NewMockServer(conn net.Conn) *MockServer

NewMockServer creates and returns a mock server with the supplied connection

func (*MockServer) Filters

func (s *MockServer) Filters() map[string]map[string]bool

func (*MockServer) Serve

func (s *MockServer) Serve()

Serve spins up the mock server

Jump to

Keyboard shortcuts

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