Files
status/router/controller/controller.go
ostiwe 7bc4ce8c96 refactor!: Use gin router instead chi router
- Removed chi dependencies
- Updated router registration logic
2025-11-04 19:20:00 +03:00

24 lines
452 B
Go

package controller
import (
"github.com/gin-gonic/gin"
"github.com/go-andiamo/chioas"
)
// SecuredController - means, controller has middlewares
// Maybe should rename it later
type SecuredController interface {
Middlewares() []gin.HandlerFunc
}
type DocumentateController interface {
Documentate() (*chioas.Paths, *chioas.Components)
}
type Controller interface {
New() Controller
Handler() gin.HandlerFunc
Method() string
Path() string
}