shared

package
v0.0.0-...-b9535b4 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_internal_protobufs_shared_topic_proto protoreflect.FileDescriptor
View Source
var File_internal_protobufs_shared_user_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type TopicBase

type TopicBase struct {
	Id          string    `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Author      *UserBase `protobuf:"bytes,2,opt,name=author,proto3" json:"author,omitempty"`
	Title       string    `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
	LastReplyAt string    `protobuf:"bytes,4,opt,name=last_reply_at,json=lastReplyAt,proto3" json:"last_reply_at,omitempty"`
	// contains filtered or unexported fields
}

func (*TopicBase) Descriptor deprecated

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

Deprecated: Use TopicBase.ProtoReflect.Descriptor instead.

func (*TopicBase) GetAuthor

func (x *TopicBase) GetAuthor() *UserBase

func (*TopicBase) GetId

func (x *TopicBase) GetId() string

func (*TopicBase) GetLastReplyAt

func (x *TopicBase) GetLastReplyAt() string

func (*TopicBase) GetTitle

func (x *TopicBase) GetTitle() string

func (*TopicBase) ProtoMessage

func (*TopicBase) ProtoMessage()

func (*TopicBase) ProtoReflect

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

func (*TopicBase) Reset

func (x *TopicBase) Reset()

func (*TopicBase) String

func (x *TopicBase) String() string

func (*TopicBase) Validate

func (m *TopicBase) Validate() error

Validate checks the field values on TopicBase with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type TopicBaseValidationError

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

TopicBaseValidationError is the validation error returned by TopicBase.Validate if the designated constraints aren't met.

func (TopicBaseValidationError) Cause

func (e TopicBaseValidationError) Cause() error

Cause function returns cause value.

func (TopicBaseValidationError) Error

func (e TopicBaseValidationError) Error() string

Error satisfies the builtin error interface

func (TopicBaseValidationError) ErrorName

func (e TopicBaseValidationError) ErrorName() string

ErrorName returns error name.

func (TopicBaseValidationError) Field

func (e TopicBaseValidationError) Field() string

Field function returns field value.

func (TopicBaseValidationError) Key

Key function returns key value.

func (TopicBaseValidationError) Reason

func (e TopicBaseValidationError) Reason() string

Reason function returns reason value.

type UserBase

type UserBase struct {
	Loginname string `protobuf:"bytes,1,opt,name=loginname,proto3" json:"loginname,omitempty"`
	AvatarUrl string `protobuf:"bytes,2,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"`
	// contains filtered or unexported fields
}

func (*UserBase) Descriptor deprecated

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

Deprecated: Use UserBase.ProtoReflect.Descriptor instead.

func (*UserBase) GetAvatarUrl

func (x *UserBase) GetAvatarUrl() string

func (*UserBase) GetLoginname

func (x *UserBase) GetLoginname() string

func (*UserBase) ProtoMessage

func (*UserBase) ProtoMessage()

func (*UserBase) ProtoReflect

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

func (*UserBase) Reset

func (x *UserBase) Reset()

func (*UserBase) String

func (x *UserBase) String() string

func (*UserBase) Validate

func (m *UserBase) Validate() error

Validate checks the field values on UserBase with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type UserBaseValidationError

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

UserBaseValidationError is the validation error returned by UserBase.Validate if the designated constraints aren't met.

func (UserBaseValidationError) Cause

func (e UserBaseValidationError) Cause() error

Cause function returns cause value.

func (UserBaseValidationError) Error

func (e UserBaseValidationError) Error() string

Error satisfies the builtin error interface

func (UserBaseValidationError) ErrorName

func (e UserBaseValidationError) ErrorName() string

ErrorName returns error name.

func (UserBaseValidationError) Field

func (e UserBaseValidationError) Field() string

Field function returns field value.

func (UserBaseValidationError) Key

func (e UserBaseValidationError) Key() bool

Key function returns key value.

func (UserBaseValidationError) Reason

func (e UserBaseValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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