Documentation
¶
Index ¶
- type Cases
- type Community
- func (c *Community) ConnectCommunityWithTGChat(ctx context.Context, actorTGID int64, communityID string, tgChatID int64) error
- func (c *Community) Create(ctx Context, community *domain.CreateCommunity) (*domain.Community, error)
- func (c *Community) GetByID(ctx Context, id string) (*domain.Community, error)
- func (c *Community) GetMember(ctx Context, communityID, memberID string) (*domain.Member, error)
- func (c *Community) GetPreviewByID(ctx Context, id string) (*domain.Community, error)
- func (c *Community) GetPreviewByTGID(ctx context.Context, tgID int64) (*domain.Community, error)
- func (c *Community) GetPreviews(ctx Context) ([]*domain.Community, error)
- func (c *Community) IsMember(ctx Context, communityID string) (bool, error)
- func (c *Community) JoinCommunity(ctx Context, communityID string, config *domain.MemberConfig) error
- func (c *Community) LeaveCommunity(ctx Context, communityID string) error
- func (c *Community) MigrateTGChatID(ctx context.Context, oldTGID, newTGID int64) error
- func (c *Community) Patch(ctx Context, community *domain.PatchCommunity) (*domain.Community, error)
- func (c *Community) PatchMember(ctx Context, communityID string, member *domain.PatchMember) error
- func (c *Community) SetAvatar(ctx Context, communityID string, avatar []byte) (string, error)
- func (c *Community) SyncCommunityWithTGChat(ctx context.Context, tgChatID int64) error
- type Context
- type Search
- type User
- func (u *User) Create(ctx context.Context, userTGData *domain.UserTGData) (*domain.User, error)
- func (u *User) Delete(ctx Context, userID string) error
- func (u *User) GetByTGData(ctx context.Context, tgData *domain.UserTGData) (*domain.User, error)
- func (u *User) GetMeProfile(ctx Context) (*domain.UserProfile, error)
- func (u *User) GetProfile(ctx Context, userID string) (*domain.UserProfile, error)
- func (u *User) Patch(ctx context.Context, user *domain.PatchUser) (*domain.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Community ¶
type Community struct {
// contains filtered or unexported fields
}
func NewCommunity ¶
func (*Community) ConnectCommunityWithTGChat ¶
func (*Community) GetPreviewByID ¶
func (*Community) GetPreviewByTGID ¶
func (*Community) GetPreviews ¶
func (*Community) JoinCommunity ¶
func (*Community) LeaveCommunity ¶
func (*Community) MigrateTGChatID ¶
func (*Community) PatchMember ¶
type Search ¶
type Search struct {
// contains filtered or unexported fields
}
func (*Search) SearchCommunities ¶
type User ¶
type User struct {
// contains filtered or unexported fields
}
func (*User) GetByTGData ¶
func (*User) GetMeProfile ¶
func (u *User) GetMeProfile(ctx Context) (*domain.UserProfile, error)
func (*User) GetProfile ¶
Click to show internal directories.
Click to hide internal directories.