Files
status/router/controller/controller.go
ostiwe 5a8b53b49d feat: Add documentation generation and serve functionality
- Implement documentation generation
- Replace chi router with gin for documentation server
- Fix issues with docs command execution
2025-11-04 19:20:10 +03:00

25 lines
507 B
Go

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