Documentation ¶
Index ¶
- func RegisterNotificationsServer(s *grpc.Server, srv NotificationsServer)
- type GetUserNotificationsRequest
- func (*GetUserNotificationsRequest) Descriptor() ([]byte, []int)
- func (m *GetUserNotificationsRequest) GetUserId() int64
- func (*GetUserNotificationsRequest) ProtoMessage()
- func (m *GetUserNotificationsRequest) Reset()
- func (m *GetUserNotificationsRequest) String() string
- func (m *GetUserNotificationsRequest) XXX_DiscardUnknown()
- func (m *GetUserNotificationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetUserNotificationsRequest) XXX_Merge(src proto.Message)
- func (m *GetUserNotificationsRequest) XXX_Size() int
- func (m *GetUserNotificationsRequest) XXX_Unmarshal(b []byte) error
- type GetUserNotificationsResponse
- func (*GetUserNotificationsResponse) Descriptor() ([]byte, []int)
- func (m *GetUserNotificationsResponse) GetNotifications() []*Notification
- func (*GetUserNotificationsResponse) ProtoMessage()
- func (m *GetUserNotificationsResponse) Reset()
- func (m *GetUserNotificationsResponse) String() string
- func (m *GetUserNotificationsResponse) XXX_DiscardUnknown()
- func (m *GetUserNotificationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetUserNotificationsResponse) XXX_Merge(src proto.Message)
- func (m *GetUserNotificationsResponse) XXX_Size() int
- func (m *GetUserNotificationsResponse) XXX_Unmarshal(b []byte) error
- type MarkNotificationAsReadRequest
- func (*MarkNotificationAsReadRequest) Descriptor() ([]byte, []int)
- func (m *MarkNotificationAsReadRequest) GetNotificationId() int64
- func (*MarkNotificationAsReadRequest) ProtoMessage()
- func (m *MarkNotificationAsReadRequest) Reset()
- func (m *MarkNotificationAsReadRequest) String() string
- func (m *MarkNotificationAsReadRequest) XXX_DiscardUnknown()
- func (m *MarkNotificationAsReadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MarkNotificationAsReadRequest) XXX_Merge(src proto.Message)
- func (m *MarkNotificationAsReadRequest) XXX_Size() int
- func (m *MarkNotificationAsReadRequest) XXX_Unmarshal(b []byte) error
- type NMessageResponse
- func (*NMessageResponse) Descriptor() ([]byte, []int)
- func (m *NMessageResponse) GetMessage() string
- func (*NMessageResponse) ProtoMessage()
- func (m *NMessageResponse) Reset()
- func (m *NMessageResponse) String() string
- func (m *NMessageResponse) XXX_DiscardUnknown()
- func (m *NMessageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NMessageResponse) XXX_Merge(src proto.Message)
- func (m *NMessageResponse) XXX_Size() int
- func (m *NMessageResponse) XXX_Unmarshal(b []byte) error
- type Notification
- func (*Notification) Descriptor() ([]byte, []int)
- func (m *Notification) GetId() int64
- func (m *Notification) GetMessage() string
- func (m *Notification) GetStatus() string
- func (m *Notification) GetType() string
- func (m *Notification) GetUserId() int64
- func (*Notification) ProtoMessage()
- func (m *Notification) Reset()
- func (m *Notification) String() string
- func (m *Notification) XXX_DiscardUnknown()
- func (m *Notification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Notification) XXX_Merge(src proto.Message)
- func (m *Notification) XXX_Size() int
- func (m *Notification) XXX_Unmarshal(b []byte) error
- type NotificationsClient
- type NotificationsServer
- type PushNotificationRequest
- func (*PushNotificationRequest) Descriptor() ([]byte, []int)
- func (m *PushNotificationRequest) GetMessage() string
- func (m *PushNotificationRequest) GetType() string
- func (m *PushNotificationRequest) GetUserId() int64
- func (*PushNotificationRequest) ProtoMessage()
- func (m *PushNotificationRequest) Reset()
- func (m *PushNotificationRequest) String() string
- func (m *PushNotificationRequest) XXX_DiscardUnknown()
- func (m *PushNotificationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PushNotificationRequest) XXX_Merge(src proto.Message)
- func (m *PushNotificationRequest) XXX_Size() int
- func (m *PushNotificationRequest) XXX_Unmarshal(b []byte) error
- type UnimplementedNotificationsServer
- func (*UnimplementedNotificationsServer) GetUserNotifications(ctx context.Context, req *GetUserNotificationsRequest) (*GetUserNotificationsResponse, error)
- func (*UnimplementedNotificationsServer) MarkNotificationAsRead(ctx context.Context, req *MarkNotificationAsReadRequest) (*NMessageResponse, error)
- func (*UnimplementedNotificationsServer) PushNotification(ctx context.Context, req *PushNotificationRequest) (*NMessageResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterNotificationsServer ¶
func RegisterNotificationsServer(s *grpc.Server, srv NotificationsServer)
Types ¶
type GetUserNotificationsRequest ¶
type GetUserNotificationsRequest struct { UserId int64 `protobuf:"varint,1,opt,name=UserId,proto3" json:"UserId,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetUserNotificationsRequest) Descriptor ¶
func (*GetUserNotificationsRequest) Descriptor() ([]byte, []int)
func (*GetUserNotificationsRequest) GetUserId ¶
func (m *GetUserNotificationsRequest) GetUserId() int64
func (*GetUserNotificationsRequest) ProtoMessage ¶
func (*GetUserNotificationsRequest) ProtoMessage()
func (*GetUserNotificationsRequest) Reset ¶
func (m *GetUserNotificationsRequest) Reset()
func (*GetUserNotificationsRequest) String ¶
func (m *GetUserNotificationsRequest) String() string
func (*GetUserNotificationsRequest) XXX_DiscardUnknown ¶
func (m *GetUserNotificationsRequest) XXX_DiscardUnknown()
func (*GetUserNotificationsRequest) XXX_Marshal ¶
func (m *GetUserNotificationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetUserNotificationsRequest) XXX_Merge ¶
func (m *GetUserNotificationsRequest) XXX_Merge(src proto.Message)
func (*GetUserNotificationsRequest) XXX_Size ¶
func (m *GetUserNotificationsRequest) XXX_Size() int
func (*GetUserNotificationsRequest) XXX_Unmarshal ¶
func (m *GetUserNotificationsRequest) XXX_Unmarshal(b []byte) error
type GetUserNotificationsResponse ¶
type GetUserNotificationsResponse struct { Notifications []*Notification `protobuf:"bytes,1,rep,name=notifications,proto3" json:"notifications,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetUserNotificationsResponse) Descriptor ¶
func (*GetUserNotificationsResponse) Descriptor() ([]byte, []int)
func (*GetUserNotificationsResponse) GetNotifications ¶
func (m *GetUserNotificationsResponse) GetNotifications() []*Notification
func (*GetUserNotificationsResponse) ProtoMessage ¶
func (*GetUserNotificationsResponse) ProtoMessage()
func (*GetUserNotificationsResponse) Reset ¶
func (m *GetUserNotificationsResponse) Reset()
func (*GetUserNotificationsResponse) String ¶
func (m *GetUserNotificationsResponse) String() string
func (*GetUserNotificationsResponse) XXX_DiscardUnknown ¶
func (m *GetUserNotificationsResponse) XXX_DiscardUnknown()
func (*GetUserNotificationsResponse) XXX_Marshal ¶
func (m *GetUserNotificationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetUserNotificationsResponse) XXX_Merge ¶
func (m *GetUserNotificationsResponse) XXX_Merge(src proto.Message)
func (*GetUserNotificationsResponse) XXX_Size ¶
func (m *GetUserNotificationsResponse) XXX_Size() int
func (*GetUserNotificationsResponse) XXX_Unmarshal ¶
func (m *GetUserNotificationsResponse) XXX_Unmarshal(b []byte) error
type MarkNotificationAsReadRequest ¶
type MarkNotificationAsReadRequest struct { NotificationId int64 `protobuf:"varint,2,opt,name=NotificationId,proto3" json:"NotificationId,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MarkNotificationAsReadRequest) Descriptor ¶
func (*MarkNotificationAsReadRequest) Descriptor() ([]byte, []int)
func (*MarkNotificationAsReadRequest) GetNotificationId ¶
func (m *MarkNotificationAsReadRequest) GetNotificationId() int64
func (*MarkNotificationAsReadRequest) ProtoMessage ¶
func (*MarkNotificationAsReadRequest) ProtoMessage()
func (*MarkNotificationAsReadRequest) Reset ¶
func (m *MarkNotificationAsReadRequest) Reset()
func (*MarkNotificationAsReadRequest) String ¶
func (m *MarkNotificationAsReadRequest) String() string
func (*MarkNotificationAsReadRequest) XXX_DiscardUnknown ¶
func (m *MarkNotificationAsReadRequest) XXX_DiscardUnknown()
func (*MarkNotificationAsReadRequest) XXX_Marshal ¶
func (m *MarkNotificationAsReadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MarkNotificationAsReadRequest) XXX_Merge ¶
func (m *MarkNotificationAsReadRequest) XXX_Merge(src proto.Message)
func (*MarkNotificationAsReadRequest) XXX_Size ¶
func (m *MarkNotificationAsReadRequest) XXX_Size() int
func (*MarkNotificationAsReadRequest) XXX_Unmarshal ¶
func (m *MarkNotificationAsReadRequest) XXX_Unmarshal(b []byte) error
type NMessageResponse ¶
type NMessageResponse struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*NMessageResponse) Descriptor ¶
func (*NMessageResponse) Descriptor() ([]byte, []int)
func (*NMessageResponse) GetMessage ¶
func (m *NMessageResponse) GetMessage() string
func (*NMessageResponse) ProtoMessage ¶
func (*NMessageResponse) ProtoMessage()
func (*NMessageResponse) Reset ¶
func (m *NMessageResponse) Reset()
func (*NMessageResponse) String ¶
func (m *NMessageResponse) String() string
func (*NMessageResponse) XXX_DiscardUnknown ¶
func (m *NMessageResponse) XXX_DiscardUnknown()
func (*NMessageResponse) XXX_Marshal ¶
func (m *NMessageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NMessageResponse) XXX_Merge ¶
func (m *NMessageResponse) XXX_Merge(src proto.Message)
func (*NMessageResponse) XXX_Size ¶
func (m *NMessageResponse) XXX_Size() int
func (*NMessageResponse) XXX_Unmarshal ¶
func (m *NMessageResponse) XXX_Unmarshal(b []byte) error
type Notification ¶
type Notification struct { Id int64 `protobuf:"varint,1,opt,name=Id,proto3" json:"Id,omitempty"` UserId int64 `protobuf:"varint,2,opt,name=UserId,proto3" json:"UserId,omitempty"` Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` Status string `protobuf:"bytes,5,opt,name=status,proto3" json:"status,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Notification) Descriptor ¶
func (*Notification) Descriptor() ([]byte, []int)
func (*Notification) GetId ¶
func (m *Notification) GetId() int64
func (*Notification) GetMessage ¶
func (m *Notification) GetMessage() string
func (*Notification) GetStatus ¶
func (m *Notification) GetStatus() string
func (*Notification) GetType ¶
func (m *Notification) GetType() string
func (*Notification) GetUserId ¶
func (m *Notification) GetUserId() int64
func (*Notification) ProtoMessage ¶
func (*Notification) ProtoMessage()
func (*Notification) Reset ¶
func (m *Notification) Reset()
func (*Notification) String ¶
func (m *Notification) String() string
func (*Notification) XXX_DiscardUnknown ¶
func (m *Notification) XXX_DiscardUnknown()
func (*Notification) XXX_Marshal ¶
func (m *Notification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Notification) XXX_Merge ¶
func (m *Notification) XXX_Merge(src proto.Message)
func (*Notification) XXX_Size ¶
func (m *Notification) XXX_Size() int
func (*Notification) XXX_Unmarshal ¶
func (m *Notification) XXX_Unmarshal(b []byte) error
type NotificationsClient ¶
type NotificationsClient interface { // ADD PushNotification(ctx context.Context, in *PushNotificationRequest, opts ...grpc.CallOption) (*NMessageResponse, error) // GET GetUserNotifications(ctx context.Context, in *GetUserNotificationsRequest, opts ...grpc.CallOption) (*GetUserNotificationsResponse, error) // UPDATE MarkNotificationAsRead(ctx context.Context, in *MarkNotificationAsReadRequest, opts ...grpc.CallOption) (*NMessageResponse, error) }
NotificationsClient is the client API for Notifications service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewNotificationsClient ¶
func NewNotificationsClient(cc grpc.ClientConnInterface) NotificationsClient
type NotificationsServer ¶
type NotificationsServer interface { // ADD PushNotification(context.Context, *PushNotificationRequest) (*NMessageResponse, error) // GET GetUserNotifications(context.Context, *GetUserNotificationsRequest) (*GetUserNotificationsResponse, error) // UPDATE MarkNotificationAsRead(context.Context, *MarkNotificationAsReadRequest) (*NMessageResponse, error) }
NotificationsServer is the server API for Notifications service.
type PushNotificationRequest ¶
type PushNotificationRequest struct { UserId int64 `protobuf:"varint,1,opt,name=UserId,proto3" json:"UserId,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PushNotificationRequest) Descriptor ¶
func (*PushNotificationRequest) Descriptor() ([]byte, []int)
func (*PushNotificationRequest) GetMessage ¶
func (m *PushNotificationRequest) GetMessage() string
func (*PushNotificationRequest) GetType ¶
func (m *PushNotificationRequest) GetType() string
func (*PushNotificationRequest) GetUserId ¶
func (m *PushNotificationRequest) GetUserId() int64
func (*PushNotificationRequest) ProtoMessage ¶
func (*PushNotificationRequest) ProtoMessage()
func (*PushNotificationRequest) Reset ¶
func (m *PushNotificationRequest) Reset()
func (*PushNotificationRequest) String ¶
func (m *PushNotificationRequest) String() string
func (*PushNotificationRequest) XXX_DiscardUnknown ¶
func (m *PushNotificationRequest) XXX_DiscardUnknown()
func (*PushNotificationRequest) XXX_Marshal ¶
func (m *PushNotificationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PushNotificationRequest) XXX_Merge ¶
func (m *PushNotificationRequest) XXX_Merge(src proto.Message)
func (*PushNotificationRequest) XXX_Size ¶
func (m *PushNotificationRequest) XXX_Size() int
func (*PushNotificationRequest) XXX_Unmarshal ¶
func (m *PushNotificationRequest) XXX_Unmarshal(b []byte) error
type UnimplementedNotificationsServer ¶
type UnimplementedNotificationsServer struct { }
UnimplementedNotificationsServer can be embedded to have forward compatible implementations.
func (*UnimplementedNotificationsServer) GetUserNotifications ¶
func (*UnimplementedNotificationsServer) GetUserNotifications(ctx context.Context, req *GetUserNotificationsRequest) (*GetUserNotificationsResponse, error)
func (*UnimplementedNotificationsServer) MarkNotificationAsRead ¶
func (*UnimplementedNotificationsServer) MarkNotificationAsRead(ctx context.Context, req *MarkNotificationAsReadRequest) (*NMessageResponse, error)
func (*UnimplementedNotificationsServer) PushNotification ¶
func (*UnimplementedNotificationsServer) PushNotification(ctx context.Context, req *PushNotificationRequest) (*NMessageResponse, error)
Click to show internal directories.
Click to hide internal directories.