Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseGroup ¶
type BaseGroup struct {
Id int `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
Owner GroupUser `json:"owner"`
Shout struct {
Body string `json:"body"`
Poster GroupUser `json:"poster"`
Created time.Time `json:"created"`
Updated time.Time `json:"updated"`
}
Count int `json:"memberCount"`
Locked bool `json:"isLocked"`
Verified bool `json:"hasVerifiedBadge"`
}
type BaseMember ¶
type BaseUser ¶
type BaseUser struct {
MinimalUser
Verified bool `json:"hasVerifiedBadge"`
MembershipType int `json:"buildersClubMembershipType"`
}
type Group ¶
type Group struct {
BaseGroup
// contains filtered or unexported fields
}
func (*Group) GetMembers ¶
func (g *Group) GetMembers() (*Pagination[BaseMember], error)
type MinimalUser ¶
type MinimalUser struct {
Id int `json:"id"`
Name string `json:"name"`
DisplayName string `json:"displayName"`
}
MinimalUser represents a minimal user object. This is used for authentication purposes.
type Pagination ¶
type Pagination[T any] struct { Data []T `json:"data"` NextCursor string `json:"nextPageCursor"` PreviousCursor string `json:"previousPageCursor"` URL string // contains filtered or unexported fields }
func (*Pagination[T]) Next ¶
func (p *Pagination[T]) Next() (*Pagination[T], error)
func (*Pagination[T]) Previous ¶
func (p *Pagination[T]) Previous() (*Pagination[T], error)
Click to show internal directories.
Click to hide internal directories.