config

package
v0.0.0-...-c84c9ce Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	Execution ExecutionConfig `json:"executionConfig"`
	Network   NetworkConfig   `json:"networkConfig"`
	Storage   StorageConfig   `json:"storageConfig"`
	Grpc      GrpcConfig      `json:"grpcConfig"`
}

func LoadConfig

func LoadConfig() (*AppConfig, error)

type ExecutionConfig

type ExecutionConfig struct {
}

type GrpcConfig

type GrpcConfig struct {
	Port int `json:"port"`
}

type NetworkConfig

type NetworkConfig struct {
	Namespace string   `json:"namespace"`
	Topics    []string `json:"topics"`
	MaxPeers  int      `json:"maxPeers"`
	Port      int      `json:"port"`
}

type StorageConfig

type StorageConfig struct {
	DatabasePath string `json:"databasePath"`
}

Jump to

Keyboard shortcuts

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