Documentation ¶
Index ¶
- Variables
- func AddDeploymentDomainHandler(c *gin.Context)
- func AuthAPIKeyMiddlewareFunc() gin.HandlerFunc
- func AuthRequired(authMiddleware *jwt.GinJWTMiddleware) gin.HandlerFunc
- func BackupResultHandler(c *gin.Context)
- func BindWalletHandler(c *gin.Context)
- func CacheAllAreas(ctx context.Context, info []string) error
- func CacheDeviceDistribution(ctx context.Context, info []*model.DeviceDistribution, lang model.Language) error
- func CacheRelease(ctx context.Context, info []*Release) error
- func Cors() gin.HandlerFunc
- func CreateAppVersionHandler(c *gin.Context)
- func CreateAssetHandler(c *gin.Context)
- func CreateDeploymentHandler(c *gin.Context)
- func CreateFilStorageHandler(c *gin.Context)
- func CreateGroupHandler(c *gin.Context)
- func CreateKeyHandler(c *gin.Context)
- func CreateNewSecretKeyHandler(c *gin.Context)
- func DeleteAssetHandler(c *gin.Context)
- func DeleteDeploymentDomainHandler(c *gin.Context)
- func DeleteDeploymentHandler(c *gin.Context)
- func DeleteGroupHandler(c *gin.Context)
- func DeleteKeyHandler(c *gin.Context)
- func DeviceBindingHandler(c *gin.Context)
- func DeviceUnBindingHandlerOld(c *gin.Context)
- func DeviceUpdateHandler(c *gin.Context)
- func GenerateCodeHandler(c *gin.Context)
- func GetAPIKeyPermsHandler(c *gin.Context)
- func GetAllAreas(c *gin.Context)
- func GetAllAreasFromCache(ctx context.Context) ([]string, error)
- func GetAllocateStorageHandler(c *gin.Context)
- func GetAppVersionHandler(c *gin.Context)
- func GetAssetAllListHandler(c *gin.Context)
- func GetAssetCountHandler(c *gin.Context)
- func GetAssetGroupListHandler(c *gin.Context)
- func GetAssetInfoHandler(c *gin.Context)
- func GetAssetListHandler(c *gin.Context)
- func GetAssetStatusHandler(c *gin.Context)
- func GetBackupAssetsHandler(c *gin.Context)
- func GetBlockHeightHandler(c *gin.Context)
- func GetCacheDaysHandler(c *gin.Context)
- func GetCacheHourHandler(c *gin.Context)
- func GetCacheListHandler(c *gin.Context)
- func GetCarFileCountHandler(c *gin.Context)
- func GetDefaultTitanCandidateEntrypointInfo() (string, string)
- func GetDeploymentDomainHandler(c *gin.Context)
- func GetDeploymentEventsHandler(c *gin.Context)
- func GetDeploymentLogsHandler(c *gin.Context)
- func GetDeploymentManifestHandler(c *gin.Context)
- func GetDeploymentShellHandler(c *gin.Context)
- func GetDeploymentsHandler(c *gin.Context)
- func GetDeviceActiveInfoHandler(c *gin.Context)
- func GetDeviceDiagnosisDailyByDeviceIdHandler(c *gin.Context)
- func GetDeviceDiagnosisDailyByUserIdHandler(c *gin.Context)
- func GetDeviceDiagnosisHourHandler(c *gin.Context)
- func GetDeviceDistributionFromCache(ctx context.Context, lang model.Language) ([]*model.DeviceDistribution, error)
- func GetDeviceDistributionHandler(c *gin.Context)
- func GetDeviceInfoDailyHandler(c *gin.Context)
- func GetDeviceInfoHandler(c *gin.Context)
- func GetDeviceProfileHandler(c *gin.Context)
- func GetDeviceStatusHandler(c *gin.Context)
- func GetDiskDaysHandler(c *gin.Context)
- func GetFilStorageListHandler(c *gin.Context)
- func GetGroupsHandler(c *gin.Context)
- func GetIndexInfoHandler(c *gin.Context)
- func GetKeyListHandler(c *gin.Context)
- func GetLocation(ctx context.Context, ipAddr string) (*model.Location, error)
- func GetLocationHandler(c *gin.Context)
- func GetLoginLogHandler(c *gin.Context)
- func GetMapByCidHandler(c *gin.Context)
- func GetMapInfoHandler(c *gin.Context)
- func GetNodeDailyTrendHandler(c *gin.Context)
- func GetNodesInfoHandler(c *gin.Context)
- func GetNonceStringHandler(c *gin.Context)
- func GetNumericVerifyCodeHandler(c *gin.Context)
- func GetOperationLogHandler(c *gin.Context)
- func GetProfitDetailsHandler(c *gin.Context)
- func GetProvidersHandler(c *gin.Context)
- func GetQueryInfoHandler(c *gin.Context)
- func GetReferralListHandler(c *gin.Context)
- func GetReleasesHandler(c *gin.Context)
- func GetReplicaListHandler(c *gin.Context)
- func GetRetrievalListHandler(c *gin.Context)
- func GetShareLinkHandler(c *gin.Context)
- func GetStorageDailyHandler(c *gin.Context)
- func GetStorageHourHandler(c *gin.Context)
- func GetStorageSizeHandler(c *gin.Context)
- func GetUserAccessTokenHandler(c *gin.Context)
- func GetUserDeviceProfileHandler(c *gin.Context)
- func GetUserDevicesCountHandler(c *gin.Context)
- func GetUserInfo(ctx context.Context, key string) int64
- func GetUserInfoHandler(c *gin.Context)
- func GetUserNearestIP(ctx context.Context, userIP string, ipList []string, coordinate IPCoordinate) (string, error)
- func GetUserVipInfoHandler(c *gin.Context)
- func GetValidationListHandler(c *gin.Context)
- func GetWithdrawListHandler(c *gin.Context)
- func ListStorageStats(c *gin.Context)
- func MoveAssetToGroupHandler(c *gin.Context)
- func MoveGroupToGroupHandler(c *gin.Context)
- func PasswordRest(c *gin.Context)
- func QueryDeviceCodeHandler(c *gin.Context)
- func QueryStorageDaily(ctx context.Context, userId, startTime, endTime string) []*dao.UserInfoRes
- func RegisterRouterWithAPIKey(router *gin.Engine)
- func RegisterRouterWithJWT(router *gin.Engine, cfg config.Config)
- func RegisterRouters(route *gin.Engine, cfg config.Config)
- func RenameGroupHandler(c *gin.Context)
- func RequestLoggerMiddleware() gin.HandlerFunc
- func SaveProviderLocation(providerId string) error
- func SetPeakBandwidth(userId string)
- func SetUserInfo(ctx context.Context, key string, peakBandwidth int64, expireTime time.Duration) error
- func ShareAssetsHandler(c *gin.Context)
- func ShareLinkHandler(c *gin.Context)
- func SubscribeHandler(c *gin.Context)
- func UnBindWalletHandler(c *gin.Context)
- func UpdateDeploymentHandler(c *gin.Context)
- func UpdateShareStatusHandler(c *gin.Context)
- func UserRegister(c *gin.Context)
- func VerifyMessage(message string, signedMessage string) (string, error)
- func WithdrawHandler(c *gin.Context)
- type AccessOverview
- type AssetOrGroup
- type DeviceRewardRule
- type IPCoordinate
- type JsonObject
- type NodeDailyTrend
- type NonceStringType
- type Release
- type Rule
- type Server
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultAreaId = "Asia-China-Guangdong-Shenzhen" SchedulerConfigKeyPrefix = "TITAN::SCHEDULERCFG" )
View Source
var ( ChainHeadKey = "TITAN::FILECOIN::CHAINHEAD" ChainHeadKeyExpiration = 10 * time.Second )
Functions ¶
func AuthAPIKeyMiddlewareFunc ¶
func AuthAPIKeyMiddlewareFunc() gin.HandlerFunc
AuthAPIKeyMiddlewareFunc makes GinJWTMiddleware implement the Middleware interface.
func AuthRequired ¶
func AuthRequired(authMiddleware *jwt.GinJWTMiddleware) gin.HandlerFunc
func BackupResultHandler ¶
func BindWalletHandler ¶
func CacheDeviceDistribution ¶
func Cors ¶
func Cors() gin.HandlerFunc
func CreateAppVersionHandler ¶
func CreateAssetHandler ¶
func CreateDeploymentHandler ¶
func CreateFilStorageHandler ¶
func CreateGroupHandler ¶
func CreateKeyHandler ¶
func DeleteAssetHandler ¶
func DeleteDeploymentHandler ¶
func DeleteGroupHandler ¶
func DeleteKeyHandler ¶
func DeviceBindingHandler ¶
func DeviceUpdateHandler ¶
func GenerateCodeHandler ¶
func GetAPIKeyPermsHandler ¶
func GetAllAreas ¶
func GetAppVersionHandler ¶
func GetAssetAllListHandler ¶
func GetAssetCountHandler ¶
func GetAssetInfoHandler ¶
func GetAssetListHandler ¶
func GetAssetStatusHandler ¶
func GetBackupAssetsHandler ¶
func GetBlockHeightHandler ¶
func GetCacheDaysHandler ¶
func GetCacheHourHandler ¶
func GetCacheListHandler ¶
func GetCarFileCountHandler ¶
func GetDefaultTitanCandidateEntrypointInfo ¶
GetDefaultTitanCandidateEntrypointInfo specify candidate to upload file in testnet, only for storage api
func GetDeploymentsHandler ¶
func GetDeviceInfoHandler ¶
func GetDeviceProfileHandler ¶
func GetDeviceStatusHandler ¶
func GetDiskDaysHandler ¶
func GetGroupsHandler ¶
func GetIndexInfoHandler ¶
func GetKeyListHandler ¶
func GetLocationHandler ¶
func GetLoginLogHandler ¶
func GetMapByCidHandler ¶
func GetMapInfoHandler ¶
func GetNodesInfoHandler ¶
func GetNonceStringHandler ¶
func GetOperationLogHandler ¶
func GetProfitDetailsHandler ¶
func GetProvidersHandler ¶
func GetQueryInfoHandler ¶
func GetReferralListHandler ¶
func GetReleasesHandler ¶
func GetReplicaListHandler ¶
func GetRetrievalListHandler ¶
func GetShareLinkHandler ¶
func GetStorageDailyHandler ¶
func GetStorageHourHandler ¶
func GetStorageSizeHandler ¶
func GetUserInfoHandler ¶
func GetUserNearestIP ¶
func GetUserVipInfoHandler ¶
func GetWithdrawListHandler ¶
func ListStorageStats ¶
func MoveAssetToGroupHandler ¶
func MoveGroupToGroupHandler ¶
func PasswordRest ¶
func QueryDeviceCodeHandler ¶
func QueryStorageDaily ¶
func QueryStorageDaily(ctx context.Context, userId, startTime, endTime string) []*dao.UserInfoRes
func RenameGroupHandler ¶
func RequestLoggerMiddleware ¶
func RequestLoggerMiddleware() gin.HandlerFunc
func SaveProviderLocation ¶
func SetPeakBandwidth ¶
func SetPeakBandwidth(userId string)
func SetUserInfo ¶
func ShareAssetsHandler ¶
func ShareLinkHandler ¶
func SubscribeHandler ¶
func UnBindWalletHandler ¶
func UpdateDeploymentHandler ¶
func UserRegister ¶
func WithdrawHandler ¶
Types ¶
type AccessOverview ¶
type AccessOverview struct { AssetRecord *types.AssetRecord UserAssetDetail *types.UserAssetDetail VisitCount int RemainVisitCount int FilcoinCount int64 }
type AssetOrGroup ¶
type AssetOrGroup struct { AssetOverview *AccessOverview Group interface{} }
type DeviceRewardRule ¶
type IPCoordinate ¶
func NewIPCoordinate ¶
func NewIPCoordinate() IPCoordinate
type JsonObject ¶
type JsonObject map[string]interface{}
type NodeDailyTrend ¶
type NodeDailyTrend struct { X string `json:"x"` Y *model.FullNodeInfo `json:"y"` }
type NonceStringType ¶
type NonceStringType string
const ( NonceStringTypeRegister NonceStringType = "1" NonceStringTypeLogin NonceStringType = "2" NonceStringTypeReset NonceStringType = "3" NonceStringTypeSignature NonceStringType = "4" )
type Release ¶
Click to show internal directories.
Click to hide internal directories.