Documentation
¶
Index ¶
- type GatewayAPI
- func (gw *GatewayAPI) ClearSleepingQueue(gatewayID, nodeID string) error
- func (gw *GatewayAPI) Delete(ids []string) (int64, error)
- func (gw *GatewayAPI) Disable(ids []string) error
- func (gw *GatewayAPI) Enable(ids []string) error
- func (gw *GatewayAPI) Get(filters []storageTY.Filter) (*gwTY.Config, error)
- func (gw *GatewayAPI) GetByID(id string) (*gwTY.Config, error)
- func (gw *GatewayAPI) GetByIDs(ids []string) ([]gwTY.Config, error)
- func (gw *GatewayAPI) GetEntityInterface() interface{}
- func (gw *GatewayAPI) GetGatewaySleepingQueue(gatewayID string) (map[string][]msgTY.Message, error)
- func (gw *GatewayAPI) GetNodeSleepingQueue(gatewayID, nodeID string) ([]msgTY.Message, error)
- func (gw *GatewayAPI) Import(data interface{}) error
- func (gw *GatewayAPI) List(filters []storageTY.Filter, pagination *storageTY.Pagination) (*storageTY.Result, error)
- func (gw *GatewayAPI) LoadAll()
- func (gw *GatewayAPI) Reload(ids []string) error
- func (gw *GatewayAPI) Save(gwCfg *gwTY.Config) error
- func (gw *GatewayAPI) SaveAndReload(gwCfg *gwTY.Config) error
- func (gw *GatewayAPI) SetState(id string, state *types.State) error
- func (gw *GatewayAPI) Start(gwCfg *gwTY.Config) error
- func (gw *GatewayAPI) Stop(gwCfg *gwTY.Config) error
- func (gw *GatewayAPI) UnloadAll()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GatewayAPI ¶
type GatewayAPI struct {
// contains filtered or unexported fields
}
func New ¶
func New(ctx context.Context, logger *zap.Logger, storage storageTY.Plugin, enc *encryptionAPI.Encryption, bus busTY.Plugin) *GatewayAPI
func (*GatewayAPI) ClearSleepingQueue ¶
func (gw *GatewayAPI) ClearSleepingQueue(gatewayID, nodeID string) error
func (*GatewayAPI) Delete ¶
func (gw *GatewayAPI) Delete(ids []string) (int64, error)
Delete gateway
func (*GatewayAPI) GetByID ¶
func (gw *GatewayAPI) GetByID(id string) (*gwTY.Config, error)
GetByID returns a gateway details
func (*GatewayAPI) GetByIDs ¶
func (gw *GatewayAPI) GetByIDs(ids []string) ([]gwTY.Config, error)
GetByIDs returns a gateway details by id
func (*GatewayAPI) GetEntityInterface ¶
func (gw *GatewayAPI) GetEntityInterface() interface{}
func (*GatewayAPI) GetGatewaySleepingQueue ¶
returns a sleeping queue from a gateway
func (*GatewayAPI) GetNodeSleepingQueue ¶
func (gw *GatewayAPI) GetNodeSleepingQueue(gatewayID, nodeID string) ([]msgTY.Message, error)
returns a sleeping queue from a node
func (*GatewayAPI) Import ¶
func (gw *GatewayAPI) Import(data interface{}) error
func (*GatewayAPI) List ¶
func (gw *GatewayAPI) List(filters []storageTY.Filter, pagination *storageTY.Pagination) (*storageTY.Result, error)
List by filter and pagination
func (*GatewayAPI) SaveAndReload ¶
func (gw *GatewayAPI) SaveAndReload(gwCfg *gwTY.Config) error
SaveAndReload gateway
Click to show internal directories.
Click to hide internal directories.