configs

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Server struct {
		Port int    `mapstructure:"port"`
		Host string `mapstructure:"host"`
	} `mapstructure:"server"`
	Prover ProverConfig `mapstructure:"prover"`
	Log    struct {
		Level string `json:"level"`
	}
}

Config structure represent yaml config for prover serever

func ReadConfigFromFile

func ReadConfigFromFile(path string) (*Config, error)

ReadConfigFromFile parse config file

type ProverConfig

type ProverConfig struct {
	CircuitsBasePath string `mapstructure:"circuitsBasePath"`
	UseRapidsnark    bool   `mapstructure:"useRapidsnark"`
}

ProverConfig contains only base path to circuits folder

Jump to

Keyboard shortcuts

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