pt

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCommonServer

func RegisterCommonServer(s *grpc.Server, srv CommonServer)

Types

type CommonClient

type CommonClient interface {
	Plus(ctx context.Context, in *CommonReq, opts ...grpc.CallOption) (*CommonRes, error)
}

CommonClient is the client API for Common service.

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

func NewCommonClient

func NewCommonClient(cc *grpc.ClientConn) CommonClient

type CommonReq

type CommonReq struct {
	A                    int64    `protobuf:"varint,1,opt,name=a,proto3" json:"a,omitempty"`
	B                    int64    `protobuf:"varint,2,opt,name=b,proto3" json:"b,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CommonReq) Descriptor

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

func (*CommonReq) GetA

func (m *CommonReq) GetA() int64

func (*CommonReq) GetB

func (m *CommonReq) GetB() int64

func (*CommonReq) ProtoMessage

func (*CommonReq) ProtoMessage()

func (*CommonReq) Reset

func (m *CommonReq) Reset()

func (*CommonReq) String

func (m *CommonReq) String() string

func (*CommonReq) XXX_DiscardUnknown

func (m *CommonReq) XXX_DiscardUnknown()

func (*CommonReq) XXX_Marshal

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

func (*CommonReq) XXX_Merge

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

func (*CommonReq) XXX_Size

func (m *CommonReq) XXX_Size() int

func (*CommonReq) XXX_Unmarshal

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

type CommonRes

type CommonRes struct {
	C                    int64    `protobuf:"varint,1,opt,name=c,proto3" json:"c,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CommonRes) Descriptor

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

func (*CommonRes) GetC

func (m *CommonRes) GetC() int64

func (*CommonRes) ProtoMessage

func (*CommonRes) ProtoMessage()

func (*CommonRes) Reset

func (m *CommonRes) Reset()

func (*CommonRes) String

func (m *CommonRes) String() string

func (*CommonRes) XXX_DiscardUnknown

func (m *CommonRes) XXX_DiscardUnknown()

func (*CommonRes) XXX_Marshal

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

func (*CommonRes) XXX_Merge

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

func (*CommonRes) XXX_Size

func (m *CommonRes) XXX_Size() int

func (*CommonRes) XXX_Unmarshal

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

type CommonServer

type CommonServer interface {
	Plus(context.Context, *CommonReq) (*CommonRes, error)
}

CommonServer is the server API for Common service.

Jump to

Keyboard shortcuts

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