Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventUsecase ¶
type EventUsecase interface { RegistLogicService(l *model.LogicService) error CheckAndUnregistLogicServices() error DeleteSinkEvent(s *model.Sink) error CreateNodeEvent(n *model.Node) error DeleteNodeEvent(n *model.Node) error DeleteSensorEvent(s *model.Sensor) error CreateLogicEvent(l *model.Logic) error DeleteLogicEvent(l *model.Logic) error PostToSink(sid int) error }
for event channel
type RegistUsecase ¶
type RegistUsecase interface { GetSinkPageCount(size int) int GetSinks() ([]model.Sink, error) GetSinksPage(p adapter.Page) ([]model.Sink, error) GetSinksByTopicID(tid int) ([]model.Sink, error) GetSinkByID(sid int) (*model.Sink, error) RegistSink(s *model.Sink) error UnregistSink(s *model.Sink) error GetNodePageCount(p adapter.Page) int GetNodes() ([]model.Node, error) GetNodesPage(p adapter.Page) ([]model.Node, error) GetNodesSquare(sq adapter.Square) ([]model.Node, error) RegistNode(n *model.Node) error UnregistNode(n *model.Node) error GetSensorPageCount(size int) int GetSensors() ([]model.Sensor, error) GetSensorsPage(p adapter.Page) ([]model.Sensor, error) RegistSensor(s *model.Sensor) error UnregistSensor(s *model.Sensor) error GetLogics() ([]model.Logic, error) RegistLogic(l *model.Logic) error UnregistLogic(l *model.Logic) error GetLogicServices() ([]model.LogicService, error) UnregistLogicService(l *model.LogicService) error GetTopics() ([]model.Topic, error) RegistTopic(t *model.Topic) error UnregistTopic(t *model.Topic) error }
for ui registration
Click to show internal directories.
Click to hide internal directories.