Documentation ¶
Index ¶
- Variables
- type HTTPHandler
- func (h *HTTPHandler) AddFilter(c echo.Context) error
- func (h *HTTPHandler) DeleteAssetByID(c echo.Context) error
- func (h *HTTPHandler) DeleteAssetByName(c echo.Context) error
- func (h *HTTPHandler) DeleteFilter(c echo.Context) error
- func (h *HTTPHandler) LoadAsset(c echo.Context) error
- func (h *HTTPHandler) LoadAssets(c echo.Context) error
- func (h *HTTPHandler) LoadFilter(c echo.Context) error
- func (h *HTTPHandler) SaveAsset(c echo.Context) error
- type Service
- func (s *Service) DeleteAssetByID(ctx context.Context, network string, ID string) (err error)
- func (s *Service) DeleteAssetByName(ctx context.Context, network string, name string) (err error)
- func (s *Service) LoadAsset(ctx context.Context, network string, ID string) (asset *registry.Asset, err error)
- func (s *Service) LoadAssets(ctx context.Context, network string, IDs ...string) (assets []*registry.Asset, err error)
- func (s *Service) SaveAsset(ctx context.Context, network string, asset *registry.Asset) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type HTTPHandler ¶
type HTTPHandler struct {
// contains filtered or unexported fields
}
func NewHTTPHandler ¶
func NewHTTPHandler(service registry.Service, logger *zap.SugaredLogger) *HTTPHandler
func (*HTTPHandler) DeleteAssetByID ¶
func (h *HTTPHandler) DeleteAssetByID(c echo.Context) error
func (*HTTPHandler) DeleteAssetByName ¶
func (h *HTTPHandler) DeleteAssetByName(c echo.Context) error
func (*HTTPHandler) DeleteFilter ¶
func (h *HTTPHandler) DeleteFilter(c echo.Context) error
func (*HTTPHandler) LoadAssets ¶
func (h *HTTPHandler) LoadAssets(c echo.Context) error
func (*HTTPHandler) LoadFilter ¶
func (h *HTTPHandler) LoadFilter(c echo.Context) error
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) DeleteAssetByID ¶
func (*Service) DeleteAssetByName ¶
func (*Service) LoadAssets ¶
Click to show internal directories.
Click to hide internal directories.