Documentation ¶
Index ¶
- Variables
- type AcceptRequestToJoinCommunity
- type BanUserFromCommunity
- type ClearHistory
- type CreateCommunity
- type CreateOneToOneChat
- type CreateProfileChat
- type CreatePublicChat
- type DeactivateChat
- type DeclineRequestToJoinCommunity
- type EditCommunity
- type InviteUsersToCommunity
- 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 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 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 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 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 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 InviteUsersToCommunity ¶
type InviteUsersToCommunity struct { CommunityID types.HexBytes `json:"communityId"` Users []types.HexBytes `json:"users"` }
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
Source Files ¶
- accept_request_to_join_community.go
- ban_user_from_community.go
- clear_history.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
- edit_community.go
- invite_users_to_community.go
- request_to_join_community.go
- share_community.go
Click to show internal directories.
Click to hide internal directories.