Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ApiResponseFactory = new(apiResponseAlias)
View Source
var DefaultPageTitle = "" // Set in main.go
Functions ¶
This section is empty.
Types ¶
type ApiResponse ¶
type Done ¶
type Done = bool
Done is an alias for bool that indicates whether a goroutine is done. This is to have clarity between a bool result and a done indicator.
type HandlerInitContext ¶
HandlerInitContext is passed to the Initialize method of a HandlerRegistrar
type HandlerRegistrar ¶
type HandlerRegistrar interface { Handler(engine *gin.Engine) Initialize(initContext *HandlerInitContext) }
type MetaData ¶
MetaData contains SEO information for a page PageTitle: The title of the page (defaults to website name) PageDescription: The description of the page (optional) PageImage: The image to be used when sharing the page (optional)
type StructuredPageData ¶
StructuredPageData provides a structured way to pass data to a page Meta: SEO information for the page Data: Any data required by the page
func NewStructurePageData ¶
func NewStructurePageData(data map[string]interface{}, meta *MetaData) StructuredPageData
Click to show internal directories.
Click to hide internal directories.