grpc: google.golang.org/grpc/stats/grpc_testing Index | Files

package grpc_testing

import "google.golang.org/grpc/stats/grpc_testing"

Index

Package Files

test.pb.go

func RegisterTestServiceServer Uses

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

type SimpleRequest Uses

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:"-"`
}

func (*SimpleRequest) Descriptor Uses

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

func (*SimpleRequest) GetId Uses

func (m *SimpleRequest) GetId() int32

func (*SimpleRequest) ProtoMessage Uses

func (*SimpleRequest) ProtoMessage()

func (*SimpleRequest) Reset Uses

func (m *SimpleRequest) Reset()

func (*SimpleRequest) String Uses

func (m *SimpleRequest) String() string

func (*SimpleRequest) XXX_DiscardUnknown Uses

func (m *SimpleRequest) XXX_DiscardUnknown()

func (*SimpleRequest) XXX_Marshal Uses

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

func (*SimpleRequest) XXX_Merge Uses

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

func (*SimpleRequest) XXX_Size Uses

func (m *SimpleRequest) XXX_Size() int

func (*SimpleRequest) XXX_Unmarshal Uses

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

type SimpleResponse Uses

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:"-"`
}

func (*SimpleResponse) Descriptor Uses

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

func (*SimpleResponse) GetId Uses

func (m *SimpleResponse) GetId() int32

func (*SimpleResponse) ProtoMessage Uses

func (*SimpleResponse) ProtoMessage()

func (*SimpleResponse) Reset Uses

func (m *SimpleResponse) Reset()

func (*SimpleResponse) String Uses

func (m *SimpleResponse) String() string

func (*SimpleResponse) XXX_DiscardUnknown Uses

func (m *SimpleResponse) XXX_DiscardUnknown()

func (*SimpleResponse) XXX_Marshal Uses

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

func (*SimpleResponse) XXX_Merge Uses

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

func (*SimpleResponse) XXX_Size Uses

func (m *SimpleResponse) XXX_Size() int

func (*SimpleResponse) XXX_Unmarshal Uses

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

type TestServiceClient Uses

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.

func NewTestServiceClient Uses

func NewTestServiceClient(cc *grpc.ClientConn) TestServiceClient

type TestServiceServer Uses

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.

type TestService_ClientStreamCallClient Uses

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

type TestService_ClientStreamCallServer Uses

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

type TestService_FullDuplexCallClient Uses

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

type TestService_FullDuplexCallServer Uses

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

type TestService_ServerStreamCallClient Uses

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

type TestService_ServerStreamCallServer Uses

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

Package grpc_testing imports 5 packages (graph). Updated 2018-06-09. Refresh now. Tools for package owners.