system

package
v0.9.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

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) GetAppVersion

func (s *Service) GetAppVersion(_ context.Context) (string, string)

func (*Service) GetIP

func (s *Service) GetIP(ctx context.Context) (string, error)

func (*Service) GetInfo

func (s *Service) GetInfo(ctx context.Context) (*models.SystemInfo, error)

func (*Service) GetProfile

func (s *Service) GetProfile(_ context.Context) models.AppProfile

func (*Service) RunHeartbeatLoop

func (s *Service) RunHeartbeatLoop(ctx context.Context)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL