Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrCreateCommunityInvalidName = errors.New("create-community: invalid name") ErrCreateCommunityInvalidColor = errors.New("create-community: invalid color") ErrCreateCommunityInvalidDescription = errors.New("create-community: invalid description") ErrCreateCommunityInvalidMembership = errors.New("create-community: invalid membership") )
View Source
var ErrAcceptRequestToJoinCommunityInvalidID = errors.New("accept-request-to-join-community: invalid id")
View Source
var ErrBanUserFromCommunityInvalidCommunityID = errors.New("ban-user-from-community: invalid community id")
View Source
var ErrBanUserFromCommunityInvalidUser = errors.New("ban-user-from-community: invalid user id")
View Source
var ErrCreateOneToOneChatInvalidID = errors.New("create-one-to-one-chat: invalid id")
View Source
var ErrDeclineRequestToJoinCommunityInvalidID = errors.New("accept-request-to-join-community: invalid id")
View Source
var ErrInviteUsersToCommunityEmptyUsers = errors.New("invite-users-to-community: empty users")
View Source
var ErrInviteUsersToCommunityInvalidID = errors.New("invite-users-to-community: invalid id")
View Source
var ErrRequestToJoinCommunityInvalidCommunityID = errors.New("request-to-join-community: invalid community id")
Functions ¶
This section is empty.
Types ¶
type AcceptRequestToJoinCommunity ¶
func (*AcceptRequestToJoinCommunity) Validate ¶
func (j *AcceptRequestToJoinCommunity) Validate() error
type BanUserFromCommunity ¶ added in v0.73.9
type BanUserFromCommunity struct { CommunityID types.HexBytes `json:"communityId"` User types.HexBytes `json:"user"` }
func (*BanUserFromCommunity) Validate ¶ added in v0.73.9
func (b *BanUserFromCommunity) Validate() error
type CreateCommunity ¶
type CreateCommunity struct { Name string `json:"name"` Description string `json:"description"` Color string `json:"color"` Membership protobuf.CommunityPermissions_Access `json:"membership"` EnsOnly bool `json:"ensOnly"` Image string `json:"image"` ImageAx int `json:"imageAx"` ImageAy int `json:"imageAy"` ImageBx int `json:"imageBx"` ImageBy int `json:"imageBy"` }
func (*CreateCommunity) ToCommunityDescription ¶
func (c *CreateCommunity) ToCommunityDescription() (*protobuf.CommunityDescription, error)
func (*CreateCommunity) Validate ¶
func (c *CreateCommunity) Validate() error
type CreateOneToOneChat ¶
func (*CreateOneToOneChat) Validate ¶
func (j *CreateOneToOneChat) Validate() error
type DeclineRequestToJoinCommunity ¶
func (*DeclineRequestToJoinCommunity) Validate ¶
func (j *DeclineRequestToJoinCommunity) Validate() error
type InviteUsersToCommunity ¶
func (*InviteUsersToCommunity) Validate ¶
func (j *InviteUsersToCommunity) Validate() error
type RequestToJoinCommunity ¶
type RequestToJoinCommunity struct { CommunityID types.HexBytes `json:"communityId"` ENSName string `json:"ensName"` }
func (*RequestToJoinCommunity) Validate ¶
func (j *RequestToJoinCommunity) Validate() error
type ShareCommunity ¶
type ShareCommunity struct {}
func (*ShareCommunity) Validate ¶
func (j *ShareCommunity) Validate() error
Click to show internal directories.
Click to hide internal directories.