notifications

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_resources_notifications_notifications_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Notification

type Notification struct {
	Id        uint64               `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" alias:"id"`                                       // @gotags: alias:"id"
	CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty" alias:"created_at"` // @gotags: alias:"created_at"
	ReadAt    *timestamp.Timestamp `protobuf:"bytes,3,opt,name=read_at,json=readAt,proto3" json:"read_at,omitempty" alias:"read_at"`             // @gotags: alias:"read_at"
	UserId    int32                `protobuf:"varint,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty" alias:"user_id"`            // @gotags: alias:"user_id"
	Title     string               `protobuf:"bytes,5,opt,name=title,proto3" json:"title,omitempty" alias:"title"`                               // @gotags: alias:"title"
	Type      *string              `protobuf:"bytes,6,opt,name=type,proto3,oneof" json:"type,omitempty" alias:"type"`                            // @gotags: alias:"type"
	Content   string               `protobuf:"bytes,7,opt,name=content,proto3" json:"content,omitempty" alias:"content"`                         // @gotags: alias:"content"
	Data      *string              `protobuf:"bytes,8,opt,name=data,proto3,oneof" json:"data,omitempty" alias:"data"`                            // @gotags: alias:"data"
	// contains filtered or unexported fields
}

func (*Notification) Descriptor deprecated

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

Deprecated: Use Notification.ProtoReflect.Descriptor instead.

func (*Notification) GetContent

func (x *Notification) GetContent() string

func (*Notification) GetCreatedAt

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

func (*Notification) GetData

func (x *Notification) GetData() string

func (*Notification) GetId

func (x *Notification) GetId() uint64

func (*Notification) GetReadAt

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

func (*Notification) GetTitle

func (x *Notification) GetTitle() string

func (*Notification) GetType

func (x *Notification) GetType() string

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

Jump to

Keyboard shortcuts

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