Versions in this module Expand all Collapse all v2 v2.3.3 Mar 12, 2021 Changes in this version + var File_proto_notification_notification_proto protoreflect.FileDescriptor + func NewNotificationServiceEndpoints() []*api.Endpoint + func RegisterNotificationServiceHandler(s server.Server, hdlr NotificationServiceHandler, opts ...server.HandlerOption) error + type IDReq struct + Id uint32 + func (*IDReq) Descriptor() ([]byte, []int) + func (*IDReq) ProtoMessage() + func (x *IDReq) GetId() uint32 + func (x *IDReq) ProtoReflect() protoreflect.Message + func (x *IDReq) Reset() + func (x *IDReq) String() string + type IDsReq struct + Ids []uint32 + func (*IDsReq) Descriptor() ([]byte, []int) + func (*IDsReq) ProtoMessage() + func (x *IDsReq) GetIds() []uint32 + func (x *IDsReq) ProtoReflect() protoreflect.Message + func (x *IDsReq) Reset() + func (x *IDsReq) String() string + type Notification struct + Content string + CreateAt string + DeleteAt string + Id uint32 + IsReaded bool + Service string + func (*Notification) Descriptor() ([]byte, []int) + func (*Notification) ProtoMessage() + func (x *Notification) GetContent() string + func (x *Notification) GetCreateAt() string + func (x *Notification) GetDeleteAt() string + func (x *Notification) GetId() uint32 + func (x *Notification) GetIsReaded() bool + func (x *Notification) GetService() string + func (x *Notification) ProtoReflect() protoreflect.Message + func (x *Notification) Reset() + func (x *Notification) String() string + type NotificationFilter struct + And []*NotificationFilter + Content *wrappers.StringValue + CreateAtGE *wrappers.StringValue + CreateAtGT *wrappers.StringValue + CreateAtLE *wrappers.StringValue + CreateAtLT *wrappers.StringValue + IdIn []uint32 + IsReaded *wrappers.BoolValue + Or []*NotificationFilter + ServiceIn []string + func (*NotificationFilter) Descriptor() ([]byte, []int) + func (*NotificationFilter) ProtoMessage() + func (x *NotificationFilter) GetAnd() []*NotificationFilter + func (x *NotificationFilter) GetContent() *wrappers.StringValue + func (x *NotificationFilter) GetCreateAtGE() *wrappers.StringValue + func (x *NotificationFilter) GetCreateAtGT() *wrappers.StringValue + func (x *NotificationFilter) GetCreateAtLE() *wrappers.StringValue + func (x *NotificationFilter) GetCreateAtLT() *wrappers.StringValue + func (x *NotificationFilter) GetIdIn() []uint32 + func (x *NotificationFilter) GetIsReaded() *wrappers.BoolValue + func (x *NotificationFilter) GetOr() []*NotificationFilter + func (x *NotificationFilter) GetServiceIn() []string + func (x *NotificationFilter) ProtoReflect() protoreflect.Message + func (x *NotificationFilter) Reset() + func (x *NotificationFilter) String() string + type NotificationQuery struct + Filter *NotificationFilter + Limit uint32 + Offset uint32 + Page uint32 + PerPage uint32 + func (*NotificationQuery) Descriptor() ([]byte, []int) + func (*NotificationQuery) ProtoMessage() + func (x *NotificationQuery) GetFilter() *NotificationFilter + func (x *NotificationQuery) GetLimit() uint32 + func (x *NotificationQuery) GetOffset() uint32 + func (x *NotificationQuery) GetPage() uint32 + func (x *NotificationQuery) GetPerPage() uint32 + func (x *NotificationQuery) ProtoReflect() protoreflect.Message + func (x *NotificationQuery) Reset() + func (x *NotificationQuery) String() string + type NotificationReq struct + Content string + Service string + func (*NotificationReq) Descriptor() ([]byte, []int) + func (*NotificationReq) ProtoMessage() + func (x *NotificationReq) GetContent() string + func (x *NotificationReq) GetService() string + func (x *NotificationReq) ProtoReflect() protoreflect.Message + func (x *NotificationReq) Reset() + func (x *NotificationReq) String() string + type NotificationService interface + AddNotification func(ctx context.Context, in *NotificationReq, opts ...client.CallOption) (*Response, error) + DeleteNotifications func(ctx context.Context, in *NotificationFilter, opts ...client.CallOption) (*Response, error) + GetNotification func(ctx context.Context, in *IDReq, opts ...client.CallOption) (*Notification, error) + GetNotifications func(ctx context.Context, in *NotificationQuery, opts ...client.CallOption) (*Notifications, error) + MarkAsRead func(ctx context.Context, in *IDsReq, opts ...client.CallOption) (*Response, error) + func NewNotificationService(name string, c client.Client) NotificationService + type NotificationServiceHandler interface + AddNotification func(context.Context, *NotificationReq, *Response) error + DeleteNotifications func(context.Context, *NotificationFilter, *Response) error + GetNotification func(context.Context, *IDReq, *Notification) error + GetNotifications func(context.Context, *NotificationQuery, *Notifications) error + MarkAsRead func(context.Context, *IDsReq, *Response) error + type Notifications struct + Currpages uint32 + Notifications []*Notification + Totalpages uint32 + Totals uint32 + func (*Notifications) Descriptor() ([]byte, []int) + func (*Notifications) ProtoMessage() + func (x *Notifications) GetCurrpages() uint32 + func (x *Notifications) GetNotifications() []*Notification + func (x *Notifications) GetTotalpages() uint32 + func (x *Notifications) GetTotals() uint32 + func (x *Notifications) ProtoReflect() protoreflect.Message + func (x *Notifications) Reset() + func (x *Notifications) String() string + type Response struct + func (*Response) Descriptor() ([]byte, []int) + func (*Response) ProtoMessage() + func (x *Response) ProtoReflect() protoreflect.Message + func (x *Response) Reset() + func (x *Response) String() string