Documentation
¶
Index ¶
- func InitGatewayManager() error
- func InitGatewayManagerMock() error
- type GatewayConnState
- type GatewayManager
- func (g *GatewayManager) CheckGatewayConnect(gatewayId string) (bool, common.TxResultValue)
- func (g *GatewayManager) GatewayRegister(gatewayInfo *common.GatewayInfo) (string, error)
- func (g *GatewayManager) GatewayUpdate(gatewayInfo *common.GatewayInfo) (string, error)
- func (g *GatewayManager) GetGatewayInfo(gatewayId string) (*common.GatewayInfo, error)
- func (g *GatewayManager) GetGatewayInfoByRange(startGatewayId, stopGatewayId string) ([]*common.GatewayInfo, error)
- func (g *GatewayManager) GetGatewayNum() (uint64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GatewayConnState ¶
GatewayConnState gateway的连接状态
type GatewayManager ¶
type GatewayManager struct {
// contains filtered or unexported fields
}
GatewayManager 网关管理模块结构体
var GatewayV1 *GatewayManager
GatewayV1 网关管理模块全局变量
func (*GatewayManager) CheckGatewayConnect ¶
func (g *GatewayManager) CheckGatewayConnect(gatewayId string) (bool, common.TxResultValue)
CheckGatewayConnect 检查gateway的连通性
@receiver g @param gatewayId @return bool @return common.TxResultValue
func (*GatewayManager) GatewayRegister ¶
func (g *GatewayManager) GatewayRegister(gatewayInfo *common.GatewayInfo) (string, error)
GatewayRegister 网关注册
@receiver g @param gatewayInfo @return string @return error
func (*GatewayManager) GatewayUpdate ¶
func (g *GatewayManager) GatewayUpdate(gatewayInfo *common.GatewayInfo) (string, error)
GatewayUpdate 网关更新
@receiver g @param gatewayInfo @return string @return error
func (*GatewayManager) GetGatewayInfo ¶
func (g *GatewayManager) GetGatewayInfo(gatewayId string) (*common.GatewayInfo, error)
GetGatewayInfo 获取网关
@receiver g @param gatewayId @return *common.GatewayInfo @return error
func (*GatewayManager) GetGatewayInfoByRange ¶
func (g *GatewayManager) GetGatewayInfoByRange(startGatewayId, stopGatewayId string) ([]*common.GatewayInfo, error)
GetGatewayInfoByRange 根据范围获取网关
@receiver g @param startGatewayId @param stopGatewayId @return []*common.GatewayInfo @return error
func (*GatewayManager) GetGatewayNum ¶
func (g *GatewayManager) GetGatewayNum() (uint64, error)
GetGatewayNum 获取网关数量
@receiver g @return uint64 @return error
Click to show internal directories.
Click to hide internal directories.