Files
iotlcm/upstream-chan/internal/pub/xjpubservice/info.go

61 lines
1.6 KiB
Go

// ================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// You can delete these comments if you wish manually maintain this interface file.
// ================================================================================
package xjpubservice
import (
"git.5iot.com/iotlcm-public/iotlcm-upstream-chan/internal/pub/xjpubmodel"
)
type (
IInfo interface {
GetInfo() *xjpubmodel.InfoModel
SetInfoName(Type string, Name string, Title string, Description string)
SetInfoBuild(buildVersion string, buildTime string, commitID string)
SetInfoData(data map[string]interface{})
GetInfoData() map[string]interface{}
AddInfoData(key string, value interface{})
DelInfoData(key string)
GetInfoDataByKey(key string) interface{}
}
IInfoRpc interface {
GetInfo() *xjpubmodel.InfoModel
SetInfoName(Type string, Name string, Title string, Description string)
SetInfoBuild(buildVersion string, buildTime string, commitID string)
SetInfoData(data map[string]interface{})
GetInfoData() map[string]interface{}
AddInfoData(key string, value interface{})
DelInfoData(key string)
GetInfoDataByKey(key string) interface{}
}
)
var (
localInfo IInfo
localInfoRpc IInfoRpc
)
func Info() IInfo {
if localInfo == nil {
panic("implement not found for interface IInfo, forgot register?")
}
return localInfo
}
func RegisterInfo(i IInfo) {
localInfo = i
}
func InfoRpc() IInfoRpc {
if localInfoRpc == nil {
panic("implement not found for interface IInfoRpc, forgot register?")
}
return localInfoRpc
}
func RegisterInfoRpc(i IInfoRpc) {
localInfoRpc = i
}