# Functions
ClsIsAlive resets the watchdog interval for license <> service synchronization.
GetLicenseDefaults gets the default validServiceStates @return []string - string array of service keys for CLS to use.
GetLicenseDetails will use the current license location to load and return the license file @return LicenseInfo - the license info, containing license details @return error - associated errors.
GetLicenseFileDoesNotExistStr returns the error string for license file does not exist for comparison reasons @return string of the license file does not exist error.
GetServices gets the current Service @return []Service - array of current services.
IsLicenseEnabled is called from API to see if service is currently enabled.
ReadCommandFileAndGetStatus reads a given command file and gets the status @param name - service to look for command file for @return bool - if service is enabled or not @return error - any associated error, nil if none.
RefreshLicenses restart the client licence service.
SetServices will disable any disabled services to un-enabled in settings.
Shutdown is called when the service stops.
Startup the license manager service.
# Constants
LicenseFileDoesNotExistStr is the string to check if licenses should be reloaded when status is returned.
ServicesAllowedStatesLocation is the location where we put where services are enabled/disabled.
Types of commands that we accept.
Types of commands that we accept.
# Structs
Config contains config options used in the license manager.
License is the struct representing each individual license.
LicenseInfo represents the json returned from license server.
Service struct is used to store state/hook of each service.
ServiceHook struct is used to indicate start/stop/enabled hooks for services.
ServiceState is used for setting the service state.
# Type aliases
State is an enum used for indicating service state.