ping

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2020 License: Apache-2.0 Imports: 9 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthPing        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPing          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupPing = fmt.Errorf("proto: unexpected end of group")
)

Functions

func RegisterPingServiceServer

func RegisterPingServiceServer(s *grpc.Server, srv PingServiceServer)

Types

type PingServiceClient

type PingServiceClient interface {
	Ping(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
	PingStream(ctx context.Context, opts ...grpc.CallOption) (PingService_PingStreamClient, error)
}

PingServiceClient is the client API for PingService service.

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

func NewPingServiceClient

func NewPingServiceClient(cc *grpc.ClientConn) PingServiceClient

type PingServiceServer

type PingServiceServer interface {
	Ping(context.Context, *Request) (*Response, error)
	PingStream(PingService_PingStreamServer) error
}

PingServiceServer is the server API for PingService service.

type PingService_PingStreamClient

type PingService_PingStreamClient interface {
	Send(*Request) error
	Recv() (*Response, error)
	grpc.ClientStream
}

type PingService_PingStreamServer

type PingService_PingStreamServer interface {
	Send(*Response) error
	Recv() (*Request, error)
	grpc.ServerStream
}

type Request

type Request struct {
	Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
}

func (*Request) Descriptor

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

func (*Request) GetMsg

func (m *Request) GetMsg() string

func (*Request) Marshal added in v0.16.0

func (m *Request) Marshal() (dAtA []byte, err error)

func (*Request) MarshalTo added in v0.16.0

func (m *Request) MarshalTo(dAtA []byte) (int, error)

func (*Request) MarshalToSizedBuffer added in v0.16.0

func (m *Request) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) Reset

func (m *Request) Reset()

func (*Request) Size added in v0.16.0

func (m *Request) Size() (n int)

func (*Request) String

func (m *Request) String() string

func (*Request) Unmarshal added in v0.16.0

func (m *Request) Unmarshal(dAtA []byte) error

func (*Request) XXX_DiscardUnknown added in v0.16.0

func (m *Request) XXX_DiscardUnknown()

func (*Request) XXX_Marshal added in v0.16.0

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

func (*Request) XXX_Merge added in v0.16.0

func (m *Request) XXX_Merge(src proto.Message)

func (*Request) XXX_Size added in v0.16.0

func (m *Request) XXX_Size() int

func (*Request) XXX_Unmarshal added in v0.16.0

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

type Response

type Response struct {
	Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
}

func (*Response) Descriptor

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

func (*Response) GetMsg

func (m *Response) GetMsg() string

func (*Response) Marshal added in v0.16.0

func (m *Response) Marshal() (dAtA []byte, err error)

func (*Response) MarshalTo added in v0.16.0

func (m *Response) MarshalTo(dAtA []byte) (int, error)

func (*Response) MarshalToSizedBuffer added in v0.16.0

func (m *Response) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) Reset

func (m *Response) Reset()

func (*Response) Size added in v0.16.0

func (m *Response) Size() (n int)

func (*Response) String

func (m *Response) String() string

func (*Response) Unmarshal added in v0.16.0

func (m *Response) Unmarshal(dAtA []byte) error

func (*Response) XXX_DiscardUnknown added in v0.16.0

func (m *Response) XXX_DiscardUnknown()

func (*Response) XXX_Marshal added in v0.16.0

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

func (*Response) XXX_Merge added in v0.16.0

func (m *Response) XXX_Merge(src proto.Message)

func (*Response) XXX_Size added in v0.16.0

func (m *Response) XXX_Size() int

func (*Response) XXX_Unmarshal added in v0.16.0

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

type UnimplementedPingServiceServer added in v0.16.0

type UnimplementedPingServiceServer struct {
}

UnimplementedPingServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedPingServiceServer) Ping added in v0.16.0

func (*UnimplementedPingServiceServer) PingStream added in v0.16.0

Jump to

Keyboard shortcuts

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