Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Handler ¶
type Handler[TK any, T any] struct { Service IService[TK, T] Logger *zap.SugaredLogger }
type IHandler ¶
type IHandler[TK any, T any] interface { Get(c *fiber.Ctx) error Create(c *fiber.Ctx) error Delete(c *fiber.Ctx) error List(c *fiber.Ctx) error }
func NewHandler ¶
type IService ¶
type IService[TK any, T any] interface { Get(id TK) (*T, error) Create(obj *T) error Delete(id TK) error List(start, limit int) ([]T, error) }
func NewService ¶
type IStore ¶
Click to show internal directories.
Click to hide internal directories.