handler

package
v0.0.0-...-93092f2 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Addr string
	Hugo hugo.Hugo
}

Server handles the webhook request from Strapi.

func (Server) HandleStrapiWebhook

func (s Server) HandleStrapiWebhook(ctx echo.Context) error

HandleStrapiWebhook handles the incoming webhook from Strapi and rebuilds Hugo when it encounters any change within Strapi.

func (Server) ListenAndServe

func (s Server) ListenAndServe()

ListenAndServe listens on the port specified and then calls Serve with handler to handle requests on incoming connections.

Jump to

Keyboard shortcuts

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