Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // WebhooksHTTPClientTimeout represents the timeout of the http client used // to handle the webhooks requests. WebhooksHTTPClientTimeout = 60 * time.Second )
Functions ¶
This section is empty.
Types ¶
type Handlers ¶
type Handlers struct { Router http.Handler Organizations *org.Handlers Users *user.Handlers Packages *pkg.Handlers Repositories *repo.Handlers Subscriptions *subscription.Handlers Webhooks *webhook.Handlers APIKeys *apikey.Handlers Static *static.Handlers Stats *stats.Handlers // contains filtered or unexported fields }
Handlers groups all the http handlers defined for the hub, including the router in charge of sending requests to the right handler.
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
Metrics groups some metrics collected from a Handlers instance.
type Services ¶
type Services struct { OrganizationManager hub.OrganizationManager UserManager hub.UserManager RepositoryManager hub.RepositoryManager PackageManager hub.PackageManager SubscriptionManager hub.SubscriptionManager WebhookManager hub.WebhookManager APIKeyManager hub.APIKeyManager StatsManager hub.StatsManager ImageStore img.Store Authorizer hub.Authorizer HTTPClient hub.HTTPClient OCIPuller hub.OCIPuller ViewsTracker hub.ViewsTracker }
Services is a wrapper around several internal services used by the handlers.
Click to show internal directories.
Click to hide internal directories.