Documentation ¶
Index ¶
- Constants
- Variables
- func NewNoticeServiceEndpoints() []*api.Endpoint
- func RegisterNoticeServiceHandler(s server.Server, hdlr NoticeServiceHandler, opts ...server.HandlerOption) error
- type NoticeService
- type NoticeServiceHandler
- type SendNoticeRequest
- func (*SendNoticeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SendNoticeRequest) GetContent() string
- func (x *SendNoticeRequest) GetUserId() int64
- func (*SendNoticeRequest) ProtoMessage()
- func (x *SendNoticeRequest) ProtoReflect() protoreflect.Message
- func (x *SendNoticeRequest) Reset()
- func (x *SendNoticeRequest) String() string
Constants ¶
View Source
const (
ServiceName = "notice"
)
Variables ¶
View Source
var File_notice_notice_proto protoreflect.FileDescriptor
Functions ¶
func NewNoticeServiceEndpoints ¶ added in v0.7.0
func RegisterNoticeServiceHandler ¶ added in v0.7.0
func RegisterNoticeServiceHandler(s server.Server, hdlr NoticeServiceHandler, opts ...server.HandlerOption) error
Types ¶
type NoticeService ¶ added in v0.7.0
type NoticeService interface {
SendNotice(ctx context.Context, in *SendNoticeRequest, opts ...client.CallOption) (*emptypb.Empty, error)
}
func NewNoticeService ¶ added in v0.7.0
func NewNoticeService(name string, c client.Client) NoticeService
type NoticeServiceHandler ¶ added in v0.7.0
type SendNoticeRequest ¶ added in v0.7.0
type SendNoticeRequest struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
func (*SendNoticeRequest) Descriptor
deprecated
added in
v0.7.0
func (*SendNoticeRequest) Descriptor() ([]byte, []int)
Deprecated: Use SendNoticeRequest.ProtoReflect.Descriptor instead.
func (*SendNoticeRequest) GetContent ¶ added in v0.7.0
func (x *SendNoticeRequest) GetContent() string
func (*SendNoticeRequest) GetUserId ¶ added in v0.7.0
func (x *SendNoticeRequest) GetUserId() int64
func (*SendNoticeRequest) ProtoMessage ¶ added in v0.7.0
func (*SendNoticeRequest) ProtoMessage()
func (*SendNoticeRequest) ProtoReflect ¶ added in v0.7.0
func (x *SendNoticeRequest) ProtoReflect() protoreflect.Message
func (*SendNoticeRequest) Reset ¶ added in v0.7.0
func (x *SendNoticeRequest) Reset()
func (*SendNoticeRequest) String ¶ added in v0.7.0
func (x *SendNoticeRequest) String() string
Click to show internal directories.
Click to hide internal directories.