Documentation
¶
Overview ¶
Package router Volume-Manager API
Volume-Manager service stores volumes and storage and allows to manage them
Version: 0.0.1 Consumes: - application/json Produces: - application/json
swagger:meta
Index ¶
- type Router
- type TranslateValidate
- func (tv *TranslateValidate) BadRequest(ctx *gin.Context, err error) (int, *cherry.Err)
- func (tv *TranslateValidate) HandleError(err error) (int, *cherry.Err)
- func (tv *TranslateValidate) ValidateHeaders(headerTagMap map[string]string) gin.HandlerFunc
- func (tv *TranslateValidate) ValidateURLParams(paramTagMap map[string]string) gin.HandlerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
func NewRouter ¶
func NewRouter(engine gin.IRouter, status *model.ServiceStatus, tv *TranslateValidate) *Router
func (*Router) SetupStorageHandlers ¶
func (r *Router) SetupStorageHandlers(acts server.StorageActions)
func (*Router) SetupVolumeHandlers ¶
func (r *Router) SetupVolumeHandlers(acts server.VolumeActions)
type TranslateValidate ¶
type TranslateValidate struct { *ut.UniversalTranslator *validator.Validate }
func (*TranslateValidate) BadRequest ¶
func (*TranslateValidate) HandleError ¶
func (tv *TranslateValidate) HandleError(err error) (int, *cherry.Err)
func (*TranslateValidate) ValidateHeaders ¶
func (tv *TranslateValidate) ValidateHeaders(headerTagMap map[string]string) gin.HandlerFunc
func (*TranslateValidate) ValidateURLParams ¶
func (tv *TranslateValidate) ValidateURLParams(paramTagMap map[string]string) gin.HandlerFunc
Click to show internal directories.
Click to hide internal directories.