Documentation ¶
Index ¶
- Constants
- func CreateApp(dsn string, gatewayURL string, indexer *indexer.Indexer) http.HandlerFunc
- func CreateRelease(dsn string, gatewayURL string, indexer *indexer.Indexer) http.HandlerFunc
- func GetAccount(dsn string) http.HandlerFunc
- func GetApp(dsn string) http.HandlerFunc
- func GetUser(dsn string) http.HandlerFunc
- func Mount(r chi.Router, conf *config.Config) error
- func RegisterAccount(dsn string, registrationEnabled bool) http.HandlerFunc
- func SearchApps(dsn string, indexer *indexer.Indexer) http.HandlerFunc
Constants ¶
View Source
const ( ErrCodeBadRequest api.ErrorCode = "bad-request" ErrCodeNotFound api.ErrorCode = "not-found" ErrCodeInternalServerError api.ErrorCode = "internal-server-error" ErrCodeAccountAlreadyExists api.ErrorCode = "account-already-exists" ErrCodeAppAlreadyExists api.ErrorCode = "app-already-exists" ErrCodeReleaseAlreadyExists api.ErrorCode = "release-already-exists" ErrCodeStalledVersion api.ErrorCode = "stalled-version" ErrCodeForbidden api.ErrorCode = "forbidden" ErrCodeRegistrationDisabled api.ErrorCode = "registration-disabled" )
Variables ¶
This section is empty.
Functions ¶
func CreateRelease ¶
func GetAccount ¶
func GetAccount(dsn string) http.HandlerFunc
func GetApp ¶
func GetApp(dsn string) http.HandlerFunc
func GetUser ¶
func GetUser(dsn string) http.HandlerFunc
func RegisterAccount ¶
func RegisterAccount(dsn string, registrationEnabled bool) http.HandlerFunc
func SearchApps ¶
func SearchApps(dsn string, indexer *indexer.Indexer) http.HandlerFunc
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.