Documentation ¶
Index ¶
- func NewAPI(h Handler, noun string) (*lambgoAPI, error)
- func NewRestClient(url string, headers http.Header, exec Executor) client
- type Executor
- type Handler
- func (h Handler) BasicCheck(c echo.Context) error
- func (h Handler) Create(c echo.Context) error
- func (h Handler) Delete(c echo.Context) error
- func (h Handler) Execute(c echo.Context) error
- func (h Handler) Read(c echo.Context) error
- func (h Handler) ReadAll(c echo.Context) error
- func (h Handler) Update(c echo.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Handler ¶
type Handler struct { Creator interface { Create(c any) (any, error) } Reader interface { Read(id any) (any, error) ReadAll(limit, marker any) ([]any, error) } Updater interface { Update(r any) (any, error) } Deleter interface { Delete(id any) error } Executor interface { Execute(e any) (any, error) Action() string } }
func (Handler) BasicCheck ¶
BasicCheck - basic health check response
Click to show internal directories.
Click to hide internal directories.