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 ¶
func (pc PublishController) Handle(w http.ResponseWriter, r *http.Request)
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.
Click to show internal directories.
Click to hide internal directories.