mocks

package
v2.36.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StreamInfo = &grpc.StreamServerInfo{
	FullMethod:     "TestServerInterceptor",
	IsServerStream: true,
}
View Source
var UnaryInfo = &grpc.UnaryServerInfo{
	FullMethod: "TestUnaryInterceptor",
}

Functions

This section is empty.

Types

type MockServerStream

type MockServerStream struct {
	grpc.ServerStream
	// contains filtered or unexported fields
}

func NewMockServerStream

func NewMockServerStream(withMetada bool) *MockServerStream

func (*MockServerStream) Context

func (m *MockServerStream) Context() context.Context

func (*MockServerStream) RecvMsg

func (m *MockServerStream) RecvMsg(msg interface{}) error

func (*MockServerStream) SendMsg

func (m *MockServerStream) SendMsg(msg interface{}) error

func (*MockServerStream) SetContext

func (m *MockServerStream) SetContext(ctx context.Context)

Jump to

Keyboard shortcuts

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