app

package
v1.7.7 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package app provides application service

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountQuotaDetailDTO

type AccountQuotaDetailDTO struct {
	UserName     string `json:"user_name"`
	UsedQuota    int    `json:"used_quota"`
	TotalQuota   int    `json:"total_quota"`
	ComputeType  string `json:"compute_type"`
	QuotaBalance int    `json:"quota_balance"`
}

AccountQuotaDetailDTO is a struct used for account quota detail.

type CmdToSupplyRecord

type CmdToSupplyRecord struct {
	Index      domain.ComputilityAccountRecordIndex
	QuotaCount int
	NewSpaceId commondomain.Identity
}

CmdToSupplyRecord is a struct used for supply record.

type CmdToUserQuotaUpdate

type CmdToUserQuotaUpdate struct {
	Index      domain.ComputilityAccountRecordIndex
	QuotaCount int
}

CmdToUserQuotaUpdate is a struct used for user quota update.

type ComputilityAppService

type ComputilityAppService interface {
	GetAccountDetail(domain.ComputilityAccountIndex) (AccountQuotaDetailDTO, error)
}

ComputilityAppService is an interface for computility internal application service

func NewComputilityAppService

NewComputilityAppService creates a new instance of ComputilityAppService

type ComputilityInternalAppService

type ComputilityInternalAppService interface {
	UserQuotaConsume(CmdToUserQuotaUpdate) error
	UserQuotaRelease(CmdToUserQuotaUpdate) error

	SpaceCreateSupply(CmdToSupplyRecord) error
}

ComputilityInternalAppService is an interface for computility internal application service

func NewComputilityInternalAppService

NewComputilityInternalAppService creates a new instance of ComputilityInternalAppService

Jump to

Keyboard shortcuts

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