Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ProviderHandler ¶
type ProviderHandler struct {
P provider.ProviderRepository
}
func NewProviderHandler ¶
func NewProviderHandler() *ProviderHandler
func (*ProviderHandler) SetupRoutes ¶
func (P *ProviderHandler) SetupRoutes(router *gin.RouterGroup)
SetupRoutes Define the (sub)routes handled by JSONDecoratorHandler
type ProviderRequestValidator ¶
type ProviderRequestValidator struct { Provider struct { Description string `json:"description" binding:"max=512"` Images []string `json:"images" binding:"max=10,dive,url"` } `json:"provider"` ProviderModel provider.Provider `json:"-"` }
func NewProviderValidator ¶
func NewProviderValidator() ProviderRequestValidator
type ProviderSerializer ¶
func (*ProviderSerializer) Response ¶
func (p *ProviderSerializer) Response() api.ProviderResponse
Click to show internal directories.
Click to hide internal directories.