grpc-go-addons: gomodules.xyz/grpc-go-addons/testing/testproto Index | Files

package mwitkow_testproto

import "gomodules.xyz/grpc-go-addons/testing/testproto"

Package mwitkow_testproto is a generated protocol buffer package.

It is generated from these files:

test.proto

It has these top-level messages:

Empty
PingRequest
PingResponse

Index

Package Files

test.manual_extractfields.pb.go test.manual_validator.pb.go test.pb.go

func RegisterTestServiceServer Uses

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

type Empty Uses

type Empty struct {
}

func (*Empty) Descriptor Uses

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

func (*Empty) ProtoMessage Uses

func (*Empty) ProtoMessage()

func (*Empty) Reset Uses

func (m *Empty) Reset()

func (*Empty) String Uses

func (m *Empty) String() string

type PingRequest Uses

type PingRequest struct {
    Value             string `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"`
    SleepTimeMs       int32  `protobuf:"varint,2,opt,name=sleep_time_ms,json=sleepTimeMs" json:"sleep_time_ms,omitempty"`
    ErrorCodeReturned uint32 `protobuf:"varint,3,opt,name=error_code_returned,json=errorCodeReturned" json:"error_code_returned,omitempty"`
}

func (*PingRequest) Descriptor Uses

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

func (*PingRequest) ExtractRequestFields Uses

func (m *PingRequest) ExtractRequestFields(appendToMap map[string]interface{})

This is implementing grpc_logging.requestLogFieldsExtractor

func (*PingRequest) GetErrorCodeReturned Uses

func (m *PingRequest) GetErrorCodeReturned() uint32

func (*PingRequest) GetSleepTimeMs Uses

func (m *PingRequest) GetSleepTimeMs() int32

func (*PingRequest) GetValue Uses

func (m *PingRequest) GetValue() string

func (*PingRequest) ProtoMessage Uses

func (*PingRequest) ProtoMessage()

func (*PingRequest) Reset Uses

func (m *PingRequest) Reset()

func (*PingRequest) String Uses

func (m *PingRequest) String() string

func (*PingRequest) Validate Uses

func (p *PingRequest) Validate() (*gojsonschema.Result, error)

type PingResponse Uses

type PingResponse struct {
    Value   string `protobuf:"bytes,1,opt,name=Value" json:"Value,omitempty"`
    Counter int32  `protobuf:"varint,2,opt,name=counter" json:"counter,omitempty"`
}

func (*PingResponse) Descriptor Uses

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

func (*PingResponse) GetCounter Uses

func (m *PingResponse) GetCounter() int32

func (*PingResponse) GetValue Uses

func (m *PingResponse) GetValue() string

func (*PingResponse) ProtoMessage Uses

func (*PingResponse) ProtoMessage()

func (*PingResponse) Reset Uses

func (m *PingResponse) Reset()

func (*PingResponse) String Uses

func (m *PingResponse) String() string

type TestServiceClient Uses

type TestServiceClient interface {
    PingEmpty(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*PingResponse, error)
    Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error)
    PingError(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*Empty, error)
    PingList(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (TestService_PingListClient, error)
    PingStream(ctx context.Context, opts ...grpc.CallOption) (TestService_PingStreamClient, error)
}

func NewTestServiceClient Uses

func NewTestServiceClient(cc *grpc.ClientConn) TestServiceClient

type TestServiceServer Uses

type TestServiceServer interface {
    PingEmpty(context.Context, *Empty) (*PingResponse, error)
    Ping(context.Context, *PingRequest) (*PingResponse, error)
    PingError(context.Context, *PingRequest) (*Empty, error)
    PingList(*PingRequest, TestService_PingListServer) error
    PingStream(TestService_PingStreamServer) error
}

type TestService_PingListClient Uses

type TestService_PingListClient interface {
    Recv() (*PingResponse, error)
    grpc.ClientStream
}

type TestService_PingListServer Uses

type TestService_PingListServer interface {
    Send(*PingResponse) error
    grpc.ServerStream
}

type TestService_PingStreamClient Uses

type TestService_PingStreamClient interface {
    Send(*PingRequest) error
    Recv() (*PingResponse, error)
    grpc.ClientStream
}

type TestService_PingStreamServer Uses

type TestService_PingStreamServer interface {
    Send(*PingResponse) error
    Recv() (*PingRequest, error)
    grpc.ServerStream
}

Package mwitkow_testproto imports 7 packages (graph) and is imported by 2 packages. Updated 2019-07-13. Refresh now. Tools for package owners.