Documentation ¶
Index ¶
- Constants
- func CreateSchema(db bun.IDB) error
- func Seed(db *bun.DB) error
- type CableService
- func (s *CableService) Clone(ctx context.Context, in *cores.CloneCableRequest) (*pb.MyBool, error)
- func (s *CableService) Create(ctx context.Context, in *pb.Cable) (*pb.Cable, error)
- func (s *CableService) Delete(ctx context.Context, in *pb.Id) (*pb.MyBool, error)
- func (s *CableService) Link(ctx context.Context, in *cores.LinkCableRequest) (*pb.MyBool, error)
- func (s *CableService) List(ctx context.Context, in *cores.ListCableRequest) (*cores.ListCableResponse, error)
- func (s *CableService) Pull(ctx context.Context, in *cores.PullCableRequest) (*cores.PullCableResponse, error)
- func (s *CableService) Update(ctx context.Context, in *pb.Cable) (*pb.Cable, error)
- func (s *CableService) View(ctx context.Context, in *pb.Id) (*pb.Cable, error)
- func (s *CableService) ViewByName(ctx context.Context, in *cores.ViewCableByNameRequest) (*pb.Cable, error)
- func (s *CableService) ViewByNameFull(ctx context.Context, in *pb.Name) (*pb.Cable, error)
- func (s *CableService) ViewWithDeleted(ctx context.Context, in *pb.Id) (*pb.Cable, error)
- type ControlService
- func (s *ControlService) AddClient(deviceID string, client edges.ControlServiceClient)
- func (s *ControlService) GetClient(deviceID string) types.Option[edges.ControlServiceClient]
- func (s *ControlService) GetTagValue(ctx context.Context, in *pb.Id) (*pb.TagValue, error)
- func (s *ControlService) RemoveClient(deviceID string, client edges.ControlServiceClient)
- func (s *ControlService) SetTagValue(ctx context.Context, in *pb.TagValue) (*pb.TagValue, error)
- type CoreOption
- type CoreService
- func (cs *CoreService) Context() context.Context
- func (cs *CoreService) GetCable() *CableService
- func (cs *CoreService) GetControl() *ControlService
- func (cs *CoreService) GetDB() *bun.DB
- func (cs *CoreService) GetData() *DataService
- func (cs *CoreService) GetDevice() *DeviceService
- func (cs *CoreService) GetInfluxDB() types.Option[*db.InfluxDB]
- func (cs *CoreService) GetJumper() *JumperService
- func (cs *CoreService) GetOption() *OptionService
- func (cs *CoreService) GetPort() *PortService
- func (cs *CoreService) GetProxy() *ProxyService
- func (cs *CoreService) GetSlot() *SlotService
- func (cs *CoreService) GetSource() *SourceService
- func (cs *CoreService) GetStatus() *StatusService
- func (cs *CoreService) GetSync() *SyncService
- func (cs *CoreService) GetSyncGlobal() *SyncGlobalService
- func (cs *CoreService) GetTag() *TagService
- func (cs *CoreService) GetVar() *VarService
- func (cs *CoreService) GetWire() *WireService
- func (cs *CoreService) Logger() *zap.Logger
- func (cs *CoreService) Register(server *grpc.Server)
- func (cs *CoreService) Start()
- func (cs *CoreService) Stop()
- type DataService
- func (s *DataService) CacheTagValue(tag *model.Tag, value nson.Value)
- func (s *DataService) Compile(ctx context.Context, in *cores.DataQueryRequest) (*pb.Message, error)
- func (s *DataService) Query(in *cores.DataQueryRequest, stream cores.DataService_QueryServer) error
- func (s *DataService) QueryTag(in *cores.DataQueryTagRequest, stream cores.DataService_QueryTagServer) error
- func (s *DataService) Upload(ctx context.Context, in *cores.DataUploadRequest) (*cores.DataUploadResponse, error)
- type DeviceService
- func (s *DeviceService) Clone(ctx context.Context, in *pb.Id) (*pb.MyBool, error)
- func (s *DeviceService) Create(ctx context.Context, in *pb.Device) (*pb.Device, error)
- func (s *DeviceService) Delete(ctx context.Context, in *pb.Id) (*pb.MyBool, error)
- func (s *DeviceService) Destory(ctx context.Context, in *pb.Id) (*pb.MyBool, error)
- func (s *DeviceService) Link(ctx context.Context, in *cores.LinkDeviceRequest) (*pb.MyBool, error)
- func (s *DeviceService) List(ctx context.Context, in *cores.ListDeviceRequest) (*cores.ListDeviceResponse, error)
- func (s *DeviceService) Update(ctx context.Context, in *pb.Device) (*pb.Device, error)
- func (s *DeviceService) View(ctx context.Context, in *pb.Id) (*pb.Device, error)
- func (s *DeviceService) ViewByName(ctx context.Context, in *pb.Name) (*pb.Device, error)
- type JumperService
- func (s *JumperService) Create(ctx context.Context, in *cores.Jumper) (*cores.Jumper, error)
- func (s *JumperService) Delete(ctx context.Context, in *pb.Id) (*pb.MyBool, error)
- func (s *JumperService) List(ctx context.Context, in *cores.ListJumperRequest) (*cores.ListJumperResponse, error)
- func (s *JumperService) Update(ctx context.Context, in *cores.Jumper) (*cores.Jumper, error)
- func (s *JumperService) View(ctx context.Context, in *pb.Id) (*cores.Jumper, error)
- func (s *JumperService) ViewByName(ctx context.Context, in *pb.Name) (*cores.Jumper, error)
- type OptionService
- func (s *OptionService) Clone(ctx context.Context, in *cores.CloneOptionRequest) (*pb.MyBool, error)
- func (s *OptionService) Create(ctx context.Context, in *pb.Option) (*pb.Option, error)
- func (s *OptionService) Delete(ctx context.Context, in *pb.Id) (*pb.MyBool, error)
- func (s *OptionService) List(ctx context.Context, in *cores.ListOptionRequest) (*cores.ListOptionResponse, error)
- func (s *OptionService) Pull(ctx context.Context, in *cores.PullOptionRequest) (*cores.PullOptionResponse, error)
- func (s *OptionService) Update(ctx context.Context, in *pb.Option) (*pb.Option, error)
- func (s *OptionService) View(ctx context.Context, in *pb.Id) (*pb.Option, error)
- func (s *OptionService) ViewByName(ctx context.Context, in *cores.ViewOptionByNameRequest) (*pb.Option, error)
- func (s *OptionService) ViewByNameFull(ctx context.Context, in *pb.Name) (*pb.Option, error)
- func (s *OptionService) ViewWithDeleted(ctx context.Context, in *pb.Id) (*pb.Option, error)
- type PortService
- func (s *PortService) Clone(ctx context.Context, in *cores.ClonePortRequest) (*pb.MyBool, error)
- func (s *PortService) Create(ctx context.Context, in *pb.Port) (*pb.Port, error)
- func (s *PortService) Delete(ctx context.Context, in *pb.Id) (*pb.MyBool, error)
- func (s *PortService) Link(ctx context.Context, in *cores.LinkPortRequest) (*pb.MyBool, error)
- func (s *PortService) List(ctx context.Context, in *cores.ListPortRequest) (*cores.ListPortResponse, error)
- func (s *PortService) Pull(ctx context.Context, in *cores.PullPortRequest) (*cores.PullPortResponse, error)
- func (s *PortService) Update(ctx context.Context, in *pb.Port) (*pb.Port, error)
- func (s *PortService) View(ctx context.Context, in *pb.Id) (*pb.Port, error)
- func (s *PortService) ViewByName(ctx context.Context, in *cores.ViewPortByNameRequest) (*pb.Port, error)
- func (s *PortService) ViewByNameFull(ctx context.Context, in *pb.Name) (*pb.Port, error)
- func (s *PortService) ViewWithDeleted(ctx context.Context, in *pb.Id) (*pb.Port, error)
- type ProxyService
- func (s *ProxyService) Clone(ctx context.Context, in *cores.CloneProxyRequest) (*pb.MyBool, error)
- func (s *ProxyService) Create(ctx context.Context, in *pb.Proxy) (*pb.Proxy, error)
- func (s *ProxyService) Delete(ctx context.Context, in *pb.Id) (*pb.MyBool, error)
- func (s *ProxyService) Link(ctx context.Context, in *cores.LinkProxyRequest) (*pb.MyBool, error)
- func (s *ProxyService) List(ctx context.Context, in *cores.ListProxyRequest) (*cores.ListProxyResponse, error)
- func (s *ProxyService) Pull(ctx context.Context, in *cores.PullProxyRequest) (*cores.PullProxyResponse, error)
- func (s *ProxyService) Update(ctx context.Context, in *pb.Proxy) (*pb.Proxy, error)
- func (s *ProxyService) View(ctx context.Context, in *pb.Id) (*pb.Proxy, error)
- func (s *ProxyService) ViewByName(ctx context.Context, in *cores.ViewProxyByNameRequest) (*pb.Proxy, error)
- func (s *ProxyService) ViewByNameFull(ctx context.Context, in *pb.Name) (*pb.Proxy, error)
- func (s *ProxyService) ViewWithDeleted(ctx context.Context, in *pb.Id) (*pb.Proxy, error)
- type SlotService
- func (s *SlotService) Clone(ctx context.Context, in *cores.CloneSlotRequest) (*pb.MyBool, error)
- func (s *SlotService) Create(ctx context.Context, in *pb.Slot) (*pb.Slot, error)
- func (s *SlotService) Delete(ctx context.Context, in *pb.Id) (*pb.MyBool, error)
- func (s *SlotService) Link(ctx context.Context, in *cores.LinkSlotRequest) (*pb.MyBool, error)
- func (s *SlotService) List(ctx context.Context, in *cores.ListSlotRequest) (*cores.ListSlotResponse, error)
- func (s *SlotService) Pull(ctx context.Context, in *cores.PullSlotRequest) (*cores.PullSlotResponse, error)
- func (s *SlotService) Update(ctx context.Context, in *pb.Slot) (*pb.Slot, error)
- func (s *SlotService) View(ctx context.Context, in *pb.Id) (*pb.Slot, error)
- func (s *SlotService) ViewByName(ctx context.Context, in *cores.ViewSlotByNameRequest) (*pb.Slot, error)
- func (s *SlotService) ViewByNameFull(ctx context.Context, in *pb.Name) (*pb.Slot, error)
- func (s *SlotService) ViewWithDeleted(ctx context.Context, in *pb.Id) (*pb.Slot, error)
- type SourceService
- func (s *SourceService) Clone(ctx context.Context, in *cores.CloneSourceRequest) (*pb.MyBool, error)
- func (s *SourceService) Create(ctx context.Context, in *pb.Source) (*pb.Source, error)
- func (s *SourceService) Delete(ctx context.Context, in *pb.Id) (*pb.MyBool, error)
- func (s *SourceService) Link(ctx context.Context, in *cores.LinkSourceRequest) (*pb.MyBool, error)
- func (s *SourceService) List(ctx context.Context, in *cores.ListSourceRequest) (*cores.ListSourceResponse, error)
- func (s *SourceService) Pull(ctx context.Context, in *cores.PullSourceRequest) (*cores.PullSourceResponse, error)
- func (s *SourceService) Update(ctx context.Context, in *pb.Source) (*pb.Source, error)
- func (s *SourceService) View(ctx context.Context, in *pb.Id) (*pb.Source, error)
- func (s *SourceService) ViewByName(ctx context.Context, in *cores.ViewSourceByNameRequest) (*pb.Source, error)
- func (s *SourceService) ViewByNameFull(ctx context.Context, in *pb.Name) (*pb.Source, error)
- func (s *SourceService) ViewWithDeleted(ctx context.Context, in *pb.Id) (*pb.Source, error)
- type StatusService
- type SyncGlobalService
- type SyncService
- func (s *SyncService) GetDeviceUpdated(ctx context.Context, in *pb.Id) (*cores.SyncUpdated, error)
- func (s *SyncService) GetTagValueUpdated(ctx context.Context, in *pb.Id) (*cores.SyncUpdated, error)
- func (s *SyncService) GetWireValueUpdated(ctx context.Context, in *pb.Id) (*cores.SyncUpdated, error)
- func (s *SyncService) SetDeviceUpdated(ctx context.Context, in *cores.SyncUpdated) (*pb.MyBool, error)
- func (s *SyncService) SetTagValueUpdated(ctx context.Context, in *cores.SyncUpdated) (*pb.MyBool, error)
- func (s *SyncService) SetWireValueUpdated(ctx context.Context, in *cores.SyncUpdated) (*pb.MyBool, error)
- func (s *SyncService) WaitDeviceUpdated(in *pb.Id, stream cores.SyncService_WaitDeviceUpdatedServer) error
- func (s *SyncService) WaitDeviceUpdated2(ctx context.Context, id string) chan bool
- func (s *SyncService) WaitTagValueUpdated(in *pb.Id, stream cores.SyncService_WaitTagValueUpdatedServer) error
- func (s *SyncService) WaitTagValueUpdated2(ctx context.Context, id string) chan bool
- func (s *SyncService) WaitWireValueUpdated(in *pb.Id, stream cores.SyncService_WaitWireValueUpdatedServer) error
- func (s *SyncService) WaitWireValueUpdated2(ctx context.Context, id string) chan bool
- type TagService
- func (s *TagService) Clone(ctx context.Context, in *cores.CloneTagRequest) (*pb.MyBool, error)
- func (s *TagService) Create(ctx context.Context, in *pb.Tag) (*pb.Tag, error)
- func (s *TagService) Delete(ctx context.Context, in *pb.Id) (*pb.MyBool, error)
- func (s *TagService) DeleteValue(ctx context.Context, in *pb.Id) (*pb.MyBool, error)
- func (s *TagService) GetTagValue(id string) nson.Value
- func (s *TagService) GetTagValueValue(id string) types.Option[cache.Value[nson.Value]]
- func (s *TagService) GetValue(ctx context.Context, in *pb.Id) (*pb.TagValue, error)
- func (s *TagService) GetValueByName(ctx context.Context, in *cores.GetTagValueByNameRequest) (*cores.TagNameValue, error)
- func (s *TagService) List(ctx context.Context, in *cores.ListTagRequest) (*cores.ListTagResponse, error)
- func (s *TagService) Pull(ctx context.Context, in *cores.PullTagRequest) (*cores.PullTagResponse, error)
- func (s *TagService) PullValue(ctx context.Context, in *cores.PullTagValueRequest) (*cores.PullTagValueResponse, error)
- func (s *TagService) SetTagValue(id string, value nson.Value)
- func (s *TagService) SetValue(ctx context.Context, in *pb.TagValue) (*pb.MyBool, error)
- func (s *TagService) SetValueByName(ctx context.Context, in *cores.TagNameValue) (*pb.MyBool, error)
- func (s *TagService) SetValueByNameUnchecked(ctx context.Context, in *cores.TagNameValue) (*pb.MyBool, error)
- func (s *TagService) SetValueUnchecked(ctx context.Context, in *pb.TagValue) (*pb.MyBool, error)
- func (s *TagService) Update(ctx context.Context, in *pb.Tag) (*pb.Tag, error)
- func (s *TagService) View(ctx context.Context, in *pb.Id) (*pb.Tag, error)
- func (s *TagService) ViewByName(ctx context.Context, in *cores.ViewTagByNameRequest) (*pb.Tag, error)
- func (s *TagService) ViewByNameFull(ctx context.Context, in *pb.Name) (*pb.Tag, error)
- func (s *TagService) ViewValue(ctx context.Context, in *pb.Id) (*pb.TagValueUpdated, error)
- func (s *TagService) ViewWithDeleted(ctx context.Context, in *pb.Id) (*pb.Tag, error)
- type VarService
- func (s *VarService) Clone(ctx context.Context, in *cores.CloneVarRequest) (*pb.MyBool, error)
- func (s *VarService) Create(ctx context.Context, in *pb.Var) (*pb.Var, error)
- func (s *VarService) Delete(ctx context.Context, in *pb.Id) (*pb.MyBool, error)
- func (s *VarService) GetValue(ctx context.Context, in *pb.Id) (*pb.VarValue, error)
- func (s *VarService) GetValueByName(ctx context.Context, in *cores.GetVarValueByNameRequest) (*cores.VarNameValue, error)
- func (s *VarService) List(ctx context.Context, in *cores.ListVarRequest) (*cores.ListVarResponse, error)
- func (s *VarService) Pull(ctx context.Context, in *cores.PullVarRequest) (*cores.PullVarResponse, error)
- func (s *VarService) SetValue(ctx context.Context, in *pb.VarValue) (*pb.MyBool, error)
- func (s *VarService) SetValueByName(ctx context.Context, in *cores.VarNameValue) (*pb.MyBool, error)
- func (s *VarService) SetValueByNameUnchecked(ctx context.Context, in *cores.VarNameValue) (*pb.MyBool, error)
- func (s *VarService) SetValueUnchecked(ctx context.Context, in *pb.VarValue) (*pb.MyBool, error)
- func (s *VarService) Update(ctx context.Context, in *pb.Var) (*pb.Var, error)
- func (s *VarService) View(ctx context.Context, in *pb.Id) (*pb.Var, error)
- func (s *VarService) ViewByName(ctx context.Context, in *cores.ViewVarByNameRequest) (*pb.Var, error)
- func (s *VarService) ViewByNameFull(ctx context.Context, in *pb.Name) (*pb.Var, error)
- func (s *VarService) ViewWithDeleted(ctx context.Context, in *pb.Id) (*pb.Var, error)
- type WireService
- func (s *WireService) Clone(ctx context.Context, in *cores.CloneWireRequest) (*pb.MyBool, error)
- func (s *WireService) Create(ctx context.Context, in *pb.Wire) (*pb.Wire, error)
- func (s *WireService) Delete(ctx context.Context, in *pb.Id) (*pb.MyBool, error)
- func (s *WireService) DeleteValue(ctx context.Context, in *pb.Id) (*pb.MyBool, error)
- func (s *WireService) GetValue(ctx context.Context, in *pb.Id) (*pb.WireValue, error)
- func (s *WireService) GetValueByName(ctx context.Context, in *cores.GetWireValueByNameRequest) (*cores.WireNameValue, error)
- func (s *WireService) List(ctx context.Context, in *cores.ListWireRequest) (*cores.ListWireResponse, error)
- func (s *WireService) Pull(ctx context.Context, in *cores.PullWireRequest) (*cores.PullWireResponse, error)
- func (s *WireService) PullValue(ctx context.Context, in *cores.PullWireValueRequest) (*cores.PullWireValueResponse, error)
- func (s *WireService) SetValue(ctx context.Context, in *pb.WireValue) (*pb.MyBool, error)
- func (s *WireService) SetValueByName(ctx context.Context, in *cores.WireNameValue) (*pb.MyBool, error)
- func (s *WireService) SetValueByNameUnchecked(ctx context.Context, in *cores.WireNameValue) (*pb.MyBool, error)
- func (s *WireService) SetValueUnchecked(ctx context.Context, in *pb.WireValue) (*pb.MyBool, error)
- func (s *WireService) Update(ctx context.Context, in *pb.Wire) (*pb.Wire, error)
- func (s *WireService) View(ctx context.Context, in *pb.Id) (*pb.Wire, error)
- func (s *WireService) ViewByName(ctx context.Context, in *cores.ViewWireByNameRequest) (*pb.Wire, error)
- func (s *WireService) ViewByNameFull(ctx context.Context, in *pb.Name) (*pb.Wire, error)
- func (s *WireService) ViewValue(ctx context.Context, in *pb.Id) (*pb.WireValueUpdated, error)
- func (s *WireService) ViewWithDeleted(ctx context.Context, in *pb.Id) (*pb.Wire, error)
Constants ¶
View Source
const ( UPLOAD_PREFIX = "__" UPLOAD_SOURCE = "__src" UPLOAD_TIMESTAMP = "__ts" UPLOAD_DEFAULT_SOURCE = consts.DEFAULT_SOURCE )
Variables ¶
This section is empty.
Functions ¶
func CreateSchema ¶
Types ¶
type CableService ¶
type CableService struct { cores.UnimplementedCableServiceServer // contains filtered or unexported fields }
func (*CableService) Clone ¶
func (s *CableService) Clone(ctx context.Context, in *cores.CloneCableRequest) (*pb.MyBool, error)
func (*CableService) Link ¶
func (s *CableService) Link(ctx context.Context, in *cores.LinkCableRequest) (*pb.MyBool, error)
func (*CableService) List ¶
func (s *CableService) List(ctx context.Context, in *cores.ListCableRequest) (*cores.ListCableResponse, error)
func (*CableService) Pull ¶
func (s *CableService) Pull(ctx context.Context, in *cores.PullCableRequest) (*cores.PullCableResponse, error)
func (*CableService) ViewByName ¶
func (s *CableService) ViewByName(ctx context.Context, in *cores.ViewCableByNameRequest) (*pb.Cable, error)
func (*CableService) ViewByNameFull ¶
func (*CableService) ViewWithDeleted ¶
type ControlService ¶
type ControlService struct { cores.UnimplementedControlServiceServer // contains filtered or unexported fields }
func (*ControlService) AddClient ¶
func (s *ControlService) AddClient(deviceID string, client edges.ControlServiceClient)
func (*ControlService) GetClient ¶
func (s *ControlService) GetClient(deviceID string) types.Option[edges.ControlServiceClient]
func (*ControlService) GetTagValue ¶
func (*ControlService) RemoveClient ¶
func (s *ControlService) RemoveClient(deviceID string, client edges.ControlServiceClient)
func (*ControlService) SetTagValue ¶
type CoreOption ¶
type CoreOption interface {
// contains filtered or unexported methods
}
func WithInfluxDB ¶
func WithInfluxDB(influxdb *db.InfluxDB) CoreOption
func WithLinkStatusTTL ¶
func WithLinkStatusTTL(d time.Duration) CoreOption
func WithLogger ¶
func WithLogger(logger *zap.Logger) CoreOption
func WithValueCacheTTL ¶
func WithValueCacheTTL(d time.Duration) CoreOption
type CoreService ¶
type CoreService struct {
// contains filtered or unexported fields
}
func Core ¶
func Core(db *bun.DB, opts ...CoreOption) (*CoreService, error)
func CoreContext ¶
func CoreContext(ctx context.Context, db *bun.DB, opts ...CoreOption) (*CoreService, error)
func (*CoreService) Context ¶
func (cs *CoreService) Context() context.Context
func (*CoreService) GetCable ¶
func (cs *CoreService) GetCable() *CableService
func (*CoreService) GetControl ¶
func (cs *CoreService) GetControl() *ControlService
func (*CoreService) GetDB ¶
func (cs *CoreService) GetDB() *bun.DB
func (*CoreService) GetData ¶
func (cs *CoreService) GetData() *DataService
func (*CoreService) GetDevice ¶
func (cs *CoreService) GetDevice() *DeviceService
func (*CoreService) GetInfluxDB ¶
func (cs *CoreService) GetInfluxDB() types.Option[*db.InfluxDB]
func (*CoreService) GetJumper ¶
func (cs *CoreService) GetJumper() *JumperService
func (*CoreService) GetOption ¶
func (cs *CoreService) GetOption() *OptionService
func (*CoreService) GetPort ¶
func (cs *CoreService) GetPort() *PortService
func (*CoreService) GetProxy ¶
func (cs *CoreService) GetProxy() *ProxyService
func (*CoreService) GetSlot ¶
func (cs *CoreService) GetSlot() *SlotService
func (*CoreService) GetSource ¶
func (cs *CoreService) GetSource() *SourceService
func (*CoreService) GetStatus ¶
func (cs *CoreService) GetStatus() *StatusService
func (*CoreService) GetSync ¶
func (cs *CoreService) GetSync() *SyncService
func (*CoreService) GetSyncGlobal ¶
func (cs *CoreService) GetSyncGlobal() *SyncGlobalService
func (*CoreService) GetTag ¶
func (cs *CoreService) GetTag() *TagService
func (*CoreService) GetVar ¶
func (cs *CoreService) GetVar() *VarService
func (*CoreService) GetWire ¶
func (cs *CoreService) GetWire() *WireService
func (*CoreService) Logger ¶
func (cs *CoreService) Logger() *zap.Logger
func (*CoreService) Register ¶
func (cs *CoreService) Register(server *grpc.Server)
func (*CoreService) Start ¶
func (cs *CoreService) Start()
func (*CoreService) Stop ¶
func (cs *CoreService) Stop()
type DataService ¶
type DataService struct { cores.UnimplementedDataServiceServer // contains filtered or unexported fields }
func (*DataService) CacheTagValue ¶
func (s *DataService) CacheTagValue(tag *model.Tag, value nson.Value)
func (*DataService) Compile ¶
func (s *DataService) Compile(ctx context.Context, in *cores.DataQueryRequest) (*pb.Message, error)
func (*DataService) Query ¶
func (s *DataService) Query(in *cores.DataQueryRequest, stream cores.DataService_QueryServer) error
func (*DataService) QueryTag ¶
func (s *DataService) QueryTag(in *cores.DataQueryTagRequest, stream cores.DataService_QueryTagServer) error
func (*DataService) Upload ¶
func (s *DataService) Upload(ctx context.Context, in *cores.DataUploadRequest) (*cores.DataUploadResponse, error)
type DeviceService ¶
type DeviceService struct { cores.UnimplementedDeviceServiceServer // contains filtered or unexported fields }
func (*DeviceService) Link ¶
func (s *DeviceService) Link(ctx context.Context, in *cores.LinkDeviceRequest) (*pb.MyBool, error)
func (*DeviceService) List ¶
func (s *DeviceService) List(ctx context.Context, in *cores.ListDeviceRequest) (*cores.ListDeviceResponse, error)
func (*DeviceService) ViewByName ¶
type JumperService ¶
type JumperService struct { cores.UnimplementedJumperServiceServer // contains filtered or unexported fields }
func (*JumperService) List ¶
func (s *JumperService) List(ctx context.Context, in *cores.ListJumperRequest) (*cores.ListJumperResponse, error)
func (*JumperService) ViewByName ¶
type OptionService ¶
type OptionService struct { cores.UnimplementedOptionServiceServer // contains filtered or unexported fields }
func (*OptionService) Clone ¶
func (s *OptionService) Clone(ctx context.Context, in *cores.CloneOptionRequest) (*pb.MyBool, error)
func (*OptionService) List ¶
func (s *OptionService) List(ctx context.Context, in *cores.ListOptionRequest) (*cores.ListOptionResponse, error)
func (*OptionService) Pull ¶
func (s *OptionService) Pull(ctx context.Context, in *cores.PullOptionRequest) (*cores.PullOptionResponse, error)
func (*OptionService) ViewByName ¶
func (s *OptionService) ViewByName(ctx context.Context, in *cores.ViewOptionByNameRequest) (*pb.Option, error)
func (*OptionService) ViewByNameFull ¶
func (*OptionService) ViewWithDeleted ¶
type PortService ¶
type PortService struct { cores.UnimplementedPortServiceServer // contains filtered or unexported fields }
func (*PortService) Clone ¶
func (s *PortService) Clone(ctx context.Context, in *cores.ClonePortRequest) (*pb.MyBool, error)
func (*PortService) Link ¶
func (s *PortService) Link(ctx context.Context, in *cores.LinkPortRequest) (*pb.MyBool, error)
func (*PortService) List ¶
func (s *PortService) List(ctx context.Context, in *cores.ListPortRequest) (*cores.ListPortResponse, error)
func (*PortService) Pull ¶
func (s *PortService) Pull(ctx context.Context, in *cores.PullPortRequest) (*cores.PullPortResponse, error)
func (*PortService) ViewByName ¶
func (s *PortService) ViewByName(ctx context.Context, in *cores.ViewPortByNameRequest) (*pb.Port, error)
func (*PortService) ViewByNameFull ¶
func (*PortService) ViewWithDeleted ¶
type ProxyService ¶
type ProxyService struct { cores.UnimplementedProxyServiceServer // contains filtered or unexported fields }
func (*ProxyService) Clone ¶
func (s *ProxyService) Clone(ctx context.Context, in *cores.CloneProxyRequest) (*pb.MyBool, error)
func (*ProxyService) Link ¶
func (s *ProxyService) Link(ctx context.Context, in *cores.LinkProxyRequest) (*pb.MyBool, error)
func (*ProxyService) List ¶
func (s *ProxyService) List(ctx context.Context, in *cores.ListProxyRequest) (*cores.ListProxyResponse, error)
func (*ProxyService) Pull ¶
func (s *ProxyService) Pull(ctx context.Context, in *cores.PullProxyRequest) (*cores.PullProxyResponse, error)
func (*ProxyService) ViewByName ¶
func (s *ProxyService) ViewByName(ctx context.Context, in *cores.ViewProxyByNameRequest) (*pb.Proxy, error)
func (*ProxyService) ViewByNameFull ¶
func (*ProxyService) ViewWithDeleted ¶
type SlotService ¶
type SlotService struct { cores.UnimplementedSlotServiceServer // contains filtered or unexported fields }
func (*SlotService) Clone ¶
func (s *SlotService) Clone(ctx context.Context, in *cores.CloneSlotRequest) (*pb.MyBool, error)
func (*SlotService) Link ¶
func (s *SlotService) Link(ctx context.Context, in *cores.LinkSlotRequest) (*pb.MyBool, error)
func (*SlotService) List ¶
func (s *SlotService) List(ctx context.Context, in *cores.ListSlotRequest) (*cores.ListSlotResponse, error)
func (*SlotService) Pull ¶
func (s *SlotService) Pull(ctx context.Context, in *cores.PullSlotRequest) (*cores.PullSlotResponse, error)
func (*SlotService) ViewByName ¶
func (s *SlotService) ViewByName(ctx context.Context, in *cores.ViewSlotByNameRequest) (*pb.Slot, error)
func (*SlotService) ViewByNameFull ¶
func (*SlotService) ViewWithDeleted ¶
type SourceService ¶
type SourceService struct { cores.UnimplementedSourceServiceServer // contains filtered or unexported fields }
func (*SourceService) Clone ¶
func (s *SourceService) Clone(ctx context.Context, in *cores.CloneSourceRequest) (*pb.MyBool, error)
func (*SourceService) Link ¶
func (s *SourceService) Link(ctx context.Context, in *cores.LinkSourceRequest) (*pb.MyBool, error)
func (*SourceService) List ¶
func (s *SourceService) List(ctx context.Context, in *cores.ListSourceRequest) (*cores.ListSourceResponse, error)
func (*SourceService) Pull ¶
func (s *SourceService) Pull(ctx context.Context, in *cores.PullSourceRequest) (*cores.PullSourceResponse, error)
func (*SourceService) ViewByName ¶
func (s *SourceService) ViewByName(ctx context.Context, in *cores.ViewSourceByNameRequest) (*pb.Source, error)
func (*SourceService) ViewByNameFull ¶
func (*SourceService) ViewWithDeleted ¶
type StatusService ¶
type StatusService struct {
// contains filtered or unexported fields
}
func (*StatusService) GetLink ¶
func (s *StatusService) GetLink(key string) int32
func (*StatusService) GetLinkValue ¶
func (*StatusService) SetLink ¶
func (s *StatusService) SetLink(key string, status int32)
type SyncGlobalService ¶
type SyncGlobalService struct { cores.UnimplementedSyncGlobalServiceServer // contains filtered or unexported fields }
type SyncService ¶
type SyncService struct { cores.UnimplementedSyncServiceServer // contains filtered or unexported fields }
func (*SyncService) GetDeviceUpdated ¶
func (s *SyncService) GetDeviceUpdated(ctx context.Context, in *pb.Id) (*cores.SyncUpdated, error)
func (*SyncService) GetTagValueUpdated ¶
func (s *SyncService) GetTagValueUpdated(ctx context.Context, in *pb.Id) (*cores.SyncUpdated, error)
func (*SyncService) GetWireValueUpdated ¶
func (s *SyncService) GetWireValueUpdated(ctx context.Context, in *pb.Id) (*cores.SyncUpdated, error)
func (*SyncService) SetDeviceUpdated ¶
func (s *SyncService) SetDeviceUpdated(ctx context.Context, in *cores.SyncUpdated) (*pb.MyBool, error)
func (*SyncService) SetTagValueUpdated ¶
func (s *SyncService) SetTagValueUpdated(ctx context.Context, in *cores.SyncUpdated) (*pb.MyBool, error)
func (*SyncService) SetWireValueUpdated ¶
func (s *SyncService) SetWireValueUpdated(ctx context.Context, in *cores.SyncUpdated) (*pb.MyBool, error)
func (*SyncService) WaitDeviceUpdated ¶
func (s *SyncService) WaitDeviceUpdated(in *pb.Id, stream cores.SyncService_WaitDeviceUpdatedServer) error
func (*SyncService) WaitDeviceUpdated2 ¶
func (s *SyncService) WaitDeviceUpdated2(ctx context.Context, id string) chan bool
func (*SyncService) WaitTagValueUpdated ¶
func (s *SyncService) WaitTagValueUpdated(in *pb.Id, stream cores.SyncService_WaitTagValueUpdatedServer) error
func (*SyncService) WaitTagValueUpdated2 ¶
func (s *SyncService) WaitTagValueUpdated2(ctx context.Context, id string) chan bool
func (*SyncService) WaitWireValueUpdated ¶
func (s *SyncService) WaitWireValueUpdated(in *pb.Id, stream cores.SyncService_WaitWireValueUpdatedServer) error
func (*SyncService) WaitWireValueUpdated2 ¶
func (s *SyncService) WaitWireValueUpdated2(ctx context.Context, id string) chan bool
type TagService ¶
type TagService struct { cores.UnimplementedTagServiceServer // contains filtered or unexported fields }
func (*TagService) Clone ¶
func (s *TagService) Clone(ctx context.Context, in *cores.CloneTagRequest) (*pb.MyBool, error)
func (*TagService) DeleteValue ¶
func (*TagService) GetTagValue ¶
func (s *TagService) GetTagValue(id string) nson.Value
func (*TagService) GetTagValueValue ¶
func (*TagService) GetValueByName ¶
func (s *TagService) GetValueByName(ctx context.Context, in *cores.GetTagValueByNameRequest) (*cores.TagNameValue, error)
func (*TagService) List ¶
func (s *TagService) List(ctx context.Context, in *cores.ListTagRequest) (*cores.ListTagResponse, error)
func (*TagService) Pull ¶
func (s *TagService) Pull(ctx context.Context, in *cores.PullTagRequest) (*cores.PullTagResponse, error)
func (*TagService) PullValue ¶
func (s *TagService) PullValue(ctx context.Context, in *cores.PullTagValueRequest) (*cores.PullTagValueResponse, error)
func (*TagService) SetTagValue ¶
func (s *TagService) SetTagValue(id string, value nson.Value)
func (*TagService) SetValueByName ¶
func (s *TagService) SetValueByName(ctx context.Context, in *cores.TagNameValue) (*pb.MyBool, error)
func (*TagService) SetValueByNameUnchecked ¶
func (s *TagService) SetValueByNameUnchecked(ctx context.Context, in *cores.TagNameValue) (*pb.MyBool, error)
func (*TagService) SetValueUnchecked ¶
func (*TagService) ViewByName ¶
func (s *TagService) ViewByName(ctx context.Context, in *cores.ViewTagByNameRequest) (*pb.Tag, error)
func (*TagService) ViewByNameFull ¶
func (*TagService) ViewValue ¶
func (s *TagService) ViewValue(ctx context.Context, in *pb.Id) (*pb.TagValueUpdated, error)
func (*TagService) ViewWithDeleted ¶
type VarService ¶
type VarService struct { cores.UnimplementedVarServiceServer // contains filtered or unexported fields }
func (*VarService) Clone ¶
func (s *VarService) Clone(ctx context.Context, in *cores.CloneVarRequest) (*pb.MyBool, error)
func (*VarService) GetValueByName ¶
func (s *VarService) GetValueByName(ctx context.Context, in *cores.GetVarValueByNameRequest) (*cores.VarNameValue, error)
func (*VarService) List ¶
func (s *VarService) List(ctx context.Context, in *cores.ListVarRequest) (*cores.ListVarResponse, error)
func (*VarService) Pull ¶
func (s *VarService) Pull(ctx context.Context, in *cores.PullVarRequest) (*cores.PullVarResponse, error)
func (*VarService) SetValueByName ¶
func (s *VarService) SetValueByName(ctx context.Context, in *cores.VarNameValue) (*pb.MyBool, error)
func (*VarService) SetValueByNameUnchecked ¶
func (s *VarService) SetValueByNameUnchecked(ctx context.Context, in *cores.VarNameValue) (*pb.MyBool, error)
func (*VarService) SetValueUnchecked ¶
func (*VarService) ViewByName ¶
func (s *VarService) ViewByName(ctx context.Context, in *cores.ViewVarByNameRequest) (*pb.Var, error)
func (*VarService) ViewByNameFull ¶
func (*VarService) ViewWithDeleted ¶
type WireService ¶
type WireService struct { cores.UnimplementedWireServiceServer // contains filtered or unexported fields }
func (*WireService) Clone ¶
func (s *WireService) Clone(ctx context.Context, in *cores.CloneWireRequest) (*pb.MyBool, error)
func (*WireService) DeleteValue ¶
func (*WireService) GetValueByName ¶
func (s *WireService) GetValueByName(ctx context.Context, in *cores.GetWireValueByNameRequest) (*cores.WireNameValue, error)
func (*WireService) List ¶
func (s *WireService) List(ctx context.Context, in *cores.ListWireRequest) (*cores.ListWireResponse, error)
func (*WireService) Pull ¶
func (s *WireService) Pull(ctx context.Context, in *cores.PullWireRequest) (*cores.PullWireResponse, error)
func (*WireService) PullValue ¶
func (s *WireService) PullValue(ctx context.Context, in *cores.PullWireValueRequest) (*cores.PullWireValueResponse, error)
func (*WireService) SetValueByName ¶
func (s *WireService) SetValueByName(ctx context.Context, in *cores.WireNameValue) (*pb.MyBool, error)
func (*WireService) SetValueByNameUnchecked ¶
func (s *WireService) SetValueByNameUnchecked(ctx context.Context, in *cores.WireNameValue) (*pb.MyBool, error)
func (*WireService) SetValueUnchecked ¶
func (*WireService) ViewByName ¶
func (s *WireService) ViewByName(ctx context.Context, in *cores.ViewWireByNameRequest) (*pb.Wire, error)
func (*WireService) ViewByNameFull ¶
func (*WireService) ViewValue ¶
func (s *WireService) ViewValue(ctx context.Context, in *pb.Id) (*pb.WireValueUpdated, error)
func (*WireService) ViewWithDeleted ¶
Click to show internal directories.
Click to hide internal directories.