mock

package
v0.0.0-...-01ad966 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2021 License: Apache-2.0 Imports: 17 Imported by: 1

Documentation

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 NewServer

func NewServer(addr string, m StubMatcher) *Server

func (*Server) RegisterServices

func (s *Server) RegisterServices(fds []*desc.FileDescriptor)

func (*Server) Start

func (s *Server) Start() (err error)

func (*Server) Stop

func (s *Server) Stop() (err error)

type StubMatcher

type StubMatcher interface {
	FindStubs(service, method string, fields map[string]interface{}) []*stub.Stub
}

Jump to

Keyboard shortcuts

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