Documentation ¶
Index ¶
- type Integrator
- func (i *Integrator) GetFormData(ctx interface{}) map[string][]string
- func (i *Integrator) GetPathParam(ctx interface{}, name string) string
- func (i *Integrator) GetQueryParam(ctx interface{}, name string) string
- func (i *Integrator) GetRequestMethod(ctx interface{}) string
- func (i *Integrator) HandleRoute(method, path string, handler admin.HandlerFunc)
- func (i *Integrator) ServeAssets(prefix string, renderer admin.TemplateRenderer)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Integrator ¶
type Integrator struct {
// contains filtered or unexported fields
}
Integrator struct wraps an Echo group to handle routes and assets for the admin panel
func NewIntegrator ¶
func NewIntegrator(g *echo.Group) *Integrator
NewIntegrator creates a new Integrator instance for the given Echo group
func (*Integrator) GetFormData ¶
func (i *Integrator) GetFormData(ctx interface{}) map[string][]string
GetFormData retrieves form data from the request context
func (*Integrator) GetPathParam ¶
func (i *Integrator) GetPathParam(ctx interface{}, name string) string
GetPathParam extracts a path parameter from the context
func (*Integrator) GetQueryParam ¶
func (i *Integrator) GetQueryParam(ctx interface{}, name string) string
GetQueryParam extracts a query parameter from the context
func (*Integrator) GetRequestMethod ¶
func (i *Integrator) GetRequestMethod(ctx interface{}) string
GetRequestMethod retrieves the HTTP request method from the context
func (*Integrator) HandleRoute ¶
func (i *Integrator) HandleRoute(method, path string, handler admin.HandlerFunc)
HandleRoute adds a route to the Echo group and uses the admin.HandlerFunc for processing requests
func (*Integrator) ServeAssets ¶
func (i *Integrator) ServeAssets(prefix string, renderer admin.TemplateRenderer)
ServeAssets serves static assets by using the provided admin.TemplateRenderer interface
Click to show internal directories.
Click to hide internal directories.