Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var File_grpc_notice_proto protoreflect.FileDescriptor
Functions ¶
func RegisterNoticeServer ¶
func RegisterNoticeServer(s *grpc.Server, srv NoticeServer)
Types ¶
type NoticeClient ¶
type NoticeClient interface { Bind(ctx context.Context, in *Req, opts ...grpc.CallOption) (*Res, error) UnBind(ctx context.Context, in *Req, opts ...grpc.CallOption) (*Res, error) SendUid(ctx context.Context, in *Req, opts ...grpc.CallOption) (*Res, error) }
NoticeClient is the client API for Notice service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewNoticeClient ¶
func NewNoticeClient(cc grpc.ClientConnInterface) NoticeClient
type NoticeServer ¶
type NoticeServer interface { Bind(context.Context, *Req) (*Res, error) UnBind(context.Context, *Req) (*Res, error) SendUid(context.Context, *Req) (*Res, error) }
NoticeServer is the server API for Notice service.
type Req ¶
type Req struct { Id int64 `protobuf:"varint,1,opt,name=Id,proto3" json:"Id,omitempty"` Msg string `protobuf:"bytes,4,opt,name=Msg,proto3" json:"Msg,omitempty"` // contains filtered or unexported fields }
func (*Req) Descriptor
deprecated
func (*Req) ProtoMessage ¶
func (*Req) ProtoMessage()
func (*Req) ProtoReflect ¶
func (x *Req) ProtoReflect() protoreflect.Message
type Res ¶
type Res struct { Code int32 `protobuf:"varint,1,opt,name=Code,proto3" json:"Code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=Msg,proto3" json:"Msg,omitempty"` // contains filtered or unexported fields }
func (*Res) Descriptor
deprecated
func (*Res) ProtoMessage ¶
func (*Res) ProtoMessage()
func (*Res) ProtoReflect ¶
func (x *Res) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.