Search and commands

↑ ↓ to select · Enter to open · Esc to close

Type to search packages.

grpc_testing

v1.14.0
github.com/bglmmz/grpc/stats/grpc_testing

Documentation

pkg.go.dev ↗

Table of contents

↓ to select · Enter to jump· Shift+Enter for source

34 matches

Top ↑

Functions

RegisterTestServiceServer

func RegisterTestServiceServer(s *grpc.Server, srv TestServiceServer)

Types

SimpleRequest

type SimpleRequest struct {
	Id                   int32    `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

SimpleRequest.Descriptor

func (*SimpleRequest) Descriptor() ([]byte, []int)

SimpleRequest.GetId

func (m *SimpleRequest) GetId() int32

SimpleRequest.ProtoMessage

func (*SimpleRequest) ProtoMessage()

SimpleRequest.Reset

func (m *SimpleRequest) Reset()

SimpleRequest.String

func (m *SimpleRequest) String() string

SimpleRequest.XXX_DiscardUnknown

func (m *SimpleRequest) XXX_DiscardUnknown()

SimpleRequest.XXX_Marshal

func (m *SimpleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

SimpleRequest.XXX_Merge

func (dst *SimpleRequest) XXX_Merge(src proto.Message)

SimpleRequest.XXX_Size

func (m *SimpleRequest) XXX_Size() int

SimpleRequest.XXX_Unmarshal

func (m *SimpleRequest) XXX_Unmarshal(b []byte) error

SimpleResponse

type SimpleResponse struct {
	Id                   int32    `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

SimpleResponse.Descriptor

func (*SimpleResponse) Descriptor() ([]byte, []int)

SimpleResponse.GetId

func (m *SimpleResponse) GetId() int32

SimpleResponse.ProtoMessage

func (*SimpleResponse) ProtoMessage()

SimpleResponse.Reset

func (m *SimpleResponse) Reset()

SimpleResponse.String

func (m *SimpleResponse) String() string

SimpleResponse.XXX_DiscardUnknown

func (m *SimpleResponse) XXX_DiscardUnknown()

SimpleResponse.XXX_Marshal

func (m *SimpleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

SimpleResponse.XXX_Merge

func (dst *SimpleResponse) XXX_Merge(src proto.Message)

SimpleResponse.XXX_Size

func (m *SimpleResponse) XXX_Size() int

SimpleResponse.XXX_Unmarshal

func (m *SimpleResponse) XXX_Unmarshal(b []byte) error

TestServiceClient

type TestServiceClient interface {
	// One request followed by one response.
	// The server returns the client id as-is.
	UnaryCall(ctx context.Context, in *SimpleRequest, opts ...grpc.CallOption) (*SimpleResponse, error)
	// A sequence of requests with each request served by the server immediately.
	// As one request could lead to multiple responses, this interface
	// demonstrates the idea of full duplexing.
	FullDuplexCall(ctx context.Context, opts ...grpc.CallOption) (TestService_FullDuplexCallClient, error)
	// Client stream
	ClientStreamCall(ctx context.Context, opts ...grpc.CallOption) (TestService_ClientStreamCallClient, error)
	// Server stream
	ServerStreamCall(ctx context.Context, in *SimpleRequest, opts ...grpc.CallOption) (TestService_ServerStreamCallClient, error)
}

TestServiceClient is the client API for TestService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

NewTestServiceClient

func NewTestServiceClient(cc *grpc.ClientConn) TestServiceClient

TestServiceServer

type TestServiceServer interface {
	// One request followed by one response.
	// The server returns the client id as-is.
	UnaryCall(context.Context, *SimpleRequest) (*SimpleResponse, error)
	// A sequence of requests with each request served by the server immediately.
	// As one request could lead to multiple responses, this interface
	// demonstrates the idea of full duplexing.
	FullDuplexCall(TestService_FullDuplexCallServer) error
	// Client stream
	ClientStreamCall(TestService_ClientStreamCallServer) error
	// Server stream
	ServerStreamCall(*SimpleRequest, TestService_ServerStreamCallServer) error
}

TestServiceServer is the server API for TestService service.

TestService_ClientStreamCallClient

type TestService_ClientStreamCallClient interface {
	Send(*SimpleRequest) error
	CloseAndRecv() (*SimpleResponse, error)
	grpc.ClientStream
}

TestService_ClientStreamCallServer

type TestService_ClientStreamCallServer interface {
	SendAndClose(*SimpleResponse) error
	Recv() (*SimpleRequest, error)
	grpc.ServerStream
}

TestService_FullDuplexCallClient

type TestService_FullDuplexCallClient interface {
	Send(*SimpleRequest) error
	Recv() (*SimpleResponse, error)
	grpc.ClientStream
}

TestService_FullDuplexCallServer

type TestService_FullDuplexCallServer interface {
	Send(*SimpleResponse) error
	Recv() (*SimpleRequest, error)
	grpc.ServerStream
}

TestService_ServerStreamCallClient

type TestService_ServerStreamCallClient interface {
	Recv() (*SimpleResponse, error)
	grpc.ClientStream
}

TestService_ServerStreamCallServer

type TestService_ServerStreamCallServer interface {
	Send(*SimpleResponse) error
	grpc.ServerStream
}

Dependency graph