controllers

package
v0.0.0-...-fd5b8e0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PublishController

type PublishController struct {
	Environment *config.Environment
}

PublishController is the struct that will handle the /publish endpoint.

func NewPublishController

func NewPublishController(env *config.Environment) *PublishController

NewPublishController is the constructor for the PublishController struct.

func (PublishController) Handle

Handle is the function that will be called when a request is made to the /publish endpoint.

type StatusController

type StatusController struct {
	Environment *config.Environment
}

StatusController is the struct that will handle the /status endpoint.

func NewStatusController

func NewStatusController(env *config.Environment) *StatusController

NewStatusController is the constructor for the StatusController struct.

func (StatusController) Handle

func (sc StatusController) Handle(w http.ResponseWriter, _ *http.Request)

Handle is the function that will be called when a request is made to the /status endpoint.

Jump to

Keyboard shortcuts

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