Documentation ¶
Index ¶
- Variables
- type AcceptRequestToJoinCommunity
- type BanUserFromCommunity
- type ClearHistory
- type CreateCommunity
- type CreateCommunityCategory
- type CreateOneToOneChat
- type CreateProfileChat
- type CreatePublicChat
- type DeactivateChat
- type DeclineRequestToJoinCommunity
- type DeleteCommunityCategory
- type EditCommunity
- type EditCommunityCategory
- type InviteUsersToCommunity
- type ReorderCommunityCategories
- type ReorderCommunityChat
- type RequestToJoinCommunity
- type ShareCommunity
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 ( ErrEditCommunityInvalidID = errors.New("edit-community: invalid id") ErrEditCommunityInvalidName = errors.New("edit-community: invalid name") ErrEditCommunityInvalidColor = errors.New("edit-community: invalid color") ErrEditCommunityInvalidDescription = errors.New("edit-community: invalid description") ErrEditCommunityInvalidMembership = errors.New("edit-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 ErrClearHistoryInvalidID = errors.New("clear-history: invalid id")
View Source
var ErrCreateCommunityCategoryInvalidCommunityID = errors.New("create-community-category: invalid community id")
View Source
var ErrCreateCommunityCategoryInvalidName = errors.New("create-community-category: invalid category name")
View Source
var ErrCreateOneToOneChatInvalidID = errors.New("create-one-to-one-chat: invalid id")
View Source
var ErrCreateProfileChatInvalidID = errors.New("create-public-chat: invalid id")
View Source
var ErrCreatePublicChatInvalidID = errors.New("create-public-chat: invalid id")
View Source
var ErrDeactivateChatInvalidID = errors.New("deactivate-chat: invalid id")
View Source
var ErrDeclineRequestToJoinCommunityInvalidID = errors.New("accept-request-to-join-community: invalid id")
View Source
var ErrDeleteCommunityCategoryInvalidCategoryID = errors.New("set-community-chat-category: invalid category id")
View Source
var ErrDeleteCommunityCategoryInvalidCommunityID = errors.New("set-community-chat-category: invalid community id")
View Source
var ErrEditCommunityCategoryInvalidCategoryID = errors.New("edit-community-category: invalid category id")
View Source
var ErrEditCommunityCategoryInvalidCommunityID = errors.New("edit-community-category: invalid community id")
View Source
var ErrEditCommunityCategoryInvalidName = errors.New("edit-community-category: invalid category name")
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 ErrReorderCommunityCategoryInvalidCategoryID = errors.New("edit-community-category: invalid category id")
View Source
var ErrReorderCommunityCategoryInvalidCommunityID = errors.New("edit-community-category: invalid community id")
View Source
var ErrReorderCommunityCategoryInvalidPosition = errors.New("edit-community-category: invalid position")
View Source
var ErrReorderCommunityChatInvalidCategoryID = errors.New("edit-community-category: invalid category id")
View Source
var ErrReorderCommunityChatInvalidChatID = errors.New("edit-community-category: invalid chat id")
View Source
var ErrReorderCommunityChatInvalidCommunityID = errors.New("edit-community-category: invalid community id")
View Source
var ErrReorderCommunityChatInvalidPosition = errors.New("edit-community-category: invalid position")
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 ClearHistory ¶ added in v0.79.0
type ClearHistory struct {
ID string `json:"id"`
}
func (*ClearHistory) Validate ¶ added in v0.79.0
func (c *ClearHistory) 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 CreateCommunityCategory ¶ added in v0.79.3
type CreateCommunityCategory struct { CommunityID types.HexBytes `json:"communityId"` CategoryName string `json:"categoryName"` ChatIDs []string `json:"chatIds"` }
func (*CreateCommunityCategory) Validate ¶ added in v0.79.3
func (j *CreateCommunityCategory) Validate() error
type CreateOneToOneChat ¶
func (*CreateOneToOneChat) Validate ¶
func (c *CreateOneToOneChat) Validate() error
type CreateProfileChat ¶ added in v0.79.0
type CreateProfileChat struct {
ID string `json:"id"`
}
func (*CreateProfileChat) Validate ¶ added in v0.79.0
func (c *CreateProfileChat) Validate() error
type CreatePublicChat ¶ added in v0.79.0
type CreatePublicChat struct {
ID string `json:"id"`
}
func (*CreatePublicChat) Validate ¶ added in v0.79.0
func (c *CreatePublicChat) Validate() error
type DeactivateChat ¶ added in v0.79.0
type DeactivateChat struct {
ID string `json:"id"`
}
func (*DeactivateChat) Validate ¶ added in v0.79.0
func (j *DeactivateChat) Validate() error
type DeclineRequestToJoinCommunity ¶
func (*DeclineRequestToJoinCommunity) Validate ¶
func (j *DeclineRequestToJoinCommunity) Validate() error
type DeleteCommunityCategory ¶ added in v0.79.3
type DeleteCommunityCategory struct { CommunityID types.HexBytes `json:"communityId"` CategoryID string `json:"categoryId"` }
func (*DeleteCommunityCategory) Validate ¶ added in v0.79.3
func (j *DeleteCommunityCategory) Validate() error
type EditCommunity ¶ added in v0.79.0
type EditCommunity struct { CommunityID types.HexBytes CreateCommunity }
func (*EditCommunity) Validate ¶ added in v0.79.0
func (u *EditCommunity) Validate() error
type EditCommunityCategory ¶ added in v0.79.3
type EditCommunityCategory struct { CommunityID types.HexBytes `json:"communityId"` CategoryID string `json:"categoryId"` CategoryName string `json:"categoryName"` ChatIDs []string `json:"chatIds"` }
func (*EditCommunityCategory) Validate ¶ added in v0.79.3
func (j *EditCommunityCategory) Validate() error
type InviteUsersToCommunity ¶
type InviteUsersToCommunity struct { CommunityID types.HexBytes `json:"communityId"` Users []types.HexBytes `json:"users"` }
func (*InviteUsersToCommunity) Validate ¶
func (j *InviteUsersToCommunity) Validate() error
type ReorderCommunityCategories ¶ added in v0.79.3
type ReorderCommunityCategories struct { CommunityID types.HexBytes `json:"communityId"` CategoryID string `json:"categoryId"` Position int `json:"position"` }
func (*ReorderCommunityCategories) Validate ¶ added in v0.79.3
func (j *ReorderCommunityCategories) Validate() error
type ReorderCommunityChat ¶ added in v0.79.3
type ReorderCommunityChat struct { CommunityID types.HexBytes `json:"communityId"` CategoryID string `json:"categoryId"` ChatID string `json:"chatId"` Position int `json:"position"` }
func (*ReorderCommunityChat) Validate ¶ added in v0.79.3
func (j *ReorderCommunityChat) 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
Source Files ¶
- accept_request_to_join_community.go
- ban_user_from_community.go
- clear_history.go
- create_community_category.go
- create_community_request.go
- create_one_to_one_chat.go
- create_profile_chat.go
- create_public_chat.go
- deactivate_chat.go
- decline_request_to_join_community.go
- delete_community_category.go
- edit_community.go
- edit_community_category.go
- invite_users_to_community.go
- reorder_community_category.go
- reorder_community_chat.go
- request_to_join_community.go
- share_community.go
Click to show internal directories.
Click to hide internal directories.