Versions in this module Expand all Collapse all v0 v0.1.0 Oct 3, 2023 Changes in this version + const AcceptHeader + const GithubApiVersionHeader + const ModuleName + const OrderAscending + const OrderDescending + const Organization + const OrganizationOwned + const Push + const Repository + const UserOwned + var Roles = map[string]string + func GetOffsetLinksForPGParams(r *http.Request, p pgdb.OffsetPageParams) *resources.Links + type Link struct + Id int64 + Link string + type Links interface + Delete func() error + FilterByLinks func(links ...string) Links + Get func() (*Link, error) + Insert func(link Link) error + New func() Links + Select func() ([]Link, error) + type ModulePayload struct + AccessLevel string + Action string + Link string + Links []string + RequestId string + Type string + UserId string + Username string + type ModuleRequest struct + CreatedAt time.Time + Error string + ID string + Module string + Payload string + RequestStatus string + UserID int64 + type OrderType string + const OrderAsc + const OrderDesc + func (o OrderType) Invert() OrderType + type Permission struct + AccessLevel string + AvatarUrl string + CreatedAt time.Time + ExpiresAt time.Time + GithubId int64 + HasChild bool + HasParent bool + Link string + ParentLink *string + RequestId string + Type string + UpdatedAt time.Time + UserId *int64 + Username string + type PermissionToUpdate struct + AccessLevel *string + HasChild *bool + HasParent *bool + ParentLink *string + UpdatedAt *time.Time + UserId *int64 + Username *string + type Permissions interface + Delete func() error + FilterByGithubIds func(githubIds ...int64) Permissions + FilterByGreaterTime func(time time.Time) Permissions + FilterByHasParent func(hasParent bool) Permissions + FilterByLinks func(links ...string) Permissions + FilterByLowerTime func(time time.Time) Permissions + FilterByParentLinks func(parentLinks ...string) Permissions + FilterByTypes func(types ...string) Permissions + FilterByUsernames func(usernames ...string) Permissions + Get func() (*Permission, error) + New func() Permissions + Select func() ([]Permission, error) + Update func(permission PermissionToUpdate) error + Upsert func(permission Permission) error + type RequestParams struct + Body []byte + Header map[string]string + Link string + Method string + Query map[string]string + Timeout time.Duration + type Response struct + CreatedAt string + Error string + ID string + Payload json.RawMessage + Status string + type ResponseParams struct + Body io.ReadCloser + Header http.Header + StatusCode int + type Responses interface + Delete func() error + FilterByIds func(ids ...string) Responses + Get func() (*Response, error) + Insert func(response Response) error + New func() Responses + Select func() ([]Response, error) + type Sub struct + Id int64 + Link string + ParentId *int64 + Path string + Type string + type Subs interface + Count func() Subs + CountWithPermissions func() Subs + Delete func() error + FilterByGithubIds func(githubIds ...int64) Subs + FilterByHasParent func(level bool) Subs + FilterByIds func(ids ...int64) Subs + FilterByLinks func(links ...string) Subs + FilterByParentIds func(parentIds ...int64) Subs + FilterByParentLinks func(parentLinks ...string) Subs + FilterByUserIds func(userIds ...int64) Subs + FilterByUsernames func(usernames ...string) Subs + Get func() (*Sub, error) + GetTotalCount func() (int64, error) + New func() Subs + OrderBy func(columns ...string) Subs + Page func(pageParams pgdb.OffsetPageParams) Subs + SearchBy func(search string) Subs + Select func() ([]Sub, error) + Upsert func(sub Sub) error + WithPermissions func() Subs + type UnverifiedPayload struct + Action string + Users []UnverifiedUser + type UnverifiedUser struct + CreatedAt time.Time + Email *string + Module string + ModuleId string + Name *string + Phone *string + Submodule string + Username *string + type User struct + AccessLevel *string + AvatarUrl string + CreatedAt time.Time + GithubId int64 + Id *int64 + Submodule *string + UpdatedAt time.Time + Username string + type Users interface + Count func() Users + Delete func() error + FilterByGithubIds func(githubIds ...int64) Users + FilterById func(id *int64) Users + FilterByLowerTime func(time time.Time) Users + FilterByUsernames func(usernames ...string) Users + Get func() (*User, error) + GetTotalCount func() (int64, error) + New func() Users + Page func(pageParams pgdb.OffsetPageParams) Users + SearchBy func(search string) Users + Select func() ([]User, error) + Upsert func(user User) error