Documentation ¶
Index ¶
- Variables
- type ActionServiceWS
- type ActionTypeService
- func (s *ActionTypeService) GetActionType(sourceID string, name string) (*model.ActionType, error)
- func (s *ActionTypeService) GetActionTypes() ([]model.ActionType, error)
- func (s *ActionTypeService) GetActionTypesBySourceID(sourceID string) ([]model.ActionType, error)
- func (s *ActionTypeService) RegisterActionType(actionType model.ActionType) (*model.ActionType, error)
- type EventServiceWS
- type EventTypeService
- func (s *EventTypeService) GetEventType(sourceID string, name string) (*model.EventType, error)
- func (s *EventTypeService) GetEventTypes() ([]model.EventType, error)
- func (s *EventTypeService) GetEventTypesBySourceID(sourceID string) ([]model.EventType, error)
- func (s *EventTypeService) RegisterEventType(eventType model.EventType) (*model.EventType, error)
- type MessageBus
- type Services
- type SocketIOService
- type YSKService
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrActionSourceIDNotFound = errors.New("event source id not found") ErrActionNameNotFound = errors.New("event name not found") )
View Source
var ( ErrEventSourceIDNotFound = errors.New("event source id not found") ErrEventNameNotFound = errors.New("event name not found") )
Functions ¶
This section is empty.
Types ¶
type ActionServiceWS ¶
type ActionServiceWS struct {
// contains filtered or unexported fields
}
func NewActionServiceWS ¶
func NewActionServiceWS(actionTypeService *ActionTypeService) *ActionServiceWS
func (*ActionServiceWS) Start ¶
func (s *ActionServiceWS) Start(ctx *context.Context)
func (*ActionServiceWS) Trigger ¶
func (s *ActionServiceWS) Trigger(action model.Action)
func (*ActionServiceWS) Unsubscribe ¶
type ActionTypeService ¶
type ActionTypeService struct {
// contains filtered or unexported fields
}
func NewActionTypeService ¶
func NewActionTypeService(repository *repository.Repository) *ActionTypeService
func (*ActionTypeService) GetActionType ¶
func (s *ActionTypeService) GetActionType(sourceID string, name string) (*model.ActionType, error)
func (*ActionTypeService) GetActionTypes ¶
func (s *ActionTypeService) GetActionTypes() ([]model.ActionType, error)
func (*ActionTypeService) GetActionTypesBySourceID ¶
func (s *ActionTypeService) GetActionTypesBySourceID(sourceID string) ([]model.ActionType, error)
func (*ActionTypeService) RegisterActionType ¶
func (s *ActionTypeService) RegisterActionType(actionType model.ActionType) (*model.ActionType, error)
type EventServiceWS ¶
type EventServiceWS struct {
// contains filtered or unexported fields
}
func NewEventServiceWS ¶
func NewEventServiceWS(eventTypeService *EventTypeService) *EventServiceWS
func (*EventServiceWS) Publish ¶
func (s *EventServiceWS) Publish(event model.Event)
func (*EventServiceWS) Start ¶
func (s *EventServiceWS) Start(ctx *context.Context)
func (*EventServiceWS) Unsubscribe ¶
type EventTypeService ¶
type EventTypeService struct {
// contains filtered or unexported fields
}
func NewEventTypeService ¶
func NewEventTypeService(repository *repository.Repository) *EventTypeService
func (*EventTypeService) GetEventType ¶
func (*EventTypeService) GetEventTypes ¶
func (s *EventTypeService) GetEventTypes() ([]model.EventType, error)
func (*EventTypeService) GetEventTypesBySourceID ¶
func (s *EventTypeService) GetEventTypesBySourceID(sourceID string) ([]model.EventType, error)
func (*EventTypeService) RegisterEventType ¶
type Services ¶
type Services struct { EventTypeService *EventTypeService EventServiceWS *EventServiceWS ActionTypeService *ActionTypeService ActionServiceWS *ActionServiceWS SocketIOService *SocketIOService YSKService *YSKService }
func NewServices ¶
func NewServices(repository *repository.Repository) Services
type SocketIOService ¶
type SocketIOService struct {
// contains filtered or unexported fields
}
func NewSocketIOService ¶
func NewSocketIOService() *SocketIOService
func (*SocketIOService) Publish ¶
func (s *SocketIOService) Publish(message interface{})
func (*SocketIOService) Server ¶
func (s *SocketIOService) Server() *socketio.Server
func (*SocketIOService) Start ¶
func (s *SocketIOService) Start(ctx *context.Context)
type YSKService ¶
type YSKService struct {
// contains filtered or unexported fields
}
func NewYSKService ¶
func NewYSKService( repository *repository.Repository, ws *EventServiceWS, ets *EventTypeService, ) *YSKService
func (*YSKService) DeleteYSKCard ¶
func (s *YSKService) DeleteYSKCard(ctx context.Context, id string) error
func (*YSKService) Start ¶
func (s *YSKService) Start(init bool)
func (*YSKService) UpsertYSKCard ¶
func (*YSKService) YskCardList ¶
Click to show internal directories.
Click to hide internal directories.