Documentation ¶
Index ¶
- type ACL
- func (acl *ACL) Alias() string
- func (acl *ACL) As(alias string) *ACL
- func (acl *ACL) Fields() *database.ModelFields
- func (acl *ACL) Mode() AccessMode
- func (acl *ACL) QueryWithCursor(ctx context.Context, runner sq.BaseRunner, q sq.SelectBuilder, ...) ([]*ACL, *model.Cursor)
- func (acl *ACL) Table() string
- type Repository
- func (r *Repository) Alias() string
- func (r *Repository) As(alias string) *Repository
- func (r *Repository) DefaultSearch(query sq.SelectBuilder, term string) (sq.SelectBuilder, error)
- func (r *Repository) ExecuteCommand(ctx context.Context, args ...string) (string, error)
- func (r *Repository) Fields() *database.ModelFields
- func (r *Repository) QueryWithCursor(ctx context.Context, runner sq.BaseRunner, q sq.SelectBuilder, ...) ([]*Repository, *model.Cursor)
- func (r *Repository) Table() string
- type Revision
- type User
- type UserWebhookSubscription
- func (sub *UserWebhookSubscription) Alias() string
- func (sub *UserWebhookSubscription) As(alias string) *UserWebhookSubscription
- func (sub *UserWebhookSubscription) Fields() *database.ModelFields
- func (UserWebhookSubscription) IsWebhookSubscription()
- func (sub *UserWebhookSubscription) QueryWithCursor(ctx context.Context, runner sq.BaseRunner, q sq.SelectBuilder, ...) ([]WebhookSubscription, *model.Cursor)
- func (sub *UserWebhookSubscription) Table() string
- type WebhookDelivery
- func (whd *WebhookDelivery) Alias() string
- func (whd *WebhookDelivery) As(alias string) *WebhookDelivery
- func (whd *WebhookDelivery) Fields() *database.ModelFields
- func (whd *WebhookDelivery) QueryWithCursor(ctx context.Context, runner sq.BaseRunner, q sq.SelectBuilder, ...) ([]*WebhookDelivery, *model.Cursor)
- func (whd *WebhookDelivery) Table() string
- func (whd *WebhookDelivery) WithName(name string) *WebhookDelivery
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ACL ¶
type ACL struct { ID int `json:"id"` Created time.Time `json:"created"` RawAccessMode string RepoID int UserID int // contains filtered or unexported fields }
TODO: Drop updated column from database
func (*ACL) Fields ¶
func (acl *ACL) Fields() *database.ModelFields
func (*ACL) QueryWithCursor ¶
type Repository ¶
type Repository struct { ID int `json:"id"` Created time.Time `json:"created"` Updated time.Time `json:"updated"` Name string `json:"name"` Description *string `json:"description"` Readme *string `json:"readme"` NonPublishing bool `json:"nonPublishing"` Path string OwnerID int Visibility Visibility // contains filtered or unexported fields }
func (*Repository) Alias ¶
func (r *Repository) Alias() string
func (*Repository) As ¶
func (r *Repository) As(alias string) *Repository
func (*Repository) DefaultSearch ¶
func (r *Repository) DefaultSearch(query sq.SelectBuilder, term string) (sq.SelectBuilder, error)
func (*Repository) ExecuteCommand ¶
Get the mercurial server process pool from the given context, acquire an available process, run a command on it, return the output
func (*Repository) Fields ¶
func (r *Repository) Fields() *database.ModelFields
func (*Repository) QueryWithCursor ¶
func (r *Repository) QueryWithCursor(ctx context.Context, runner sq.BaseRunner, q sq.SelectBuilder, cur *model.Cursor) ([]*Repository, *model.Cursor)
func (*Repository) Table ¶
func (r *Repository) Table() string
type Revision ¶
type User ¶
type User struct { ID int `json:"id"` Created time.Time `json:"created"` Updated time.Time `json:"updated"` Username string `json:"username"` Email string `json:"email"` URL *string `json:"url"` Location *string `json:"location"` Bio *string `json:"bio"` // contains filtered or unexported fields }
func (*User) Fields ¶
func (u *User) Fields() *database.ModelFields
type UserWebhookSubscription ¶
type UserWebhookSubscription struct { ID int `json:"id"` Events []WebhookEvent `json:"events"` Query string `json:"query"` URL string `json:"url"` UserID int AuthMethod string ClientID *string TokenHash *string Expires *time.Time Grants *string NodeID *string // contains filtered or unexported fields }
func (*UserWebhookSubscription) Alias ¶
func (sub *UserWebhookSubscription) Alias() string
func (*UserWebhookSubscription) As ¶
func (sub *UserWebhookSubscription) As(alias string) *UserWebhookSubscription
func (*UserWebhookSubscription) Fields ¶
func (sub *UserWebhookSubscription) Fields() *database.ModelFields
func (UserWebhookSubscription) IsWebhookSubscription ¶
func (UserWebhookSubscription) IsWebhookSubscription()
func (*UserWebhookSubscription) QueryWithCursor ¶
func (sub *UserWebhookSubscription) QueryWithCursor(ctx context.Context, runner sq.BaseRunner, q sq.SelectBuilder, cur *model.Cursor) ([]WebhookSubscription, *model.Cursor)
func (*UserWebhookSubscription) Table ¶
func (sub *UserWebhookSubscription) Table() string
type WebhookDelivery ¶
type WebhookDelivery struct { UUID string `json:"uuid"` Date time.Time `json:"date"` Event WebhookEvent `json:"event"` RequestBody string `json:"requestBody"` ResponseBody *string `json:"responseBody"` ResponseHeaders *string `json:"responseHeaders"` ResponseStatus *int `json:"responseStatus"` ID int SubscriptionID int Name string // contains filtered or unexported fields }
func (*WebhookDelivery) Alias ¶
func (whd *WebhookDelivery) Alias() string
func (*WebhookDelivery) As ¶
func (whd *WebhookDelivery) As(alias string) *WebhookDelivery
func (*WebhookDelivery) Fields ¶
func (whd *WebhookDelivery) Fields() *database.ModelFields
func (*WebhookDelivery) QueryWithCursor ¶
func (whd *WebhookDelivery) QueryWithCursor(ctx context.Context, runner sq.BaseRunner, q sq.SelectBuilder, cur *model.Cursor) ([]*WebhookDelivery, *model.Cursor)
func (*WebhookDelivery) Table ¶
func (whd *WebhookDelivery) Table() string
func (*WebhookDelivery) WithName ¶
func (whd *WebhookDelivery) WithName(name string) *WebhookDelivery
Click to show internal directories.
Click to hide internal directories.