Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterNotificatorServiceServer(s grpc.ServiceRegistrar, srv NotificatorServiceServer)
- type GetNotificationsRequest
- func (*GetNotificationsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetNotificationsRequest) GetIncludeRead() bool
- func (x *GetNotificationsRequest) GetPagination() *database.PaginationRequest
- func (*GetNotificationsRequest) ProtoMessage()
- func (x *GetNotificationsRequest) ProtoReflect() protoreflect.Message
- func (x *GetNotificationsRequest) Reset()
- func (x *GetNotificationsRequest) String() string
- func (m *GetNotificationsRequest) Validate() error
- func (m *GetNotificationsRequest) ValidateAll() error
- type GetNotificationsRequestMultiError
- type GetNotificationsRequestValidationError
- func (e GetNotificationsRequestValidationError) Cause() error
- func (e GetNotificationsRequestValidationError) Error() string
- func (e GetNotificationsRequestValidationError) ErrorName() string
- func (e GetNotificationsRequestValidationError) Field() string
- func (e GetNotificationsRequestValidationError) Key() bool
- func (e GetNotificationsRequestValidationError) Reason() string
- type GetNotificationsResponse
- func (*GetNotificationsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetNotificationsResponse) GetNotifications() []*notifications.Notification
- func (x *GetNotificationsResponse) GetPagination() *database.PaginationResponse
- func (*GetNotificationsResponse) ProtoMessage()
- func (x *GetNotificationsResponse) ProtoReflect() protoreflect.Message
- func (x *GetNotificationsResponse) Reset()
- func (x *GetNotificationsResponse) String() string
- func (m *GetNotificationsResponse) Validate() error
- func (m *GetNotificationsResponse) ValidateAll() error
- type GetNotificationsResponseMultiError
- type GetNotificationsResponseValidationError
- func (e GetNotificationsResponseValidationError) Cause() error
- func (e GetNotificationsResponseValidationError) Error() string
- func (e GetNotificationsResponseValidationError) ErrorName() string
- func (e GetNotificationsResponseValidationError) Field() string
- func (e GetNotificationsResponseValidationError) Key() bool
- func (e GetNotificationsResponseValidationError) Reason() string
- type NotificatorServiceClient
- type NotificatorServiceServer
- type NotificatorService_StreamClient
- type NotificatorService_StreamServer
- type Params
- type ReadNotificationsRequest
- func (*ReadNotificationsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ReadNotificationsRequest) GetAll() bool
- func (x *ReadNotificationsRequest) GetIds() []uint64
- func (*ReadNotificationsRequest) ProtoMessage()
- func (x *ReadNotificationsRequest) ProtoReflect() protoreflect.Message
- func (x *ReadNotificationsRequest) Reset()
- func (x *ReadNotificationsRequest) String() string
- func (m *ReadNotificationsRequest) Validate() error
- func (m *ReadNotificationsRequest) ValidateAll() error
- type ReadNotificationsRequestMultiError
- type ReadNotificationsRequestValidationError
- func (e ReadNotificationsRequestValidationError) Cause() error
- func (e ReadNotificationsRequestValidationError) Error() string
- func (e ReadNotificationsRequestValidationError) ErrorName() string
- func (e ReadNotificationsRequestValidationError) Field() string
- func (e ReadNotificationsRequestValidationError) Key() bool
- func (e ReadNotificationsRequestValidationError) Reason() string
- type ReadNotificationsResponse
- func (*ReadNotificationsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ReadNotificationsResponse) GetUpdated() uint64
- func (*ReadNotificationsResponse) ProtoMessage()
- func (x *ReadNotificationsResponse) ProtoReflect() protoreflect.Message
- func (x *ReadNotificationsResponse) Reset()
- func (x *ReadNotificationsResponse) String() string
- func (m *ReadNotificationsResponse) Validate() error
- func (m *ReadNotificationsResponse) ValidateAll() error
- type ReadNotificationsResponseMultiError
- type ReadNotificationsResponseValidationError
- func (e ReadNotificationsResponseValidationError) Cause() error
- func (e ReadNotificationsResponseValidationError) Error() string
- func (e ReadNotificationsResponseValidationError) ErrorName() string
- func (e ReadNotificationsResponseValidationError) Field() string
- func (e ReadNotificationsResponseValidationError) Key() bool
- func (e ReadNotificationsResponseValidationError) Reason() string
- type Server
- func (s *Server) GetNotifications(ctx context.Context, req *GetNotificationsRequest) (*GetNotificationsResponse, error)
- func (s *Server) GetPermsRemap() map[string]string
- func (s *Server) ReadNotifications(ctx context.Context, req *ReadNotificationsRequest) (*ReadNotificationsResponse, error)
- func (s *Server) RegisterServer(srv *grpc.Server)
- func (s *Server) Stream(req *StreamRequest, srv NotificatorService_StreamServer) error
- type StreamNotifications
- func (*StreamNotifications) Descriptor() ([]byte, []int)deprecated
- func (x *StreamNotifications) GetNotifications() []*notifications.Notification
- func (*StreamNotifications) ProtoMessage()
- func (x *StreamNotifications) ProtoReflect() protoreflect.Message
- func (x *StreamNotifications) Reset()
- func (x *StreamNotifications) String() string
- func (m *StreamNotifications) Validate() error
- func (m *StreamNotifications) ValidateAll() error
- type StreamNotificationsMultiError
- type StreamNotificationsValidationError
- func (e StreamNotificationsValidationError) Cause() error
- func (e StreamNotificationsValidationError) Error() string
- func (e StreamNotificationsValidationError) ErrorName() string
- func (e StreamNotificationsValidationError) Field() string
- func (e StreamNotificationsValidationError) Key() bool
- func (e StreamNotificationsValidationError) Reason() string
- type StreamRequest
- func (*StreamRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StreamRequest) GetLastId() uint64
- func (*StreamRequest) ProtoMessage()
- func (x *StreamRequest) ProtoReflect() protoreflect.Message
- func (x *StreamRequest) Reset()
- func (x *StreamRequest) String() string
- func (m *StreamRequest) Validate() error
- func (m *StreamRequest) ValidateAll() error
- type StreamRequestMultiError
- type StreamRequestValidationError
- func (e StreamRequestValidationError) Cause() error
- func (e StreamRequestValidationError) Error() string
- func (e StreamRequestValidationError) ErrorName() string
- func (e StreamRequestValidationError) Field() string
- func (e StreamRequestValidationError) Key() bool
- func (e StreamRequestValidationError) Reason() string
- type StreamResponse
- func (*StreamResponse) Descriptor() ([]byte, []int)deprecated
- func (m *StreamResponse) GetData() isStreamResponse_Data
- func (x *StreamResponse) GetLastId() uint64
- func (x *StreamResponse) GetNotifications() *StreamNotifications
- func (x *StreamResponse) GetPing() string
- func (x *StreamResponse) GetRestart() bool
- func (x *StreamResponse) GetToken() *TokenUpdate
- func (*StreamResponse) ProtoMessage()
- func (x *StreamResponse) ProtoReflect() protoreflect.Message
- func (x *StreamResponse) Reset()
- func (x *StreamResponse) String() string
- func (m *StreamResponse) Validate() error
- func (m *StreamResponse) ValidateAll() error
- type StreamResponseMultiError
- type StreamResponseValidationError
- func (e StreamResponseValidationError) Cause() error
- func (e StreamResponseValidationError) Error() string
- func (e StreamResponseValidationError) ErrorName() string
- func (e StreamResponseValidationError) Field() string
- func (e StreamResponseValidationError) Key() bool
- func (e StreamResponseValidationError) Reason() string
- type StreamResponse_Notifications
- type StreamResponse_Ping
- type StreamResponse_Token
- type TokenUpdate
- func (*TokenUpdate) Descriptor() ([]byte, []int)deprecated
- func (x *TokenUpdate) GetExpires() *timestamp.Timestamp
- func (x *TokenUpdate) GetJobProps() *users.JobProps
- func (x *TokenUpdate) GetNewToken() string
- func (x *TokenUpdate) GetPermissions() []string
- func (x *TokenUpdate) GetUserInfo() *users.User
- func (*TokenUpdate) ProtoMessage()
- func (x *TokenUpdate) ProtoReflect() protoreflect.Message
- func (x *TokenUpdate) Reset()
- func (x *TokenUpdate) String() string
- func (m *TokenUpdate) Validate() error
- func (m *TokenUpdate) ValidateAll() error
- type TokenUpdateMultiError
- type TokenUpdateValidationError
- func (e TokenUpdateValidationError) Cause() error
- func (e TokenUpdateValidationError) Error() string
- func (e TokenUpdateValidationError) ErrorName() string
- func (e TokenUpdateValidationError) Field() string
- func (e TokenUpdateValidationError) Key() bool
- func (e TokenUpdateValidationError) Reason() string
- type UnimplementedNotificatorServiceServer
- func (UnimplementedNotificatorServiceServer) GetNotifications(context.Context, *GetNotificationsRequest) (*GetNotificationsResponse, error)
- func (UnimplementedNotificatorServiceServer) ReadNotifications(context.Context, *ReadNotificationsRequest) (*ReadNotificationsResponse, error)
- func (UnimplementedNotificatorServiceServer) Stream(*StreamRequest, NotificatorService_StreamServer) error
- type UnsafeNotificatorServiceServer
Constants ¶
const ( NotificatorService_GetNotifications_FullMethodName = "/services.notificator.NotificatorService/GetNotifications" NotificatorService_ReadNotifications_FullMethodName = "/services.notificator.NotificatorService/ReadNotifications" NotificatorService_Stream_FullMethodName = "/services.notificator.NotificatorService/Stream" )
Variables ¶
var ( ErrFailedRequest = status.Error(codes.InvalidArgument, "errors.NotificatorService.ErrFailedRequest") ErrFailedStream = status.Error(codes.InvalidArgument, "errors.NotificatorService.ErrFailedStream") )
var File_services_notificator_notificator_proto protoreflect.FileDescriptor
var NotificatorService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "services.notificator.NotificatorService", HandlerType: (*NotificatorServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetNotifications", Handler: _NotificatorService_GetNotifications_Handler, }, { MethodName: "ReadNotifications", Handler: _NotificatorService_ReadNotifications_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "Stream", Handler: _NotificatorService_Stream_Handler, ServerStreams: true, }, }, Metadata: "services/notificator/notificator.proto", }
NotificatorService_ServiceDesc is the grpc.ServiceDesc for NotificatorService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var PermsRemap = map[string]string{
"NotificatorService/GetNotifications": "Any",
"NotificatorService/ReadNotifications": "Any",
"NotificatorService/Stream": "Any",
}
Functions ¶
func RegisterNotificatorServiceServer ¶
func RegisterNotificatorServiceServer(s grpc.ServiceRegistrar, srv NotificatorServiceServer)
Types ¶
type GetNotificationsRequest ¶
type GetNotificationsRequest struct { Pagination *database.PaginationRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` IncludeRead *bool `protobuf:"varint,2,opt,name=include_read,json=includeRead,proto3,oneof" json:"include_read,omitempty"` // contains filtered or unexported fields }
func (*GetNotificationsRequest) Descriptor
deprecated
func (*GetNotificationsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetNotificationsRequest.ProtoReflect.Descriptor instead.
func (*GetNotificationsRequest) GetIncludeRead ¶
func (x *GetNotificationsRequest) GetIncludeRead() bool
func (*GetNotificationsRequest) GetPagination ¶
func (x *GetNotificationsRequest) GetPagination() *database.PaginationRequest
func (*GetNotificationsRequest) ProtoMessage ¶
func (*GetNotificationsRequest) ProtoMessage()
func (*GetNotificationsRequest) ProtoReflect ¶
func (x *GetNotificationsRequest) ProtoReflect() protoreflect.Message
func (*GetNotificationsRequest) Reset ¶
func (x *GetNotificationsRequest) Reset()
func (*GetNotificationsRequest) String ¶
func (x *GetNotificationsRequest) String() string
func (*GetNotificationsRequest) Validate ¶
func (m *GetNotificationsRequest) Validate() error
Validate checks the field values on GetNotificationsRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetNotificationsRequest) ValidateAll ¶
func (m *GetNotificationsRequest) ValidateAll() error
ValidateAll checks the field values on GetNotificationsRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetNotificationsRequestMultiError, or nil if none found.
type GetNotificationsRequestMultiError ¶
type GetNotificationsRequestMultiError []error
GetNotificationsRequestMultiError is an error wrapping multiple validation errors returned by GetNotificationsRequest.ValidateAll() if the designated constraints aren't met.
func (GetNotificationsRequestMultiError) AllErrors ¶
func (m GetNotificationsRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetNotificationsRequestMultiError) Error ¶
func (m GetNotificationsRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetNotificationsRequestValidationError ¶
type GetNotificationsRequestValidationError struct {
// contains filtered or unexported fields
}
GetNotificationsRequestValidationError is the validation error returned by GetNotificationsRequest.Validate if the designated constraints aren't met.
func (GetNotificationsRequestValidationError) Cause ¶
func (e GetNotificationsRequestValidationError) Cause() error
Cause function returns cause value.
func (GetNotificationsRequestValidationError) Error ¶
func (e GetNotificationsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetNotificationsRequestValidationError) ErrorName ¶
func (e GetNotificationsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetNotificationsRequestValidationError) Field ¶
func (e GetNotificationsRequestValidationError) Field() string
Field function returns field value.
func (GetNotificationsRequestValidationError) Key ¶
func (e GetNotificationsRequestValidationError) Key() bool
Key function returns key value.
func (GetNotificationsRequestValidationError) Reason ¶
func (e GetNotificationsRequestValidationError) Reason() string
Reason function returns reason value.
type GetNotificationsResponse ¶
type GetNotificationsResponse struct { Pagination *database.PaginationResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` Notifications []*notifications.Notification `protobuf:"bytes,2,rep,name=notifications,proto3" json:"notifications,omitempty"` // contains filtered or unexported fields }
func (*GetNotificationsResponse) Descriptor
deprecated
func (*GetNotificationsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetNotificationsResponse.ProtoReflect.Descriptor instead.
func (*GetNotificationsResponse) GetNotifications ¶
func (x *GetNotificationsResponse) GetNotifications() []*notifications.Notification
func (*GetNotificationsResponse) GetPagination ¶
func (x *GetNotificationsResponse) GetPagination() *database.PaginationResponse
func (*GetNotificationsResponse) ProtoMessage ¶
func (*GetNotificationsResponse) ProtoMessage()
func (*GetNotificationsResponse) ProtoReflect ¶
func (x *GetNotificationsResponse) ProtoReflect() protoreflect.Message
func (*GetNotificationsResponse) Reset ¶
func (x *GetNotificationsResponse) Reset()
func (*GetNotificationsResponse) String ¶
func (x *GetNotificationsResponse) String() string
func (*GetNotificationsResponse) Validate ¶
func (m *GetNotificationsResponse) Validate() error
Validate checks the field values on GetNotificationsResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetNotificationsResponse) ValidateAll ¶
func (m *GetNotificationsResponse) ValidateAll() error
ValidateAll checks the field values on GetNotificationsResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetNotificationsResponseMultiError, or nil if none found.
type GetNotificationsResponseMultiError ¶
type GetNotificationsResponseMultiError []error
GetNotificationsResponseMultiError is an error wrapping multiple validation errors returned by GetNotificationsResponse.ValidateAll() if the designated constraints aren't met.
func (GetNotificationsResponseMultiError) AllErrors ¶
func (m GetNotificationsResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetNotificationsResponseMultiError) Error ¶
func (m GetNotificationsResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetNotificationsResponseValidationError ¶
type GetNotificationsResponseValidationError struct {
// contains filtered or unexported fields
}
GetNotificationsResponseValidationError is the validation error returned by GetNotificationsResponse.Validate if the designated constraints aren't met.
func (GetNotificationsResponseValidationError) Cause ¶
func (e GetNotificationsResponseValidationError) Cause() error
Cause function returns cause value.
func (GetNotificationsResponseValidationError) Error ¶
func (e GetNotificationsResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetNotificationsResponseValidationError) ErrorName ¶
func (e GetNotificationsResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetNotificationsResponseValidationError) Field ¶
func (e GetNotificationsResponseValidationError) Field() string
Field function returns field value.
func (GetNotificationsResponseValidationError) Key ¶
func (e GetNotificationsResponseValidationError) Key() bool
Key function returns key value.
func (GetNotificationsResponseValidationError) Reason ¶
func (e GetNotificationsResponseValidationError) Reason() string
Reason function returns reason value.
type NotificatorServiceClient ¶
type NotificatorServiceClient interface { // @perm: Name=Any GetNotifications(ctx context.Context, in *GetNotificationsRequest, opts ...grpc.CallOption) (*GetNotificationsResponse, error) // @perm: Name=Any ReadNotifications(ctx context.Context, in *ReadNotificationsRequest, opts ...grpc.CallOption) (*ReadNotificationsResponse, error) // @perm: Name=Any Stream(ctx context.Context, in *StreamRequest, opts ...grpc.CallOption) (NotificatorService_StreamClient, error) }
NotificatorServiceClient is the client API for NotificatorService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewNotificatorServiceClient ¶
func NewNotificatorServiceClient(cc grpc.ClientConnInterface) NotificatorServiceClient
func NewTestNotificatorServiceClient ¶
func NewTestNotificatorServiceClient(srv NotificatorServiceServer) (NotificatorServiceClient, context.Context, context.CancelFunc)
type NotificatorServiceServer ¶
type NotificatorServiceServer interface { // @perm: Name=Any GetNotifications(context.Context, *GetNotificationsRequest) (*GetNotificationsResponse, error) // @perm: Name=Any ReadNotifications(context.Context, *ReadNotificationsRequest) (*ReadNotificationsResponse, error) // @perm: Name=Any Stream(*StreamRequest, NotificatorService_StreamServer) error // contains filtered or unexported methods }
NotificatorServiceServer is the server API for NotificatorService service. All implementations must embed UnimplementedNotificatorServiceServer for forward compatibility
type NotificatorService_StreamClient ¶
type NotificatorService_StreamClient interface { Recv() (*StreamResponse, error) grpc.ClientStream }
type NotificatorService_StreamServer ¶
type NotificatorService_StreamServer interface { Send(*StreamResponse) error grpc.ServerStream }
type ReadNotificationsRequest ¶
type ReadNotificationsRequest struct { Ids []uint64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"` All *bool `protobuf:"varint,2,opt,name=all,proto3,oneof" json:"all,omitempty"` // contains filtered or unexported fields }
func (*ReadNotificationsRequest) Descriptor
deprecated
func (*ReadNotificationsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ReadNotificationsRequest.ProtoReflect.Descriptor instead.
func (*ReadNotificationsRequest) GetAll ¶ added in v0.6.0
func (x *ReadNotificationsRequest) GetAll() bool
func (*ReadNotificationsRequest) GetIds ¶
func (x *ReadNotificationsRequest) GetIds() []uint64
func (*ReadNotificationsRequest) ProtoMessage ¶
func (*ReadNotificationsRequest) ProtoMessage()
func (*ReadNotificationsRequest) ProtoReflect ¶
func (x *ReadNotificationsRequest) ProtoReflect() protoreflect.Message
func (*ReadNotificationsRequest) Reset ¶
func (x *ReadNotificationsRequest) Reset()
func (*ReadNotificationsRequest) String ¶
func (x *ReadNotificationsRequest) String() string
func (*ReadNotificationsRequest) Validate ¶
func (m *ReadNotificationsRequest) Validate() error
Validate checks the field values on ReadNotificationsRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ReadNotificationsRequest) ValidateAll ¶
func (m *ReadNotificationsRequest) ValidateAll() error
ValidateAll checks the field values on ReadNotificationsRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ReadNotificationsRequestMultiError, or nil if none found.
type ReadNotificationsRequestMultiError ¶
type ReadNotificationsRequestMultiError []error
ReadNotificationsRequestMultiError is an error wrapping multiple validation errors returned by ReadNotificationsRequest.ValidateAll() if the designated constraints aren't met.
func (ReadNotificationsRequestMultiError) AllErrors ¶
func (m ReadNotificationsRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ReadNotificationsRequestMultiError) Error ¶
func (m ReadNotificationsRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ReadNotificationsRequestValidationError ¶
type ReadNotificationsRequestValidationError struct {
// contains filtered or unexported fields
}
ReadNotificationsRequestValidationError is the validation error returned by ReadNotificationsRequest.Validate if the designated constraints aren't met.
func (ReadNotificationsRequestValidationError) Cause ¶
func (e ReadNotificationsRequestValidationError) Cause() error
Cause function returns cause value.
func (ReadNotificationsRequestValidationError) Error ¶
func (e ReadNotificationsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ReadNotificationsRequestValidationError) ErrorName ¶
func (e ReadNotificationsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ReadNotificationsRequestValidationError) Field ¶
func (e ReadNotificationsRequestValidationError) Field() string
Field function returns field value.
func (ReadNotificationsRequestValidationError) Key ¶
func (e ReadNotificationsRequestValidationError) Key() bool
Key function returns key value.
func (ReadNotificationsRequestValidationError) Reason ¶
func (e ReadNotificationsRequestValidationError) Reason() string
Reason function returns reason value.
type ReadNotificationsResponse ¶
type ReadNotificationsResponse struct { Updated uint64 `protobuf:"varint,1,opt,name=updated,proto3" json:"updated,omitempty"` // contains filtered or unexported fields }
func (*ReadNotificationsResponse) Descriptor
deprecated
func (*ReadNotificationsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ReadNotificationsResponse.ProtoReflect.Descriptor instead.
func (*ReadNotificationsResponse) GetUpdated ¶ added in v0.6.5
func (x *ReadNotificationsResponse) GetUpdated() uint64
func (*ReadNotificationsResponse) ProtoMessage ¶
func (*ReadNotificationsResponse) ProtoMessage()
func (*ReadNotificationsResponse) ProtoReflect ¶
func (x *ReadNotificationsResponse) ProtoReflect() protoreflect.Message
func (*ReadNotificationsResponse) Reset ¶
func (x *ReadNotificationsResponse) Reset()
func (*ReadNotificationsResponse) String ¶
func (x *ReadNotificationsResponse) String() string
func (*ReadNotificationsResponse) Validate ¶
func (m *ReadNotificationsResponse) Validate() error
Validate checks the field values on ReadNotificationsResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ReadNotificationsResponse) ValidateAll ¶
func (m *ReadNotificationsResponse) ValidateAll() error
ValidateAll checks the field values on ReadNotificationsResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ReadNotificationsResponseMultiError, or nil if none found.
type ReadNotificationsResponseMultiError ¶
type ReadNotificationsResponseMultiError []error
ReadNotificationsResponseMultiError is an error wrapping multiple validation errors returned by ReadNotificationsResponse.ValidateAll() if the designated constraints aren't met.
func (ReadNotificationsResponseMultiError) AllErrors ¶
func (m ReadNotificationsResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ReadNotificationsResponseMultiError) Error ¶
func (m ReadNotificationsResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ReadNotificationsResponseValidationError ¶
type ReadNotificationsResponseValidationError struct {
// contains filtered or unexported fields
}
ReadNotificationsResponseValidationError is the validation error returned by ReadNotificationsResponse.Validate if the designated constraints aren't met.
func (ReadNotificationsResponseValidationError) Cause ¶
func (e ReadNotificationsResponseValidationError) Cause() error
Cause function returns cause value.
func (ReadNotificationsResponseValidationError) Error ¶
func (e ReadNotificationsResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ReadNotificationsResponseValidationError) ErrorName ¶
func (e ReadNotificationsResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ReadNotificationsResponseValidationError) Field ¶
func (e ReadNotificationsResponseValidationError) Field() string
Field function returns field value.
func (ReadNotificationsResponseValidationError) Key ¶
func (e ReadNotificationsResponseValidationError) Key() bool
Key function returns key value.
func (ReadNotificationsResponseValidationError) Reason ¶
func (e ReadNotificationsResponseValidationError) Reason() string
Reason function returns reason value.
type Server ¶
type Server struct { NotificatorServiceServer // contains filtered or unexported fields }
func (*Server) GetNotifications ¶
func (s *Server) GetNotifications(ctx context.Context, req *GetNotificationsRequest) (*GetNotificationsResponse, error)
func (*Server) GetPermsRemap ¶ added in v0.7.0
func (*Server) ReadNotifications ¶
func (s *Server) ReadNotifications(ctx context.Context, req *ReadNotificationsRequest) (*ReadNotificationsResponse, error)
func (*Server) RegisterServer ¶ added in v0.8.0
func (*Server) Stream ¶
func (s *Server) Stream(req *StreamRequest, srv NotificatorService_StreamServer) error
type StreamNotifications ¶ added in v0.8.2
type StreamNotifications struct { Notifications []*notifications.Notification `protobuf:"bytes,1,rep,name=notifications,proto3" json:"notifications,omitempty"` // contains filtered or unexported fields }
func (*StreamNotifications) Descriptor
deprecated
added in
v0.8.2
func (*StreamNotifications) Descriptor() ([]byte, []int)
Deprecated: Use StreamNotifications.ProtoReflect.Descriptor instead.
func (*StreamNotifications) GetNotifications ¶ added in v0.8.2
func (x *StreamNotifications) GetNotifications() []*notifications.Notification
func (*StreamNotifications) ProtoMessage ¶ added in v0.8.2
func (*StreamNotifications) ProtoMessage()
func (*StreamNotifications) ProtoReflect ¶ added in v0.8.2
func (x *StreamNotifications) ProtoReflect() protoreflect.Message
func (*StreamNotifications) Reset ¶ added in v0.8.2
func (x *StreamNotifications) Reset()
func (*StreamNotifications) String ¶ added in v0.8.2
func (x *StreamNotifications) String() string
func (*StreamNotifications) Validate ¶ added in v0.8.2
func (m *StreamNotifications) Validate() error
Validate checks the field values on StreamNotifications with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*StreamNotifications) ValidateAll ¶ added in v0.8.2
func (m *StreamNotifications) ValidateAll() error
ValidateAll checks the field values on StreamNotifications with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in StreamNotificationsMultiError, or nil if none found.
type StreamNotificationsMultiError ¶ added in v0.8.2
type StreamNotificationsMultiError []error
StreamNotificationsMultiError is an error wrapping multiple validation errors returned by StreamNotifications.ValidateAll() if the designated constraints aren't met.
func (StreamNotificationsMultiError) AllErrors ¶ added in v0.8.2
func (m StreamNotificationsMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (StreamNotificationsMultiError) Error ¶ added in v0.8.2
func (m StreamNotificationsMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type StreamNotificationsValidationError ¶ added in v0.8.2
type StreamNotificationsValidationError struct {
// contains filtered or unexported fields
}
StreamNotificationsValidationError is the validation error returned by StreamNotifications.Validate if the designated constraints aren't met.
func (StreamNotificationsValidationError) Cause ¶ added in v0.8.2
func (e StreamNotificationsValidationError) Cause() error
Cause function returns cause value.
func (StreamNotificationsValidationError) Error ¶ added in v0.8.2
func (e StreamNotificationsValidationError) Error() string
Error satisfies the builtin error interface
func (StreamNotificationsValidationError) ErrorName ¶ added in v0.8.2
func (e StreamNotificationsValidationError) ErrorName() string
ErrorName returns error name.
func (StreamNotificationsValidationError) Field ¶ added in v0.8.2
func (e StreamNotificationsValidationError) Field() string
Field function returns field value.
func (StreamNotificationsValidationError) Key ¶ added in v0.8.2
func (e StreamNotificationsValidationError) Key() bool
Key function returns key value.
func (StreamNotificationsValidationError) Reason ¶ added in v0.8.2
func (e StreamNotificationsValidationError) Reason() string
Reason function returns reason value.
type StreamRequest ¶
type StreamRequest struct { LastId uint64 `protobuf:"varint,1,opt,name=last_id,json=lastId,proto3" json:"last_id,omitempty"` // contains filtered or unexported fields }
func (*StreamRequest) Descriptor
deprecated
func (*StreamRequest) Descriptor() ([]byte, []int)
Deprecated: Use StreamRequest.ProtoReflect.Descriptor instead.
func (*StreamRequest) GetLastId ¶
func (x *StreamRequest) GetLastId() uint64
func (*StreamRequest) ProtoMessage ¶
func (*StreamRequest) ProtoMessage()
func (*StreamRequest) ProtoReflect ¶
func (x *StreamRequest) ProtoReflect() protoreflect.Message
func (*StreamRequest) Reset ¶
func (x *StreamRequest) Reset()
func (*StreamRequest) String ¶
func (x *StreamRequest) String() string
func (*StreamRequest) Validate ¶
func (m *StreamRequest) Validate() error
Validate checks the field values on StreamRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*StreamRequest) ValidateAll ¶
func (m *StreamRequest) ValidateAll() error
ValidateAll checks the field values on StreamRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in StreamRequestMultiError, or nil if none found.
type StreamRequestMultiError ¶
type StreamRequestMultiError []error
StreamRequestMultiError is an error wrapping multiple validation errors returned by StreamRequest.ValidateAll() if the designated constraints aren't met.
func (StreamRequestMultiError) AllErrors ¶
func (m StreamRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (StreamRequestMultiError) Error ¶
func (m StreamRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type StreamRequestValidationError ¶
type StreamRequestValidationError struct {
// contains filtered or unexported fields
}
StreamRequestValidationError is the validation error returned by StreamRequest.Validate if the designated constraints aren't met.
func (StreamRequestValidationError) Cause ¶
func (e StreamRequestValidationError) Cause() error
Cause function returns cause value.
func (StreamRequestValidationError) Error ¶
func (e StreamRequestValidationError) Error() string
Error satisfies the builtin error interface
func (StreamRequestValidationError) ErrorName ¶
func (e StreamRequestValidationError) ErrorName() string
ErrorName returns error name.
func (StreamRequestValidationError) Field ¶
func (e StreamRequestValidationError) Field() string
Field function returns field value.
func (StreamRequestValidationError) Key ¶
func (e StreamRequestValidationError) Key() bool
Key function returns key value.
func (StreamRequestValidationError) Reason ¶
func (e StreamRequestValidationError) Reason() string
Reason function returns reason value.
type StreamResponse ¶
type StreamResponse struct { LastId uint64 `protobuf:"varint,1,opt,name=last_id,json=lastId,proto3" json:"last_id,omitempty"` // Types that are assignable to Data: // // *StreamResponse_Notifications // *StreamResponse_Token // *StreamResponse_Ping Data isStreamResponse_Data `protobuf_oneof:"data"` Restart *bool `protobuf:"varint,5,opt,name=restart,proto3,oneof" json:"restart,omitempty"` // contains filtered or unexported fields }
func (*StreamResponse) Descriptor
deprecated
func (*StreamResponse) Descriptor() ([]byte, []int)
Deprecated: Use StreamResponse.ProtoReflect.Descriptor instead.
func (*StreamResponse) GetData ¶ added in v0.8.2
func (m *StreamResponse) GetData() isStreamResponse_Data
func (*StreamResponse) GetLastId ¶
func (x *StreamResponse) GetLastId() uint64
func (*StreamResponse) GetNotifications ¶
func (x *StreamResponse) GetNotifications() *StreamNotifications
func (*StreamResponse) GetPing ¶ added in v0.8.2
func (x *StreamResponse) GetPing() string
func (*StreamResponse) GetRestart ¶ added in v0.8.2
func (x *StreamResponse) GetRestart() bool
func (*StreamResponse) GetToken ¶
func (x *StreamResponse) GetToken() *TokenUpdate
func (*StreamResponse) ProtoMessage ¶
func (*StreamResponse) ProtoMessage()
func (*StreamResponse) ProtoReflect ¶
func (x *StreamResponse) ProtoReflect() protoreflect.Message
func (*StreamResponse) Reset ¶
func (x *StreamResponse) Reset()
func (*StreamResponse) String ¶
func (x *StreamResponse) String() string
func (*StreamResponse) Validate ¶
func (m *StreamResponse) Validate() error
Validate checks the field values on StreamResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*StreamResponse) ValidateAll ¶
func (m *StreamResponse) ValidateAll() error
ValidateAll checks the field values on StreamResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in StreamResponseMultiError, or nil if none found.
type StreamResponseMultiError ¶
type StreamResponseMultiError []error
StreamResponseMultiError is an error wrapping multiple validation errors returned by StreamResponse.ValidateAll() if the designated constraints aren't met.
func (StreamResponseMultiError) AllErrors ¶
func (m StreamResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (StreamResponseMultiError) Error ¶
func (m StreamResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type StreamResponseValidationError ¶
type StreamResponseValidationError struct {
// contains filtered or unexported fields
}
StreamResponseValidationError is the validation error returned by StreamResponse.Validate if the designated constraints aren't met.
func (StreamResponseValidationError) Cause ¶
func (e StreamResponseValidationError) Cause() error
Cause function returns cause value.
func (StreamResponseValidationError) Error ¶
func (e StreamResponseValidationError) Error() string
Error satisfies the builtin error interface
func (StreamResponseValidationError) ErrorName ¶
func (e StreamResponseValidationError) ErrorName() string
ErrorName returns error name.
func (StreamResponseValidationError) Field ¶
func (e StreamResponseValidationError) Field() string
Field function returns field value.
func (StreamResponseValidationError) Key ¶
func (e StreamResponseValidationError) Key() bool
Key function returns key value.
func (StreamResponseValidationError) Reason ¶
func (e StreamResponseValidationError) Reason() string
Reason function returns reason value.
type StreamResponse_Notifications ¶ added in v0.8.2
type StreamResponse_Notifications struct {
Notifications *StreamNotifications `protobuf:"bytes,2,opt,name=notifications,proto3,oneof"`
}
type StreamResponse_Ping ¶ added in v0.8.2
type StreamResponse_Ping struct {
Ping string `protobuf:"bytes,4,opt,name=ping,proto3,oneof"`
}
type StreamResponse_Token ¶ added in v0.8.2
type StreamResponse_Token struct {
Token *TokenUpdate `protobuf:"bytes,3,opt,name=token,proto3,oneof"`
}
type TokenUpdate ¶
type TokenUpdate struct { NewToken *string `protobuf:"bytes,1,opt,name=new_token,json=newToken,proto3,oneof" json:"new_token,omitempty"` Expires *timestamp.Timestamp `protobuf:"bytes,2,opt,name=expires,proto3" json:"expires,omitempty"` Permissions []string `protobuf:"bytes,3,rep,name=permissions,proto3" json:"permissions,omitempty"` UserInfo *users.User `protobuf:"bytes,4,opt,name=user_info,json=userInfo,proto3,oneof" json:"user_info,omitempty"` JobProps *users.JobProps `protobuf:"bytes,5,opt,name=job_props,json=jobProps,proto3,oneof" json:"job_props,omitempty"` // contains filtered or unexported fields }
func (*TokenUpdate) Descriptor
deprecated
func (*TokenUpdate) Descriptor() ([]byte, []int)
Deprecated: Use TokenUpdate.ProtoReflect.Descriptor instead.
func (*TokenUpdate) GetExpires ¶
func (x *TokenUpdate) GetExpires() *timestamp.Timestamp
func (*TokenUpdate) GetJobProps ¶
func (x *TokenUpdate) GetJobProps() *users.JobProps
func (*TokenUpdate) GetNewToken ¶
func (x *TokenUpdate) GetNewToken() string
func (*TokenUpdate) GetPermissions ¶
func (x *TokenUpdate) GetPermissions() []string
func (*TokenUpdate) GetUserInfo ¶
func (x *TokenUpdate) GetUserInfo() *users.User
func (*TokenUpdate) ProtoMessage ¶
func (*TokenUpdate) ProtoMessage()
func (*TokenUpdate) ProtoReflect ¶
func (x *TokenUpdate) ProtoReflect() protoreflect.Message
func (*TokenUpdate) Reset ¶
func (x *TokenUpdate) Reset()
func (*TokenUpdate) String ¶
func (x *TokenUpdate) String() string
func (*TokenUpdate) Validate ¶
func (m *TokenUpdate) Validate() error
Validate checks the field values on TokenUpdate with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*TokenUpdate) ValidateAll ¶
func (m *TokenUpdate) ValidateAll() error
ValidateAll checks the field values on TokenUpdate with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TokenUpdateMultiError, or nil if none found.
type TokenUpdateMultiError ¶
type TokenUpdateMultiError []error
TokenUpdateMultiError is an error wrapping multiple validation errors returned by TokenUpdate.ValidateAll() if the designated constraints aren't met.
func (TokenUpdateMultiError) AllErrors ¶
func (m TokenUpdateMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TokenUpdateMultiError) Error ¶
func (m TokenUpdateMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TokenUpdateValidationError ¶
type TokenUpdateValidationError struct {
// contains filtered or unexported fields
}
TokenUpdateValidationError is the validation error returned by TokenUpdate.Validate if the designated constraints aren't met.
func (TokenUpdateValidationError) Cause ¶
func (e TokenUpdateValidationError) Cause() error
Cause function returns cause value.
func (TokenUpdateValidationError) Error ¶
func (e TokenUpdateValidationError) Error() string
Error satisfies the builtin error interface
func (TokenUpdateValidationError) ErrorName ¶
func (e TokenUpdateValidationError) ErrorName() string
ErrorName returns error name.
func (TokenUpdateValidationError) Field ¶
func (e TokenUpdateValidationError) Field() string
Field function returns field value.
func (TokenUpdateValidationError) Key ¶
func (e TokenUpdateValidationError) Key() bool
Key function returns key value.
func (TokenUpdateValidationError) Reason ¶
func (e TokenUpdateValidationError) Reason() string
Reason function returns reason value.
type UnimplementedNotificatorServiceServer ¶
type UnimplementedNotificatorServiceServer struct { }
UnimplementedNotificatorServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedNotificatorServiceServer) GetNotifications ¶
func (UnimplementedNotificatorServiceServer) GetNotifications(context.Context, *GetNotificationsRequest) (*GetNotificationsResponse, error)
func (UnimplementedNotificatorServiceServer) ReadNotifications ¶
func (UnimplementedNotificatorServiceServer) ReadNotifications(context.Context, *ReadNotificationsRequest) (*ReadNotificationsResponse, error)
type UnsafeNotificatorServiceServer ¶
type UnsafeNotificatorServiceServer interface {
// contains filtered or unexported methods
}
UnsafeNotificatorServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NotificatorServiceServer will result in compilation errors.