Documentation
¶
Overview ¶
Package apps is the HTTP adapter of the apps and their parameters: it reads the request, calls the app service and writes the result.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler serves the app routes.
func (*Handler) RegisterApp ¶
func (h *Handler) RegisterApp(r *gin.RouterGroup)
RegisterApp adds the routes of one app, below the group that resolves it.
func (*Handler) RegisterProject ¶
func (h *Handler) RegisterProject(r *gin.RouterGroup)
RegisterProject adds the routes below a project.
type Service ¶
type Service interface {
Apps(ctx context.Context, projectID uint) ([]models.App, error)
CreateApp(ctx context.Context, projectID uint, in appsvc.AppInput) (*models.App, error)
UpdateApp(ctx context.Context, sc appsvc.Scope, in appsvc.AppInput) (*models.App, error)
AddParameter(ctx context.Context, sc appsvc.Scope, in appsvc.ParameterInput) (*models.AppParameter, error)
UpdateParameter(ctx context.Context, ref appsvc.ParameterRef, in appsvc.ParameterInput) (*models.AppParameter, error)
RemoveParameter(ctx context.Context, ref appsvc.ParameterRef) error
}
Service is what the handlers call.