Versions in this module Expand all Collapse all v0 v0.3.0 Jul 11, 2026 v0.2.0 Mar 26, 2026 v0.1.1 Mar 20, 2026 v0.1.0 Mar 17, 2026 Changes in this version + func Exists(cpPath string) bool + func GenerateAndUpdateConfigFile(cpRepoPath string, multiAddress, nodeName string, port int) error + func GetInferenceApiKey(cpRepoPath string) string + func GetRpcByNetWorkName() (string, error) + func InitConfig(cpRepoPath string, standalone bool) error + func LoadModelsJson(cpRepoPath string) (map[string]ModelConfig, error) + func UpdateInferenceConfig(cpRepoPath, apiKey string, models []string) error + func WriteModelsJson(cpRepoPath string, models map[string]ModelConfig) error + type API struct + AutoDeleteImage bool + ClearLogDuration int + Domain string + GpuUtilizationRejectThreshold float64 + MultiAddress string + NodeName string + Port int + PortRange []string + Pricing Pricing + WalletBlackList string + WalletWhiteList string + type CONTRACT struct + CpAccountRegister string + EdgeTaskPayment string + EdgeTaskPaymentCreated uint64 + JobCollateral string + JobCollateralUbiZero string + JobManager string + JobManagerCreated uint64 + Sequencer string + SwanToken string + TaskRegister string + UpgradeName string + ZkCollateral string + ZkCollateralUbiZero string + type ComputeNode struct + API API + CONTRACT CONTRACT + Inference Inference + LOG LOG + RPC RPC + Registry Registry + UBI UBI + func GetConfig() *ComputeNode + type Inference struct + ApiKey string + ChainRPC string + CollateralContract string + Enable bool + Models []string + ServiceURL string + TaskContract string + WebSocketURL string + type LOG struct + CrtFile string + KeyFile string + type ModelConfig struct + Category string + Container string + Endpoint string + GPUMemory int + LocalModel string + type Pricing bool + func (p *Pricing) UnmarshalTOML(data interface{}) error + type RPC struct + SwanChainRpc string + type Registry struct + Password string + ServerAddress string + UserName string + type UBI struct + AutoChainProof bool + EdgeUrl string + EnableSequencer bool + SequencerUrl string + UbiEnginePk string + VerifySign bool