{"modulePath":"github.com/mycontroller-org/server/v2","version":"v2.2.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package handler\n\n## Types\n\n```go\ntype HandlerAPI struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc New(ctx context.Context, logger *zap.Logger, storage storageTY.Plugin, enc *encryptionAPI.Encryption, bus busTY.Plugin) *HandlerAPI\n```\n\n```go\nfunc (h *HandlerAPI) Delete(ids []string) (int64, error)\n```\nDelete Service\n\n```go\nfunc (h *HandlerAPI) Disable(ids []string) error\n```\nDisable notifyHandler\n\n```go\nfunc (h *HandlerAPI) Enable(ids []string) error\n```\nEnable notifyHandler\n\n```go\nfunc (h *HandlerAPI) Get(f []storageTY.Filter) (handlerTY.Config, error)\n```\nGet a config\n\n```go\nfunc (h *HandlerAPI) GetByID(ID string) (*handlerTY.Config, error)\n```\nGetByID returns a handler by id\n\n```go\nfunc (h *HandlerAPI) GetByTypeName(handlerPluginType, name string) (*handlerTY.Config, error)\n```\nGetByTypeName returns a handler by type and name\n\n```go\nfunc (h *HandlerAPI) GetEntityInterface() interface{}\n```\n\n```go\nfunc (h *HandlerAPI) Import(data interface{}) error\n```\n\n```go\nfunc (h *HandlerAPI) List(filters []storageTY.Filter, pagination *storageTY.Pagination) (*storageTY.Result, error)\n```\nList by filter and pagination\n\n```go\nfunc (h *HandlerAPI) LoadAll()\n```\nLoadAll makes notifyHandlers alive\n\n```go\nfunc (h *HandlerAPI) Reload(ids []string) error\n```\nReload notifyHandler\n\n```go\nfunc (h *HandlerAPI) Save(cfg *handlerTY.Config) error\n```\nSave config\n\n```go\nfunc (h *HandlerAPI) SaveAndReload(cfg *handlerTY.Config) error\n```\nSaveAndReload handler\n\n```go\nfunc (h *HandlerAPI) SetState(id string, state *types.State) error\n```\nSetState Updates state data\n\n```go\nfunc (h *HandlerAPI) Start(cfg *handlerTY.Config) error\n```\nStart notifyHandler\n\n```go\nfunc (h *HandlerAPI) Stop(cfg *handlerTY.Config) error\n```\nStop notifyHandler\n\n```go\nfunc (h *HandlerAPI) UnloadAll()\n```\nUnloadAll makes stop all notifyHandlers\n\n","path":"github.com/mycontroller-org/server/v2/pkg/api/handler","name":"handler","synopsis":"","isRedistributable":true}
