handlers

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSitesHandler

func NewSitesHandler(sitesCtrl ports.Sites, filesCtrl ports.Files) *sitesHandler

NewSitesHandler creates a new SitesHandler with the given Sites controller.

Types

type CreateSiteInput

type CreateSiteInput struct {
	Body struct {
		Name string `body:"name" json:"name" example:"fizzy-buzzy" doc:"The name of the site (e.g. fizzy-buzzy)."`
	}
}

CreateSiteInput is the input for the CreateSite operation.

type CreateSiteOutput

type CreateSiteOutput struct {
	Body *models.Site
}

CreateSiteOutput is the output for the CreateSite operation.

type GetSiteInput

type GetSiteInput struct {
	// Name is the name of the site to retrieve.
	Name string `json:"name" query:"name" example:"my-site" doc:"The name of the site to retrieve."`
}

GetSiteInput is the input for the GetSite operation.

type GetSiteOutput

type GetSiteOutput struct {
	Body GetSiteOutputBody `json:"body"`
}

GetSiteOutput is the output for the GetSite operation.

type GetSiteOutputBody added in v0.3.0

type GetSiteOutputBody struct {
	Site models.Site `json:"site"`
}

GetSiteOutputBody is the body of the GetSite output.

type UploadFileInput added in v0.3.0

type UploadFileInput struct {
	ID       string `path:"siteId" json:"siteId" example:"1bd3f34f-8d15-4818-816e-6fe6c0a3a847" doc:"The ID of the site."`
	Filename string `query:"fileName" json:"fileName" example:"index.html" doc:"The filename of the file."`
	RawBody  []byte
}

UploadFileInput is the input for the UploadFile operation.

type UploadFileOutput added in v0.3.0

type UploadFileOutput struct {
	Body string `json:"body"`
}

UploadFileOutput is the output of the UploadFile operation.

Jump to

Keyboard shortcuts

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