Documentation
¶
Index ¶
- type ISystemService
- type Service
- func (s *Service) GetAppVersion(_ context.Context) (string, string)
- func (s *Service) GetIP(ctx context.Context) (string, error)
- func (s *Service) GetInfo(ctx context.Context) (*models.SystemInfo, error)
- func (s *Service) GetProfile(_ context.Context) models.AppProfile
- func (s *Service) RunHeartbeatLoop(ctx context.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ISystemService ¶
type ISystemService interface {
GetInfo(ctx context.Context) (*models.SystemInfo, error)
GetAppVersion(ctx context.Context) (string, string)
GetIP(ctx context.Context) (string, error)
GetProfile(ctx context.Context) models.AppProfile
RunHeartbeatLoop(ctx context.Context)
}
func New ¶
func New( settingsService setting.ISettingService, permissionService permission.IPermission, dvAdmin admin_gateway.ISystem, log logger.Logger, appVersion, commitHash string, cfg *config.Config, analyticsService analytics.IAnalytics, ) ISystemService
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) GetProfile ¶
func (s *Service) GetProfile(_ context.Context) models.AppProfile
func (*Service) RunHeartbeatLoop ¶
Click to show internal directories.
Click to hide internal directories.