Documentation
¶
Index ¶
Constants ¶
const (
ServiceName = types.CatServiceName
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
ConfigService *config.Service `di.inject:"configservice"`
LoggerService *logging.Service `di.inject:"loggingservice"`
// contains filtered or unexported fields
}
func (*Service) EnqueueCommand ¶
func (s *Service) EnqueueCommand(cmdName cmds.CatCmdName, params ...string) error
EnqueueCommand queues a command with the given name and parameters for execution, ensuring the service is initialized and started. Returns an error if the service is not ready, the command lookup fails, or the sendChannel is full or closed.
func (*Service) Initialize ¶
Initialize ensures the service is properly set up by initializing required components and loading configurations. It is safe to call multiple times. The IOCDI container will ensure this method is called.
func (*Service) RigConfig ¶ added in v0.0.3
RigConfig returns the rig configuration for the service, or an empty configuration if the service is not initialized. This provides a copy of the current rig configuration, for other consumers, e.g., frontend facades.
func (*Service) Start ¶
Start initializes and starts the service if it has been properly configured and is not yet running.
func (*Service) StatusChannel ¶
StatusChannel returns a channel for monitoring cat status changes or an error if the service is uninitialized or closed.