rpctest

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package rpctest provides utilities for RPC testing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

func NewFileServer

func NewFileServer(t *testing.T, filename string) *Server

func NewServer

func NewServer(t *testing.T, r io.Reader) *Server

func (*Server) Close

func (srv *Server) Close()

func (*Server) ServeHTTP

func (srv *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*Server) URL

func (srv *Server) URL() string

Jump to

Keyboard shortcuts

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