test

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterPingPongServer

func RegisterPingPongServer(s *grpc.Server, srv PingPongServer)

Types

type Empty added in v0.2.0

type Empty struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Empty) Descriptor added in v0.2.0

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

func (*Empty) ProtoMessage added in v0.2.0

func (*Empty) ProtoMessage()

func (*Empty) Reset added in v0.2.0

func (m *Empty) Reset()

func (*Empty) String added in v0.2.0

func (m *Empty) String() string

func (*Empty) XXX_DiscardUnknown added in v0.2.0

func (m *Empty) XXX_DiscardUnknown()

func (*Empty) XXX_Marshal added in v0.2.0

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

func (*Empty) XXX_Merge added in v0.2.0

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

func (*Empty) XXX_Size added in v0.2.0

func (m *Empty) XXX_Size() int

func (*Empty) XXX_Unmarshal added in v0.2.0

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

type ErrorReq added in v0.2.0

type ErrorReq struct {
	Code                 uint32   `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg                  string   `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ErrorReq) Descriptor added in v0.2.0

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

func (*ErrorReq) GetCode added in v0.2.0

func (m *ErrorReq) GetCode() uint32

func (*ErrorReq) GetMsg added in v0.2.0

func (m *ErrorReq) GetMsg() string

func (*ErrorReq) ProtoMessage added in v0.2.0

func (*ErrorReq) ProtoMessage()

func (*ErrorReq) Reset added in v0.2.0

func (m *ErrorReq) Reset()

func (*ErrorReq) String added in v0.2.0

func (m *ErrorReq) String() string

func (*ErrorReq) XXX_DiscardUnknown added in v0.2.0

func (m *ErrorReq) XXX_DiscardUnknown()

func (*ErrorReq) XXX_Marshal added in v0.2.0

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

func (*ErrorReq) XXX_Merge added in v0.2.0

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

func (*ErrorReq) XXX_Size added in v0.2.0

func (m *ErrorReq) XXX_Size() int

func (*ErrorReq) XXX_Unmarshal added in v0.2.0

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

type PingPongClient

type PingPongClient interface {
	Ping(ctx context.Context, in *PingReq, opts ...grpc.CallOption) (*PingResp, error)
	Panic(ctx context.Context, in *PingReq, opts ...grpc.CallOption) (*PingResp, error)
	Err(ctx context.Context, in *ErrorReq, opts ...grpc.CallOption) (*Empty, error)
}

PingPongClient is the client API for PingPong service.

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

func NewPingPongClient

func NewPingPongClient(cc *grpc.ClientConn) PingPongClient

type PingPongServer

type PingPongServer interface {
	Ping(context.Context, *PingReq) (*PingResp, error)
	Panic(context.Context, *PingReq) (*PingResp, error)
	Err(context.Context, *ErrorReq) (*Empty, error)
}

PingPongServer is the server API for PingPong service.

func NewPingPongServer

func NewPingPongServer() PingPongServer

type PingReq

type PingReq struct {
	Msg                  string   `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PingReq) Descriptor

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

func (*PingReq) GetMsg

func (m *PingReq) GetMsg() string

func (*PingReq) ProtoMessage

func (*PingReq) ProtoMessage()

func (*PingReq) Reset

func (m *PingReq) Reset()

func (*PingReq) String

func (m *PingReq) String() string

func (*PingReq) XXX_DiscardUnknown added in v0.2.0

func (m *PingReq) XXX_DiscardUnknown()

func (*PingReq) XXX_Marshal added in v0.2.0

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

func (*PingReq) XXX_Merge added in v0.2.0

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

func (*PingReq) XXX_Size added in v0.2.0

func (m *PingReq) XXX_Size() int

func (*PingReq) XXX_Unmarshal added in v0.2.0

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

type PingResp

type PingResp struct {
	Msg                  string   `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PingResp) Descriptor

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

func (*PingResp) GetMsg

func (m *PingResp) GetMsg() string

func (*PingResp) ProtoMessage

func (*PingResp) ProtoMessage()

func (*PingResp) Reset

func (m *PingResp) Reset()

func (*PingResp) String

func (m *PingResp) String() string

func (*PingResp) XXX_DiscardUnknown added in v0.2.0

func (m *PingResp) XXX_DiscardUnknown()

func (*PingResp) XXX_Marshal added in v0.2.0

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

func (*PingResp) XXX_Merge added in v0.2.0

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

func (*PingResp) XXX_Size added in v0.2.0

func (m *PingResp) XXX_Size() int

func (*PingResp) XXX_Unmarshal added in v0.2.0

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

Jump to

Keyboard shortcuts

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