config

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

The config package handles all of the node's configurations, which are mostly obtained through environment variables.

The get.go file contains most of the getter functions for the configuration values. Its code is automatically generated by the generate/main.go script, given the environment variable configured in the generate/Config.toml file.

Custom getters are defined in the config.go file.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorLogger   *log.Logger
	WarningLogger *log.Logger
	InfoLogger    *log.Logger
	DebugLogger   *log.Logger
)

Functions

func GetCartesiBlockchainBlockTimeout

func GetCartesiBlockchainBlockTimeout() int

func GetCartesiBlockchainFinalityOffset

func GetCartesiBlockchainFinalityOffset() int

func GetCartesiBlockchainHttpEndpoint

func GetCartesiBlockchainHttpEndpoint() string

func GetCartesiBlockchainId

func GetCartesiBlockchainId() int

func GetCartesiBlockchainIsLegacy

func GetCartesiBlockchainIsLegacy() bool

func GetCartesiBlockchainWsEndpoint

func GetCartesiBlockchainWsEndpoint() string

func GetCartesiContractsApplicationAddress

func GetCartesiContractsApplicationAddress() string

func GetCartesiContractsApplicationDeploymentBlockNumber

func GetCartesiContractsApplicationDeploymentBlockNumber() string

func GetCartesiContractsAuthorityAddress

func GetCartesiContractsAuthorityAddress() string

func GetCartesiContractsHistoryAddress

func GetCartesiContractsHistoryAddress() string

func GetCartesiContractsInputBoxAddress

func GetCartesiContractsInputBoxAddress() string

func GetCartesiContractsInputBoxDeploymentBlockNumber

func GetCartesiContractsInputBoxDeploymentBlockNumber() int64

func GetCartesiExperimentalDisableConfigLog added in v1.3.1

func GetCartesiExperimentalDisableConfigLog() bool

func GetCartesiExperimentalServerManagerBypassLog added in v1.3.1

func GetCartesiExperimentalServerManagerBypassLog() bool

func GetCartesiExperimentalSunodoValidatorEnabled

func GetCartesiExperimentalSunodoValidatorEnabled() bool

func GetCartesiExperimentalSunodoValidatorRedisEndpoint

func GetCartesiExperimentalSunodoValidatorRedisEndpoint() string

func GetCartesiFeatureDisableClaimer

func GetCartesiFeatureDisableClaimer() bool

func GetCartesiFeatureDisableMachineHashCheck

func GetCartesiFeatureDisableMachineHashCheck() bool

func GetCartesiFeatureHostMode

func GetCartesiFeatureHostMode() bool

func GetCartesiHttpAddress

func GetCartesiHttpAddress() string

func GetCartesiHttpPort

func GetCartesiHttpPort() int

func GetCartesiLogTimestamp

func GetCartesiLogTimestamp() bool

func GetCartesiPostgresEndpoint

func GetCartesiPostgresEndpoint() string

func GetCartesiSnapshotDir

func GetCartesiSnapshotDir() string

Types

type Auth

type Auth any

Auth objects are used to sign transactions.

func GetAuth

func GetAuth() Auth

type AuthAWS

type AuthAWS struct {
	KeyID  string
	Region string
}

Allows signing through AWS services.

type AuthMnemonic

type AuthMnemonic struct {
	Mnemonic     string
	AccountIndex int
}

Allows signing through mnemonics.

type Duration

type Duration = time.Duration

func GetCartesiEpochDuration

func GetCartesiEpochDuration() Duration

type LogLevel

type LogLevel uint8
const (
	LogLevelDebug LogLevel = iota
	LogLevelInfo
	LogLevelWarning
	LogLevelError
)

func GetCartesiLogLevel

func GetCartesiLogLevel() LogLevel

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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