gidSrv

package
v2.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterGidServer

func RegisterGidServer(s *grpc.Server, srv GidServer)

Types

type GidClient

type GidClient interface {
	GetId(ctx context.Context, in *ReqId, opts ...grpc.CallOption) (*ResId, error)
}

GidClient is the client API for Gid service.

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

func NewGidClient

func NewGidClient(cc *grpc.ClientConn) GidClient

type GidServer

type GidServer interface {
	GetId(context.Context, *ReqId) (*ResId, error)
}

GidServer is the server API for Gid service.

type ReqId

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

func (*ReqId) Descriptor

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

func (*ReqId) GetBizTag

func (m *ReqId) GetBizTag() string

func (*ReqId) ProtoMessage

func (*ReqId) ProtoMessage()

func (*ReqId) Reset

func (m *ReqId) Reset()

func (*ReqId) String

func (m *ReqId) String() string

func (*ReqId) XXX_DiscardUnknown

func (m *ReqId) XXX_DiscardUnknown()

func (*ReqId) XXX_Marshal

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

func (*ReqId) XXX_Merge

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

func (*ReqId) XXX_Size

func (m *ReqId) XXX_Size() int

func (*ReqId) XXX_Unmarshal

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

type ResId

type ResId struct {
	Id                   int64    `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ResId) Descriptor

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

func (*ResId) GetId

func (m *ResId) GetId() int64

func (*ResId) ProtoMessage

func (*ResId) ProtoMessage()

func (*ResId) Reset

func (m *ResId) Reset()

func (*ResId) String

func (m *ResId) String() string

func (*ResId) XXX_DiscardUnknown

func (m *ResId) XXX_DiscardUnknown()

func (*ResId) XXX_Marshal

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

func (*ResId) XXX_Merge

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

func (*ResId) XXX_Size

func (m *ResId) XXX_Size() int

func (*ResId) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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