core

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 18, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetManifestForReleaseChannel added in v1.0.2

func GetManifestForReleaseChannel(releaseChannel types.ReleaseChannelSelection) (*types.VersionManifest, error)

func GetReleaseManifest added in v0.0.34

func GetReleaseManifest(version string) (*types.VersionManifest, error)

func ReadManifestFile added in v0.0.34

func ReadManifestFile(p string) (*types.VersionManifest, error)

func RequestWithRetry

func RequestWithRetry(method, url string, body, result interface{}, logRetries bool) (err error)

func SetRequestTimeout added in v1.0.2

func SetRequestTimeout(customRequestTimeoutSecs int)

func WriteFireflyConfig

func WriteFireflyConfig(config *FireflyConfig, filePath, extraCoreConfigPath string) error

Types

type AdminServerConfig

type AdminServerConfig struct {
	HttpServerConfig `yaml:",inline"`
	Enabled          bool `yaml:"enabled,omitempty"`
	PreInit          bool `yaml:"preinit,omitempty"`
}

type BasicAuth

type BasicAuth struct {
	Username string `yaml:"username,omitempty"`
	Password string `yaml:"password,omitempty"`
}

type BlockchainConfig

type BlockchainConfig struct {
	Type     string          `yaml:"type,omitempty"`
	Ethereum *EthereumConfig `yaml:"ethereum,omitempty"`
	Fabric   *FabricConfig   `yaml:"fabric,omitempty"`
}

type CommonDBConfig

type CommonDBConfig struct {
	URL        string            `yaml:"url,omitempty"`
	Migrations *MigrationsConfig `yaml:"migrations,omitempty"`
}

type DBEventsConfig added in v0.0.41

type DBEventsConfig struct {
	BufferSize int `yaml:"bufferSize,omitempty"`
}

type DataExchangeConfig

type DataExchangeConfig struct {
	Type string              `yaml:"type,omitempty"`
	FFDX *HttpEndpointConfig `yaml:"ffdx,omitempty"`
}

type DatabaseConfig

type DatabaseConfig struct {
	Type       string          `yaml:"type,omitempty"`
	PostgreSQL *CommonDBConfig `yaml:"postgres,omitempty"`
	SQLite3    *CommonDBConfig `yaml:"sqlite3,omitempty"`
}

type EthconnectConfig

type EthconnectConfig struct {
	URL      string     `yaml:"url,omitempty"`
	Instance string     `yaml:"instance,omitempty"`
	Topic    string     `yaml:"topic,omitempty"`
	Auth     *BasicAuth `yaml:"auth,omitempty"`
}

type EthereumConfig

type EthereumConfig struct {
	Ethconnect *EthconnectConfig `yaml:"ethconnect,omitempty"`
	FFTM       *FFTMConfig       `yaml:"fftm,omitempty"`
}

type EventConfig added in v0.0.41

type EventConfig struct {
	DBEvents *DBEventsConfig `yaml:"dbevents,omitempty"`
}

type FFTMConfig added in v1.0.2

type FFTMConfig struct {
	URL string `yaml:"url,omitempty"`
}

type FabconnectConfig added in v0.0.36

type FabconnectConfig struct {
	URL       string `yaml:"url,omitempty"`
	Channel   string `yaml:"channel,omitempty"`
	Chaincode string `yaml:"chaincode,omitempty"`
	Topic     string `yaml:"topic,omitempty"`
	Signer    string `yaml:"signer,omitempty"`
}

type FabricConfig added in v0.0.36

type FabricConfig struct {
	Fabconnect *FabconnectConfig `yaml:"fabconnect,omitempty"`
}

type FireflyConfig

type FireflyConfig struct {
	Log          *LogConfig           `yaml:"log,omitempty"`
	Debug        *HttpServerConfig    `yaml:"debug,omitempty"`
	HTTP         *HttpServerConfig    `yaml:"http,omitempty"`
	Admin        *AdminServerConfig   `yaml:"admin,omitempty"`
	Metrics      *MetricsServerConfig `yaml:"metrics,omitempty"`
	UI           *UIConfig            `yaml:"ui,omitempty"`
	Node         *NodeConfig          `yaml:"node,omitempty"`
	Org          *OrgConfig           `yaml:"org,omitempty"`
	Blockchain   *BlockchainConfig    `yaml:"blockchain,omitempty"`
	Database     *DatabaseConfig      `yaml:"database,omitempty"`
	P2PFS        *SharedStorageConfig `yaml:"sharedstorage,omitempty"`
	DataExchange *DataExchangeConfig  `yaml:"dataexchange,omitempty"`
	Tokens       TokensConfig         `yaml:"tokens,omitempty"`
	Event        *EventConfig         `yaml:"event,omitempty"`
}

func NewFireflyConfig added in v0.0.32

func NewFireflyConfig(stack *types.Stack, member *types.Member) *FireflyConfig

func ReadFireflyConfig

func ReadFireflyConfig(filePath string) (*FireflyConfig, error)

type FireflyIPFSConfig

type FireflyIPFSConfig struct {
	API     *HttpEndpointConfig `yaml:"api,omitempty"`
	Gateway *HttpEndpointConfig `yaml:"gateway,omitempty"`
}

type HttpEndpointConfig

type HttpEndpointConfig struct {
	URL  string    `yaml:"url,omitempty"`
	Auth BasicAuth `yaml:"auth,omitempty"`
}

type HttpServerConfig

type HttpServerConfig struct {
	Port      int    `yaml:"port,omitempty"`
	Address   string `yaml:"address,omitempty"`
	PublicURL string `yaml:"publicURL,omitempty"`
}

type LogConfig

type LogConfig struct {
	Level string `yaml:"level,omitempty"`
}

type MetricsServerConfig added in v0.0.40

type MetricsServerConfig struct {
	HttpServerConfig `yaml:",inline"`
	Enabled          bool   `yaml:"enabled,omitempty"`
	Path             string `yaml:"path,omitempty"`
}

type MigrationsConfig

type MigrationsConfig struct {
	Auto      bool   `yaml:"auto,omitempty"`
	Directory string `yaml:"directory,omitempty"`
}

type NodeConfig

type NodeConfig struct {
	Name string `yaml:"name,omitempty"`
}

type OrgConfig

type OrgConfig struct {
	Name string `yaml:"name,omitempty"`
	Key  string `yaml:"key,omitempty"`
}

type SharedStorageConfig added in v1.0.2

type SharedStorageConfig struct {
	Type string             `yaml:"type,omitempty"`
	IPFS *FireflyIPFSConfig `yaml:"ipfs,omitempty"`
}

type TokenConnector

type TokenConnector struct {
	Plugin string `yaml:"plugin,omitempty"`
	Name   string `yaml:"name,omitempty"`
	URL    string `yaml:"url,omitempty"`
}

type TokensConfig

type TokensConfig []*TokenConnector

type UIConfig

type UIConfig struct {
	Path string `yaml:"path,omitempty"`
}

Jump to

Keyboard shortcuts

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