Documentation ¶
Index ¶
- Variables
- type Handler
- func (h Handler[T, TShort, TInput]) Create(parent T, m TInput) error
- func (h Handler[T, TShort, TInput]) Delete(query T, force bool) error
- func (h Handler[T, TShort, TInput]) GetMany(page, size int, order string, filters map[string]any) ([]TShort, error)
- func (h Handler[T, TShort, TInput]) GetOne(query T) (T, error)
- func (h Handler[T, TShort, TInput]) Update(selector T, m TInput) error
- type IHandler
- type State
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler[T, TShort, TInput any] struct { // contains filtered or unexported fields }
type IHandler ¶
type IHandler[T, TShort, TInput any] interface { GetMany(page, size int, order string, filters map[string]any) ([]TShort, error) Create(parent T, m TInput) error GetOne(selector T) (T, error) Update(selector T, m TInput) error Delete(selector T, force bool) error }
func NewHandler ¶
type State ¶
type State struct {
// contains filtered or unexported fields
}
func (*State) HealthyHandler ¶
func (s *State) HealthyHandler() gin.HandlerFunc
@Summary Check liveness @ID healthy @Tags probes @Success 200 {string} OK @Failure 503 {string} NOT OK @Router /-/healthy [get]
func (*State) NotHealthy ¶
func (s *State) NotHealthy()
func (*State) ReadyHandler ¶
func (s *State) ReadyHandler() gin.HandlerFunc
@Summary Check readiness @ID ready @Tags probes @Success 200 {string} OK @Failure 503 {string} NOT OK @Router /-/ready [get]
Click to show internal directories.
Click to hide internal directories.