notificator

package
v0.8.20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2024 License: Apache-2.0 Imports: 43 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NotificatorService_GetNotifications_FullMethodName  = "/services.notificator.NotificatorService/GetNotifications"
	NotificatorService_MarkNotifications_FullMethodName = "/services.notificator.NotificatorService/MarkNotifications"
	NotificatorService_Stream_FullMethodName            = "/services.notificator.NotificatorService/Stream"
)

Variables

View Source
var (
	ErrFailedRequest = status.Error(codes.InvalidArgument, "errors.NotificatorService.ErrFailedRequest")
	ErrFailedStream  = status.Error(codes.InvalidArgument, "errors.NotificatorService.ErrFailedStream")
)
View Source
var File_services_notificator_notificator_proto protoreflect.FileDescriptor
View Source
var NotificatorService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "services.notificator.NotificatorService",
	HandlerType: (*NotificatorServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetNotifications",
			Handler:    _NotificatorService_GetNotifications_Handler,
		},
		{
			MethodName: "MarkNotifications",
			Handler:    _NotificatorService_MarkNotifications_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)

View Source
var PermsRemap = map[string]string{

	"NotificatorService/GetNotifications":  "Any",
	"NotificatorService/MarkNotifications": "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 (*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

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

Cause function returns cause value.

func (GetNotificationsRequestValidationError) Error

Error satisfies the builtin error interface

func (GetNotificationsRequestValidationError) ErrorName

ErrorName returns error name.

func (GetNotificationsRequestValidationError) Field

Field function returns field value.

func (GetNotificationsRequestValidationError) Key

Key function returns key value.

func (GetNotificationsRequestValidationError) Reason

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 (*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

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

Cause function returns cause value.

func (GetNotificationsResponseValidationError) Error

Error satisfies the builtin error interface

func (GetNotificationsResponseValidationError) ErrorName

ErrorName returns error name.

func (GetNotificationsResponseValidationError) Field

Field function returns field value.

func (GetNotificationsResponseValidationError) Key

Key function returns key value.

func (GetNotificationsResponseValidationError) Reason

Reason function returns reason value.

type MarkNotificationsRequest added in v0.8.10

type MarkNotificationsRequest 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 (*MarkNotificationsRequest) Descriptor deprecated added in v0.8.10

func (*MarkNotificationsRequest) Descriptor() ([]byte, []int)

Deprecated: Use MarkNotificationsRequest.ProtoReflect.Descriptor instead.

func (*MarkNotificationsRequest) GetAll added in v0.8.10

func (x *MarkNotificationsRequest) GetAll() bool

func (*MarkNotificationsRequest) GetIds added in v0.8.10

func (x *MarkNotificationsRequest) GetIds() []uint64

func (*MarkNotificationsRequest) ProtoMessage added in v0.8.10

func (*MarkNotificationsRequest) ProtoMessage()

func (*MarkNotificationsRequest) ProtoReflect added in v0.8.10

func (x *MarkNotificationsRequest) ProtoReflect() protoreflect.Message

func (*MarkNotificationsRequest) Reset added in v0.8.10

func (x *MarkNotificationsRequest) Reset()

func (*MarkNotificationsRequest) String added in v0.8.10

func (x *MarkNotificationsRequest) String() string

func (*MarkNotificationsRequest) Validate added in v0.8.10

func (m *MarkNotificationsRequest) Validate() error

Validate checks the field values on MarkNotificationsRequest 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 (*MarkNotificationsRequest) ValidateAll added in v0.8.10

func (m *MarkNotificationsRequest) ValidateAll() error

ValidateAll checks the field values on MarkNotificationsRequest 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 MarkNotificationsRequestMultiError, or nil if none found.

type MarkNotificationsRequestMultiError added in v0.8.10

type MarkNotificationsRequestMultiError []error

MarkNotificationsRequestMultiError is an error wrapping multiple validation errors returned by MarkNotificationsRequest.ValidateAll() if the designated constraints aren't met.

func (MarkNotificationsRequestMultiError) AllErrors added in v0.8.10

func (m MarkNotificationsRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (MarkNotificationsRequestMultiError) Error added in v0.8.10

Error returns a concatenation of all the error messages it wraps.

type MarkNotificationsRequestValidationError added in v0.8.10

type MarkNotificationsRequestValidationError struct {
	// contains filtered or unexported fields
}

MarkNotificationsRequestValidationError is the validation error returned by MarkNotificationsRequest.Validate if the designated constraints aren't met.

func (MarkNotificationsRequestValidationError) Cause added in v0.8.10

Cause function returns cause value.

func (MarkNotificationsRequestValidationError) Error added in v0.8.10

Error satisfies the builtin error interface

func (MarkNotificationsRequestValidationError) ErrorName added in v0.8.10

ErrorName returns error name.

func (MarkNotificationsRequestValidationError) Field added in v0.8.10

Field function returns field value.

func (MarkNotificationsRequestValidationError) Key added in v0.8.10

Key function returns key value.

func (MarkNotificationsRequestValidationError) Reason added in v0.8.10

Reason function returns reason value.

type MarkNotificationsResponse added in v0.8.10

type MarkNotificationsResponse struct {
	Updated uint64 `protobuf:"varint,1,opt,name=updated,proto3" json:"updated,omitempty"`
	// contains filtered or unexported fields
}

func (*MarkNotificationsResponse) Descriptor deprecated added in v0.8.10

func (*MarkNotificationsResponse) Descriptor() ([]byte, []int)

Deprecated: Use MarkNotificationsResponse.ProtoReflect.Descriptor instead.

func (*MarkNotificationsResponse) GetUpdated added in v0.8.10

func (x *MarkNotificationsResponse) GetUpdated() uint64

func (*MarkNotificationsResponse) ProtoMessage added in v0.8.10

func (*MarkNotificationsResponse) ProtoMessage()

func (*MarkNotificationsResponse) ProtoReflect added in v0.8.10

func (*MarkNotificationsResponse) Reset added in v0.8.10

func (x *MarkNotificationsResponse) Reset()

func (*MarkNotificationsResponse) String added in v0.8.10

func (x *MarkNotificationsResponse) String() string

func (*MarkNotificationsResponse) Validate added in v0.8.10

func (m *MarkNotificationsResponse) Validate() error

Validate checks the field values on MarkNotificationsResponse 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 (*MarkNotificationsResponse) ValidateAll added in v0.8.10

func (m *MarkNotificationsResponse) ValidateAll() error

ValidateAll checks the field values on MarkNotificationsResponse 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 MarkNotificationsResponseMultiError, or nil if none found.

type MarkNotificationsResponseMultiError added in v0.8.10

type MarkNotificationsResponseMultiError []error

MarkNotificationsResponseMultiError is an error wrapping multiple validation errors returned by MarkNotificationsResponse.ValidateAll() if the designated constraints aren't met.

func (MarkNotificationsResponseMultiError) AllErrors added in v0.8.10

AllErrors returns a list of validation violation errors.

func (MarkNotificationsResponseMultiError) Error added in v0.8.10

Error returns a concatenation of all the error messages it wraps.

type MarkNotificationsResponseValidationError added in v0.8.10

type MarkNotificationsResponseValidationError struct {
	// contains filtered or unexported fields
}

MarkNotificationsResponseValidationError is the validation error returned by MarkNotificationsResponse.Validate if the designated constraints aren't met.

func (MarkNotificationsResponseValidationError) Cause added in v0.8.10

Cause function returns cause value.

func (MarkNotificationsResponseValidationError) Error added in v0.8.10

Error satisfies the builtin error interface

func (MarkNotificationsResponseValidationError) ErrorName added in v0.8.10

ErrorName returns error name.

func (MarkNotificationsResponseValidationError) Field added in v0.8.10

Field function returns field value.

func (MarkNotificationsResponseValidationError) Key added in v0.8.10

Key function returns key value.

func (MarkNotificationsResponseValidationError) Reason added in v0.8.10

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
	MarkNotifications(ctx context.Context, in *MarkNotificationsRequest, opts ...grpc.CallOption) (*MarkNotificationsResponse, 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.

type NotificatorServiceServer

type NotificatorServiceServer interface {
	// @perm: Name=Any
	GetNotifications(context.Context, *GetNotificationsRequest) (*GetNotificationsResponse, error)
	// @perm: Name=Any
	MarkNotifications(context.Context, *MarkNotificationsRequest) (*MarkNotificationsResponse, 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 Params added in v0.8.0

type Params struct {
	fx.In

	LC fx.Lifecycle

	Logger   *zap.Logger
	DB       *sql.DB
	Perms    perms.Permissions
	TM       *auth.TokenMgr
	UI       userinfo.UserInfoRetriever
	JS       nats.JetStreamContext
	Enricher *mstlystcdata.Enricher
}

type Server

type Server struct {
	NotificatorServiceServer
	// contains filtered or unexported fields
}

func NewServer

func NewServer(p Params) *Server

func (*Server) GetNotifications

func (s *Server) GetNotifications(ctx context.Context, req *GetNotificationsRequest) (*GetNotificationsResponse, error)

func (*Server) GetPermsRemap added in v0.7.0

func (s *Server) GetPermsRemap() map[string]string

func (*Server) MarkNotifications added in v0.8.10

func (s *Server) MarkNotifications(ctx context.Context, req *MarkNotificationsRequest) (*MarkNotificationsResponse, error)

func (*Server) RegisterServer added in v0.8.0

func (s *Server) RegisterServer(srv *grpc.Server)

func (*Server) Stream

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

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

Cause function returns cause value.

func (StreamNotificationsValidationError) Error added in v0.8.2

Error satisfies the builtin error interface

func (StreamNotificationsValidationError) ErrorName added in v0.8.2

ErrorName returns error name.

func (StreamNotificationsValidationError) Field added in v0.8.2

Field function returns field value.

func (StreamNotificationsValidationError) Key added in v0.8.2

Key function returns key value.

func (StreamNotificationsValidationError) Reason added in v0.8.2

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

Cause function returns cause value.

func (StreamRequestValidationError) Error

Error satisfies the builtin error interface

func (StreamRequestValidationError) ErrorName

func (e StreamRequestValidationError) ErrorName() string

ErrorName returns error name.

func (StreamRequestValidationError) Field

Field function returns field value.

func (StreamRequestValidationError) Key

Key function returns key value.

func (StreamRequestValidationError) Reason

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
	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) 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

Cause function returns cause value.

func (StreamResponseValidationError) Error

Error satisfies the builtin error interface

func (StreamResponseValidationError) ErrorName

func (e StreamResponseValidationError) ErrorName() string

ErrorName returns error name.

func (StreamResponseValidationError) Field

Field function returns field value.

func (StreamResponseValidationError) Key

Key function returns key value.

func (StreamResponseValidationError) Reason

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_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

Cause function returns cause value.

func (TokenUpdateValidationError) Error

Error satisfies the builtin error interface

func (TokenUpdateValidationError) ErrorName

func (e TokenUpdateValidationError) ErrorName() string

ErrorName returns error name.

func (TokenUpdateValidationError) Field

Field function returns field value.

func (TokenUpdateValidationError) Key

Key function returns key value.

func (TokenUpdateValidationError) Reason

Reason function returns reason value.

type UnimplementedNotificatorServiceServer

type UnimplementedNotificatorServiceServer struct {
}

UnimplementedNotificatorServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedNotificatorServiceServer) GetNotifications

func (UnimplementedNotificatorServiceServer) MarkNotifications added in v0.8.10

func (UnimplementedNotificatorServiceServer) Stream

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL