notifications

package
v0.9.6 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2025 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NotificationType_name = map[int32]string{
		0: "NOTIFICATION_TYPE_UNSPECIFIED",
		1: "NOTIFICATION_TYPE_ERROR",
		2: "NOTIFICATION_TYPE_WARNING",
		3: "NOTIFICATION_TYPE_INFO",
		4: "NOTIFICATION_TYPE_SUCCESS",
	}
	NotificationType_value = map[string]int32{
		"NOTIFICATION_TYPE_UNSPECIFIED": 0,
		"NOTIFICATION_TYPE_ERROR":       1,
		"NOTIFICATION_TYPE_WARNING":     2,
		"NOTIFICATION_TYPE_INFO":        3,
		"NOTIFICATION_TYPE_SUCCESS":     4,
	}
)

Enum value maps for NotificationType.

View Source
var (
	NotificationCategory_name = map[int32]string{
		0: "NOTIFICATION_CATEGORY_UNSPECIFIED",
		1: "NOTIFICATION_CATEGORY_GENERAL",
		2: "NOTIFICATION_CATEGORY_DOCUMENT",
		3: "NOTIFICATION_CATEGORY_CALENDAR",
	}
	NotificationCategory_value = map[string]int32{
		"NOTIFICATION_CATEGORY_UNSPECIFIED": 0,
		"NOTIFICATION_CATEGORY_GENERAL":     1,
		"NOTIFICATION_CATEGORY_DOCUMENT":    2,
		"NOTIFICATION_CATEGORY_CALENDAR":    3,
	}
)

Enum value maps for NotificationCategory.

View Source
var File_resources_notifications_events_proto protoreflect.FileDescriptor
View Source
var File_resources_notifications_notifications_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type BannerMessageWrapper added in v0.9.5

type BannerMessageWrapper struct {
	BannerMessage *rector.BannerMessage `protobuf:"bytes,1,opt,name=banner_message,json=bannerMessage,proto3,oneof" json:"banner_message,omitempty"`
	// contains filtered or unexported fields
}

func (*BannerMessageWrapper) Descriptor deprecated added in v0.9.5

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

Deprecated: Use BannerMessageWrapper.ProtoReflect.Descriptor instead.

func (*BannerMessageWrapper) GetBannerMessage added in v0.9.5

func (x *BannerMessageWrapper) GetBannerMessage() *rector.BannerMessage

func (*BannerMessageWrapper) ProtoMessage added in v0.9.5

func (*BannerMessageWrapper) ProtoMessage()

func (*BannerMessageWrapper) ProtoReflect added in v0.9.5

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

func (*BannerMessageWrapper) Reset added in v0.9.5

func (x *BannerMessageWrapper) Reset()

func (*BannerMessageWrapper) Sanitize added in v0.9.5

func (m *BannerMessageWrapper) Sanitize() error

func (*BannerMessageWrapper) String added in v0.9.5

func (x *BannerMessageWrapper) String() string

func (*BannerMessageWrapper) Validate added in v0.9.5

func (m *BannerMessageWrapper) Validate() error

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

func (m *BannerMessageWrapper) ValidateAll() error

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

type BannerMessageWrapperMultiError added in v0.9.5

type BannerMessageWrapperMultiError []error

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

func (BannerMessageWrapperMultiError) AllErrors added in v0.9.5

func (m BannerMessageWrapperMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (BannerMessageWrapperMultiError) Error added in v0.9.5

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

type BannerMessageWrapperValidationError added in v0.9.5

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

BannerMessageWrapperValidationError is the validation error returned by BannerMessageWrapper.Validate if the designated constraints aren't met.

func (BannerMessageWrapperValidationError) Cause added in v0.9.5

Cause function returns cause value.

func (BannerMessageWrapperValidationError) Error added in v0.9.5

Error satisfies the builtin error interface

func (BannerMessageWrapperValidationError) ErrorName added in v0.9.5

ErrorName returns error name.

func (BannerMessageWrapperValidationError) Field added in v0.9.5

Field function returns field value.

func (BannerMessageWrapperValidationError) Key added in v0.9.5

Key function returns key value.

func (BannerMessageWrapperValidationError) Reason added in v0.9.5

Reason function returns reason value.

type CalendarData

type CalendarData struct {
	CalendarId      *uint64 `protobuf:"varint,1,opt,name=calendar_id,json=calendarId,proto3,oneof" json:"calendar_id,omitempty"`
	CalendarEntryId *uint64 `protobuf:"varint,2,opt,name=calendar_entry_id,json=calendarEntryId,proto3,oneof" json:"calendar_entry_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CalendarData) Descriptor deprecated

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

Deprecated: Use CalendarData.ProtoReflect.Descriptor instead.

func (*CalendarData) GetCalendarEntryId

func (x *CalendarData) GetCalendarEntryId() uint64

func (*CalendarData) GetCalendarId

func (x *CalendarData) GetCalendarId() uint64

func (*CalendarData) ProtoMessage

func (*CalendarData) ProtoMessage()

func (*CalendarData) ProtoReflect

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

func (*CalendarData) Reset

func (x *CalendarData) Reset()

func (*CalendarData) Sanitize added in v0.9.4

func (m *CalendarData) Sanitize() error

func (*CalendarData) String

func (x *CalendarData) String() string

func (*CalendarData) Validate

func (m *CalendarData) Validate() error

Validate checks the field values on CalendarData 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 (*CalendarData) ValidateAll

func (m *CalendarData) ValidateAll() error

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

type CalendarDataMultiError

type CalendarDataMultiError []error

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

func (CalendarDataMultiError) AllErrors

func (m CalendarDataMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CalendarDataMultiError) Error

func (m CalendarDataMultiError) Error() string

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

type CalendarDataValidationError

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

CalendarDataValidationError is the validation error returned by CalendarData.Validate if the designated constraints aren't met.

func (CalendarDataValidationError) Cause

Cause function returns cause value.

func (CalendarDataValidationError) Error

Error satisfies the builtin error interface

func (CalendarDataValidationError) ErrorName

func (e CalendarDataValidationError) ErrorName() string

ErrorName returns error name.

func (CalendarDataValidationError) Field

Field function returns field value.

func (CalendarDataValidationError) Key

Key function returns key value.

func (CalendarDataValidationError) Reason

Reason function returns reason value.

type Data

type Data struct {
	Link     *Link            `protobuf:"bytes,1,opt,name=link,proto3,oneof" json:"link,omitempty"`
	CausedBy *users.UserShort `protobuf:"bytes,2,opt,name=caused_by,json=causedBy,proto3,oneof" json:"caused_by,omitempty"`
	Calendar *CalendarData    `protobuf:"bytes,3,opt,name=calendar,proto3,oneof" json:"calendar,omitempty"`
	// contains filtered or unexported fields
}

@dbscanner: json

func (*Data) Descriptor deprecated

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

Deprecated: Use Data.ProtoReflect.Descriptor instead.

func (*Data) GetCalendar

func (x *Data) GetCalendar() *CalendarData

func (*Data) GetCausedBy

func (x *Data) GetCausedBy() *users.UserShort
func (x *Data) GetLink() *Link

func (*Data) ProtoMessage

func (*Data) ProtoMessage()

func (*Data) ProtoReflect

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

func (*Data) Reset

func (x *Data) Reset()

func (*Data) Sanitize added in v0.9.4

func (m *Data) Sanitize() error

func (*Data) Scan

func (x *Data) Scan(value any) error

Scan implements driver.Valuer for protobuf Data.

func (*Data) String

func (x *Data) String() string

func (*Data) Validate

func (m *Data) Validate() error

Validate checks the field values on Data 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 (*Data) ValidateAll

func (m *Data) ValidateAll() error

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

func (*Data) Value

func (x *Data) Value() (driver.Value, error)

Value marshals the Data value into driver.Valuer.

type DataMultiError

type DataMultiError []error

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

func (DataMultiError) AllErrors

func (m DataMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DataMultiError) Error

func (m DataMultiError) Error() string

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

type DataValidationError

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

DataValidationError is the validation error returned by Data.Validate if the designated constraints aren't met.

func (DataValidationError) Cause

func (e DataValidationError) Cause() error

Cause function returns cause value.

func (DataValidationError) Error

func (e DataValidationError) Error() string

Error satisfies the builtin error interface

func (DataValidationError) ErrorName

func (e DataValidationError) ErrorName() string

ErrorName returns error name.

func (DataValidationError) Field

func (e DataValidationError) Field() string

Field function returns field value.

func (DataValidationError) Key

func (e DataValidationError) Key() bool

Key function returns key value.

func (DataValidationError) Reason

func (e DataValidationError) Reason() string

Reason function returns reason value.

type JobEvent

type JobEvent struct {

	// Types that are valid to be assigned to Data:
	//
	//	*JobEvent_JobProps
	Data isJobEvent_Data `protobuf_oneof:"data"`
	// contains filtered or unexported fields
}

func (*JobEvent) Descriptor deprecated

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

Deprecated: Use JobEvent.ProtoReflect.Descriptor instead.

func (*JobEvent) GetData

func (x *JobEvent) GetData() isJobEvent_Data

func (*JobEvent) GetJobProps

func (x *JobEvent) GetJobProps() *users.JobProps

func (*JobEvent) ProtoMessage

func (*JobEvent) ProtoMessage()

func (*JobEvent) ProtoReflect

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

func (*JobEvent) Reset

func (x *JobEvent) Reset()

func (*JobEvent) Sanitize added in v0.9.4

func (m *JobEvent) Sanitize() error

func (*JobEvent) String

func (x *JobEvent) String() string

func (*JobEvent) Validate

func (m *JobEvent) Validate() error

Validate checks the field values on JobEvent 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 (*JobEvent) ValidateAll

func (m *JobEvent) ValidateAll() error

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

type JobEventMultiError

type JobEventMultiError []error

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

func (JobEventMultiError) AllErrors

func (m JobEventMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (JobEventMultiError) Error

func (m JobEventMultiError) Error() string

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

type JobEventValidationError

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

JobEventValidationError is the validation error returned by JobEvent.Validate if the designated constraints aren't met.

func (JobEventValidationError) Cause

func (e JobEventValidationError) Cause() error

Cause function returns cause value.

func (JobEventValidationError) Error

func (e JobEventValidationError) Error() string

Error satisfies the builtin error interface

func (JobEventValidationError) ErrorName

func (e JobEventValidationError) ErrorName() string

ErrorName returns error name.

func (JobEventValidationError) Field

func (e JobEventValidationError) Field() string

Field function returns field value.

func (JobEventValidationError) Key

func (e JobEventValidationError) Key() bool

Key function returns key value.

func (JobEventValidationError) Reason

func (e JobEventValidationError) Reason() string

Reason function returns reason value.

type JobEvent_JobProps

type JobEvent_JobProps struct {
	JobProps *users.JobProps `protobuf:"bytes,1,opt,name=job_props,json=jobProps,proto3,oneof"`
}

type JobGradeEvent added in v0.9.4

type JobGradeEvent struct {

	// Types that are valid to be assigned to Data:
	//
	//	*JobGradeEvent_RefreshToken
	Data isJobGradeEvent_Data `protobuf_oneof:"data"`
	// contains filtered or unexported fields
}

func (*JobGradeEvent) Descriptor deprecated added in v0.9.4

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

Deprecated: Use JobGradeEvent.ProtoReflect.Descriptor instead.

func (*JobGradeEvent) GetData added in v0.9.4

func (x *JobGradeEvent) GetData() isJobGradeEvent_Data

func (*JobGradeEvent) GetRefreshToken added in v0.9.4

func (x *JobGradeEvent) GetRefreshToken() bool

func (*JobGradeEvent) ProtoMessage added in v0.9.4

func (*JobGradeEvent) ProtoMessage()

func (*JobGradeEvent) ProtoReflect added in v0.9.4

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

func (*JobGradeEvent) Reset added in v0.9.4

func (x *JobGradeEvent) Reset()

func (*JobGradeEvent) Sanitize added in v0.9.4

func (m *JobGradeEvent) Sanitize() error

func (*JobGradeEvent) String added in v0.9.4

func (x *JobGradeEvent) String() string

func (*JobGradeEvent) Validate added in v0.9.4

func (m *JobGradeEvent) Validate() error

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

func (m *JobGradeEvent) ValidateAll() error

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

type JobGradeEventMultiError added in v0.9.4

type JobGradeEventMultiError []error

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

func (JobGradeEventMultiError) AllErrors added in v0.9.4

func (m JobGradeEventMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (JobGradeEventMultiError) Error added in v0.9.4

func (m JobGradeEventMultiError) Error() string

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

type JobGradeEventValidationError added in v0.9.4

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

JobGradeEventValidationError is the validation error returned by JobGradeEvent.Validate if the designated constraints aren't met.

func (JobGradeEventValidationError) Cause added in v0.9.4

Cause function returns cause value.

func (JobGradeEventValidationError) Error added in v0.9.4

Error satisfies the builtin error interface

func (JobGradeEventValidationError) ErrorName added in v0.9.4

func (e JobGradeEventValidationError) ErrorName() string

ErrorName returns error name.

func (JobGradeEventValidationError) Field added in v0.9.4

Field function returns field value.

func (JobGradeEventValidationError) Key added in v0.9.4

Key function returns key value.

func (JobGradeEventValidationError) Reason added in v0.9.4

Reason function returns reason value.

type JobGradeEvent_RefreshToken added in v0.9.4

type JobGradeEvent_RefreshToken struct {
	RefreshToken bool `protobuf:"varint,1,opt,name=refresh_token,json=refreshToken,proto3,oneof"`
}
type Link struct {
	To       string  `protobuf:"bytes,1,opt,name=to,proto3" json:"to,omitempty"`
	Title    *string `protobuf:"bytes,2,opt,name=title,proto3,oneof" json:"title,omitempty"`
	External *bool   `protobuf:"varint,3,opt,name=external,proto3,oneof" json:"external,omitempty"`
	// contains filtered or unexported fields
}

func (*Link) Descriptor deprecated

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

Deprecated: Use Link.ProtoReflect.Descriptor instead.

func (*Link) GetExternal

func (x *Link) GetExternal() bool

func (*Link) GetTitle

func (x *Link) GetTitle() string

func (*Link) GetTo

func (x *Link) GetTo() string

func (*Link) ProtoMessage

func (*Link) ProtoMessage()

func (*Link) ProtoReflect

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

func (*Link) Reset

func (x *Link) Reset()

func (*Link) Sanitize added in v0.9.4

func (m *Link) Sanitize() error

func (*Link) String

func (x *Link) String() string

func (*Link) Validate

func (m *Link) Validate() error

Validate checks the field values on Link 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 (*Link) ValidateAll

func (m *Link) ValidateAll() error

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

type LinkMultiError

type LinkMultiError []error

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

func (LinkMultiError) AllErrors

func (m LinkMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LinkMultiError) Error

func (m LinkMultiError) Error() string

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

type LinkValidationError

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

LinkValidationError is the validation error returned by Link.Validate if the designated constraints aren't met.

func (LinkValidationError) Cause

func (e LinkValidationError) Cause() error

Cause function returns cause value.

func (LinkValidationError) Error

func (e LinkValidationError) Error() string

Error satisfies the builtin error interface

func (LinkValidationError) ErrorName

func (e LinkValidationError) ErrorName() string

ErrorName returns error name.

func (LinkValidationError) Field

func (e LinkValidationError) Field() string

Field function returns field value.

func (LinkValidationError) Key

func (e LinkValidationError) Key() bool

Key function returns key value.

func (LinkValidationError) Reason

func (e LinkValidationError) Reason() string

Reason function returns reason value.

type Notification

type Notification struct {
	Id        uint64               `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	ReadAt    *timestamp.Timestamp `protobuf:"bytes,3,opt,name=read_at,json=readAt,proto3" json:"read_at,omitempty"`
	UserId    int32                `protobuf:"varint,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// @sanitize
	Title *common.TranslateItem `protobuf:"bytes,5,opt,name=title,proto3" json:"title,omitempty"`
	Type  NotificationType      `protobuf:"varint,6,opt,name=type,proto3,enum=resources.notifications.NotificationType" json:"type,omitempty"`
	// @sanitize
	Content  *common.TranslateItem `protobuf:"bytes,7,opt,name=content,proto3" json:"content,omitempty"`
	Category NotificationCategory  `protobuf:"varint,8,opt,name=category,proto3,enum=resources.notifications.NotificationCategory" json:"category,omitempty"`
	Data     *Data                 `protobuf:"bytes,9,opt,name=data,proto3,oneof" json:"data,omitempty"`
	Starred  *bool                 `protobuf:"varint,10,opt,name=starred,proto3,oneof" json:"starred,omitempty"`
	// contains filtered or unexported fields
}

func (*Notification) Descriptor deprecated

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

Deprecated: Use Notification.ProtoReflect.Descriptor instead.

func (*Notification) GetCategory

func (x *Notification) GetCategory() NotificationCategory

func (*Notification) GetContent

func (x *Notification) GetContent() *common.TranslateItem

func (*Notification) GetCreatedAt

func (x *Notification) GetCreatedAt() *timestamp.Timestamp

func (*Notification) GetData

func (x *Notification) GetData() *Data

func (*Notification) GetId

func (x *Notification) GetId() uint64

func (*Notification) GetReadAt

func (x *Notification) GetReadAt() *timestamp.Timestamp

func (*Notification) GetStarred

func (x *Notification) GetStarred() bool

func (*Notification) GetTitle

func (x *Notification) GetTitle() *common.TranslateItem

func (*Notification) GetType

func (x *Notification) GetType() NotificationType

func (*Notification) GetUserId

func (x *Notification) GetUserId() int32

func (*Notification) ProtoMessage

func (*Notification) ProtoMessage()

func (*Notification) ProtoReflect

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

func (*Notification) Reset

func (x *Notification) Reset()

func (*Notification) Sanitize added in v0.9.4

func (m *Notification) Sanitize() error

func (*Notification) String

func (x *Notification) String() string

func (*Notification) Validate

func (m *Notification) Validate() error

Validate checks the field values on Notification 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 (*Notification) ValidateAll

func (m *Notification) ValidateAll() error

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

type NotificationCategory

type NotificationCategory int32
const (
	NotificationCategory_NOTIFICATION_CATEGORY_UNSPECIFIED NotificationCategory = 0
	NotificationCategory_NOTIFICATION_CATEGORY_GENERAL     NotificationCategory = 1
	NotificationCategory_NOTIFICATION_CATEGORY_DOCUMENT    NotificationCategory = 2
	NotificationCategory_NOTIFICATION_CATEGORY_CALENDAR    NotificationCategory = 3
)

func (NotificationCategory) Descriptor

func (NotificationCategory) Enum

func (NotificationCategory) EnumDescriptor deprecated

func (NotificationCategory) EnumDescriptor() ([]byte, []int)

Deprecated: Use NotificationCategory.Descriptor instead.

func (NotificationCategory) Number

func (NotificationCategory) String

func (x NotificationCategory) String() string

func (NotificationCategory) Type

type NotificationMultiError

type NotificationMultiError []error

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

func (NotificationMultiError) AllErrors

func (m NotificationMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (NotificationMultiError) Error

func (m NotificationMultiError) Error() string

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

type NotificationType

type NotificationType int32
const (
	NotificationType_NOTIFICATION_TYPE_UNSPECIFIED NotificationType = 0
	NotificationType_NOTIFICATION_TYPE_ERROR       NotificationType = 1
	NotificationType_NOTIFICATION_TYPE_WARNING     NotificationType = 2
	NotificationType_NOTIFICATION_TYPE_INFO        NotificationType = 3
	NotificationType_NOTIFICATION_TYPE_SUCCESS     NotificationType = 4
)

func (NotificationType) Descriptor

func (NotificationType) Enum

func (NotificationType) EnumDescriptor deprecated

func (NotificationType) EnumDescriptor() ([]byte, []int)

Deprecated: Use NotificationType.Descriptor instead.

func (NotificationType) Number

func (NotificationType) String

func (x NotificationType) String() string

func (NotificationType) Type

type NotificationValidationError

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

NotificationValidationError is the validation error returned by Notification.Validate if the designated constraints aren't met.

func (NotificationValidationError) Cause

Cause function returns cause value.

func (NotificationValidationError) Error

Error satisfies the builtin error interface

func (NotificationValidationError) ErrorName

func (e NotificationValidationError) ErrorName() string

ErrorName returns error name.

func (NotificationValidationError) Field

Field function returns field value.

func (NotificationValidationError) Key

Key function returns key value.

func (NotificationValidationError) Reason

Reason function returns reason value.

type SystemEvent

type SystemEvent struct {

	// Types that are valid to be assigned to Data:
	//
	//	*SystemEvent_Ping
	//	*SystemEvent_BannerMessage
	Data isSystemEvent_Data `protobuf_oneof:"data"`
	// contains filtered or unexported fields
}

func (*SystemEvent) Descriptor deprecated

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

Deprecated: Use SystemEvent.ProtoReflect.Descriptor instead.

func (*SystemEvent) GetBannerMessage added in v0.9.5

func (x *SystemEvent) GetBannerMessage() *BannerMessageWrapper

func (*SystemEvent) GetData added in v0.9.5

func (x *SystemEvent) GetData() isSystemEvent_Data

func (*SystemEvent) GetPing added in v0.9.5

func (x *SystemEvent) GetPing() bool

func (*SystemEvent) ProtoMessage

func (*SystemEvent) ProtoMessage()

func (*SystemEvent) ProtoReflect

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

func (*SystemEvent) Reset

func (x *SystemEvent) Reset()

func (*SystemEvent) Sanitize added in v0.9.4

func (m *SystemEvent) Sanitize() error

func (*SystemEvent) String

func (x *SystemEvent) String() string

func (*SystemEvent) Validate

func (m *SystemEvent) Validate() error

Validate checks the field values on SystemEvent 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 (*SystemEvent) ValidateAll

func (m *SystemEvent) ValidateAll() error

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

type SystemEventMultiError

type SystemEventMultiError []error

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

func (SystemEventMultiError) AllErrors

func (m SystemEventMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SystemEventMultiError) Error

func (m SystemEventMultiError) Error() string

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

type SystemEventValidationError

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

SystemEventValidationError is the validation error returned by SystemEvent.Validate if the designated constraints aren't met.

func (SystemEventValidationError) Cause

Cause function returns cause value.

func (SystemEventValidationError) Error

Error satisfies the builtin error interface

func (SystemEventValidationError) ErrorName

func (e SystemEventValidationError) ErrorName() string

ErrorName returns error name.

func (SystemEventValidationError) Field

Field function returns field value.

func (SystemEventValidationError) Key

Key function returns key value.

func (SystemEventValidationError) Reason

Reason function returns reason value.

type SystemEvent_BannerMessage added in v0.9.5

type SystemEvent_BannerMessage struct {
	BannerMessage *BannerMessageWrapper `protobuf:"bytes,2,opt,name=banner_message,json=bannerMessage,proto3,oneof"`
}

type SystemEvent_Ping added in v0.9.5

type SystemEvent_Ping struct {
	Ping bool `protobuf:"varint,1,opt,name=ping,proto3,oneof"`
}

type UserEvent

type UserEvent struct {

	// Types that are valid to be assigned to Data:
	//
	//	*UserEvent_RefreshToken
	//	*UserEvent_Notification
	//	*UserEvent_NotificationsReadCount
	Data isUserEvent_Data `protobuf_oneof:"data"`
	// contains filtered or unexported fields
}

func (*UserEvent) Descriptor deprecated

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

Deprecated: Use UserEvent.ProtoReflect.Descriptor instead.

func (*UserEvent) GetData

func (x *UserEvent) GetData() isUserEvent_Data

func (*UserEvent) GetNotification

func (x *UserEvent) GetNotification() *Notification

func (*UserEvent) GetNotificationsReadCount added in v0.9.5

func (x *UserEvent) GetNotificationsReadCount() int32

func (*UserEvent) GetRefreshToken

func (x *UserEvent) GetRefreshToken() bool

func (*UserEvent) ProtoMessage

func (*UserEvent) ProtoMessage()

func (*UserEvent) ProtoReflect

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

func (*UserEvent) Reset

func (x *UserEvent) Reset()

func (*UserEvent) Sanitize added in v0.9.4

func (m *UserEvent) Sanitize() error

func (*UserEvent) String

func (x *UserEvent) String() string

func (*UserEvent) Validate

func (m *UserEvent) Validate() error

Validate checks the field values on UserEvent 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 (*UserEvent) ValidateAll

func (m *UserEvent) ValidateAll() error

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

type UserEventMultiError

type UserEventMultiError []error

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

func (UserEventMultiError) AllErrors

func (m UserEventMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserEventMultiError) Error

func (m UserEventMultiError) Error() string

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

type UserEventValidationError

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

UserEventValidationError is the validation error returned by UserEvent.Validate if the designated constraints aren't met.

func (UserEventValidationError) Cause

func (e UserEventValidationError) Cause() error

Cause function returns cause value.

func (UserEventValidationError) Error

func (e UserEventValidationError) Error() string

Error satisfies the builtin error interface

func (UserEventValidationError) ErrorName

func (e UserEventValidationError) ErrorName() string

ErrorName returns error name.

func (UserEventValidationError) Field

func (e UserEventValidationError) Field() string

Field function returns field value.

func (UserEventValidationError) Key

Key function returns key value.

func (UserEventValidationError) Reason

func (e UserEventValidationError) Reason() string

Reason function returns reason value.

type UserEvent_Notification

type UserEvent_Notification struct {
	// Notifications
	Notification *Notification `protobuf:"bytes,2,opt,name=notification,proto3,oneof"`
}

type UserEvent_NotificationsReadCount added in v0.9.5

type UserEvent_NotificationsReadCount struct {
	NotificationsReadCount int32 `protobuf:"varint,3,opt,name=notifications_read_count,json=notificationsReadCount,proto3,oneof"`
}

type UserEvent_RefreshToken

type UserEvent_RefreshToken struct {
	RefreshToken bool `protobuf:"varint,1,opt,name=refresh_token,json=refreshToken,proto3,oneof"`
}

Jump to

Keyboard shortcuts

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