Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToMap ¶
func ConvertToMap(data interface{}) map[string]interface{}
func FromDuration ¶
FromDuration returns a friendly string representing an approximation of the given duration
Types ¶
type CustomValidator ¶
type CustomValidator struct {
Validator *validator.Validate
}
CustomValidator payload validation
func (*CustomValidator) Validate ¶
func (cv *CustomValidator) Validate(i interface{}) error
Validate payload
type GeneralPayload ¶
type GeneralPayload struct { Payload interface{} Authenticated string Nick string Template string TemplateID string ServerURL string }
GeneralPayload structure to extend any payload
type TemplateRenderer ¶
type TemplateRenderer struct {
// contains filtered or unexported fields
}
TemplateRenderer is a custom html/template renderer for Echo framework
func CreateTemplateRenderer ¶
func CreateTemplateRenderer() *TemplateRenderer
CreateTemplateRenderer return a renderer with all the templates views
Click to show internal directories.
Click to hide internal directories.