enums

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APP_NAME = "APP_NAME"
	ENV      = "ENV"
	PORT     = "PORT"
	TIMEZONE = "TIMEZONE"
)
View Source
const (
	DEV        = "DEV"
	PRODUCTION = "PRODUCTION"
)
View Source
const (
	DEBUG      = "DEBUG"
	VERSION    = "VERSION"
	COMMIT_SHA = "COMMIT_SHA"

	RELEASE_URL = "RELEASE_URL"
)
View Source
const (
	APP_LOG_FILE_FORMAT = "APP_LOG_FILE_FORMAT"
	STD_REPO_URI        = "STD_REPO_URI"

	STD_MODULE_PREFIX = "STD_MODULE_PREFIX"

	STD_MODULE_FORMAT = STD_REPO_URI + STD_MODULE_PREFIX + "-%s"
)
View Source
const (
	APP_DIR        = "app_dir"
	APP_DATA_DIR   = "app-data-dir"
	APP_PLUGIN_DIR = "app-plugin-dir"
)
View Source
const (
	DEALER      = "dealer"
	DEALER_PATH = "dealer-path"
)
View Source
const (
	HIVE_CONTROLLER = "hive_controller"
	HIVE_PAYMENTS   = "HIVE_PAYMENT"

	HIVE_STORAGE = "HIVE_STORAGE"
	HIVE_USERS   = "HIVE_USERS"

	HIVE_TOKEN = "HIVE_TOKEN"

	HIVE_MEDIATORS = "HIVE_MEDIATORS"

	HIVE_JOBCREATOR = "HIVE_JOBCREATOR"

	HIVE_SOLVER = "HIVE_SOLVER"
)
View Source
const (
	WEB3_RPC_URL     = "WEB3_RPC_URL"
	WEB3_PRIVATE_KEY = "web3_private_key"

	HIVE_PRIVATE_KEY = "HIVE_PRIVATE_KEY"
	WEB3_CHAIN_ID    = "WEB3_CHAIN_ID"
)
View Source
const (
	RP_PRIVATE_KEY       = "RP_PRIVATE_KEY"
	JC_PRIVATE_KEY       = "JC_PRIVATE_KEY"
	SOLVER_PRIVATE_KEY   = "SOLVER_PRIVATE_KEY"
	MEDIATOR_PRIVATE_KEY = "MEDIATOR_PRIVATE_KEY"
)
View Source
const (
	SERVER_URL  = "server_url"
	SERVER_HOST = "server_host"
	SERVER_PORT = "server_port"
)

Solver

View Source
const (
	OFFER_CPU   = "OFFER_CPU"
	OFFER_GPU   = "OFFER_GPU"
	OFFER_RAM   = "OFFER_RAM"
	OFFER_COUNT = "OFFER_COUNT"

	OFFER_MODULES = "OFFER_MODULES"
)
View Source
const (
	BACALHAU_API_HOST = "BACALHAU_API_HOST"
	BACALHAU_HOME     = "BACALHAU_HOME"
	BACALHAU_ENV      = "BACALHAU_ENV"
)
View Source
const (
	MODULE_NAME = "MODULE_NAME"
	MODULE_REPO = "MODULE_REPO"
	MODULE_HASH = "MODULE_HASH"
	MODULE_PATH = "MODULE_PATH"
)
View Source
const (
	BACALHAU_BIN = "bacalhau_bin"

	BACALHAU_RESULTS_DIR = "BACALHAU_RESULTS_DIR"

	BACALHAU_SPECS_DIR = "BACALHAU_SPECS_DIR"

	BACALHAU_JOBS_DIR = "BACALHAU_JOBS_DIR"

	REPO_DIR = "REPO_DIR"

	DOWNlOADS_DIR = "DOWNLOADS_DIR"
)
View Source
const (
	JOBCREATOR_OPTION_INPUT = "i"
)
View Source
const (
	JOB_PRICE = "JOB_PRICE"
)
View Source
const (
	MODE = "MODE"
)
View Source
const (
	NETWORK = "network"
)
View Source
const PRICING_MODE = "PRICING_MODE"

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceType added in v0.10.7

type ServiceType int
const (
	JC ServiceType = iota
	RP

	SOLVER
	MEDIATOR
)

func (ServiceType) GetPrivateKeyEnum added in v0.10.7

func (s ServiceType) GetPrivateKeyEnum() string

GetPrivateKeyEnum returns the enum associated with retrieving the private key for the service

func (ServiceType) ProcessDirectoryForService added in v0.11.0

func (s ServiceType) ProcessDirectoryForService(appDataDir string) (string, error)

ProcessDirectoryForService returns the directory for the service. Deprecated on b0c1d4f29508f6718e72fca14f2bb4302774dbff

func (ServiceType) ProcessSyncServiceDirectory added in v0.11.0

func (s ServiceType) ProcessSyncServiceDirectory(appDir string, syncFunc func(serviceDir string)) (string, error)

func (ServiceType) String added in v0.10.7

func (i ServiceType) String() string

Jump to

Keyboard shortcuts

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