Documentation ¶
Index ¶
- func InputToPBInput(in *stub.Input) *mockpb.Input
- func OutputToPBOutput(out *stub.Output) *mockpb.Output
- func PBInputToInput(pbin *mockpb.Input) *stub.Input
- func PBOutputToOutput(pbout *mockpb.Output) *stub.Output
- func PBStubToStub(pbstub *mockpb.Stub) *stub.Stub
- func PBStubsToStubs(pbstubs []*mockpb.Stub) ([]*stub.Stub, error)
- func StubToPBStub(stub *stub.Stub) *mockpb.Stub
- func StubsToPBStubs(stubs []*stub.Stub) []*mockpb.Stub
- type Server
- func (s *Server) AddStubs(ctx context.Context, req *mockpb.AddStubsRequest) (*mockpb.AddStubsResponse, error)
- func (s *Server) DeleteStubs(ctx context.Context, req *mockpb.DeleteStubsRequest) (*mockpb.DeleteStubsResponse, error)
- func (s *Server) FindStubs(ctx context.Context, req *mockpb.FindStubsRequest) (*mockpb.FindStubsResponse, error)
- type StubManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(mgr StubManager) *Server
func (*Server) AddStubs ¶
func (s *Server) AddStubs(ctx context.Context, req *mockpb.AddStubsRequest) (*mockpb.AddStubsResponse, error)
func (*Server) DeleteStubs ¶
func (s *Server) DeleteStubs(ctx context.Context, req *mockpb.DeleteStubsRequest) (*mockpb.DeleteStubsResponse, error)
func (*Server) FindStubs ¶
func (s *Server) FindStubs(ctx context.Context, req *mockpb.FindStubsRequest) (*mockpb.FindStubsResponse, error)
Click to show internal directories.
Click to hide internal directories.