Documentation
¶
Index ¶
- Constants
- func NewService(cfg *fanucService.Config, repo interfaces.Repository, producer *kafka.Producer, ...) interfaces.FanucService
- type Service
- func (s *Service) CheckConnection(ctx context.Context, id string) (*entities.Machine, error)
- func (s *Service) CreateConnection(ctx context.Context, req models.ConnectionRequest) (*entities.Machine, error)
- func (s *Service) DeleteConnection(ctx context.Context, id string) error
- func (s *Service) GetConnections(ctx context.Context) ([]entities.Machine, error)
- func (s *Service) GetControlProgram(ctx context.Context, id string) (string, error)
- func (s *Service) RestoreConnections() error
- func (s *Service) StartPolling(ctx context.Context, machineID string, intervalMs int) error
- func (s *Service) StopPolling(ctx context.Context, machineID string) error
Constants ¶
View Source
const ( HardConnectionTimeout = 5 * time.Second DefaultTimeout = 5000 DefaultUnknown = "Unknown" )
Variables ¶
This section is empty.
Functions ¶
func NewService ¶
func NewService(cfg *fanucService.Config, repo interfaces.Repository, producer *kafka.Producer, logger *logrus.Logger) interfaces.FanucService
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) CheckConnection ¶
func (*Service) CreateConnection ¶
func (*Service) DeleteConnection ¶
func (*Service) GetConnections ¶
func (*Service) GetControlProgram ¶
func (*Service) RestoreConnections ¶
func (*Service) StartPolling ¶
Click to show internal directories.
Click to hide internal directories.