handlers

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSitesHandler

func NewSitesHandler(ctrl ports.Sites) *sitesHandler

NewSitesHandler creates a new SitesHandler with the given Sites controller.

Types

type CreateSiteInput

type CreateSiteInput struct {
	Name string `path:"siteName" json:"name" example:"fizz-buzz"`
}

CreateSiteInput is the input for the CreateSite operation.

type CreateSiteOutput

type CreateSiteOutput struct{}

CreateSiteOutput is the output for the PutSite operation.

type GetSiteInput

type GetSiteInput struct {
	Name string `path:"siteName" json:"name" example:"fizz-buzz"`
}

GetSiteInput is the input for the GetSite operation.

type GetSiteOutput

type GetSiteOutput struct{}

GetSiteOutput is the output for the GetSite operation.

type PutSiteFileInput

type PutSiteFileInput struct {
	SiteName string `path:"siteName" json:"siteName" example:"fizz-buzz" required:"true"`
	Path     string `path:"path" json:"path" example:"index.html" required:"true"`
	RawBody  []byte `contentType:"application/octet-stream" body:"body" json:"body" example:""`
}

PutSiteFileInput is the input for the PutSiteFile operation.

type PutSiteFileOutput

type PutSiteFileOutput struct{}

PutSiteFileOutput is the output for the PutSiteFile operation.

Jump to

Keyboard shortcuts

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