route

package
v0.0.0-...-8444db5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 18, 2022 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

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 CreateApp

func CreateApp(dsn string, gatewayURL string, indexer *indexer.Indexer) http.HandlerFunc

func CreateRelease

func CreateRelease(dsn string, gatewayURL string, indexer *indexer.Indexer) http.HandlerFunc

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 Mount

func Mount(r chi.Router, conf *config.Config) error

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL