config

package
v0.0.0-...-7d175ed Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2023 License: AGPL-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 CacheConfig

type CacheConfig struct {
	SpanInSeconds int `toml:"span_in_seconds"`
	NumOfChunks   int `toml:"num_of_chunks"`
}

type Config

type Config struct {
	Web   WebConfig   `toml:"web"`
	Rpc   RpcConfig   `toml:"rpc"`
	Cache CacheConfig `toml:"cache"`
	GC    GcConfig    `toml:"gc"`
}
var C *Config

func LoadConfig

func LoadConfig(path string) *Config

type GcConfig

type GcConfig struct {
	ExpiresInMinutes    int `toml:"expires_in_minutes"`
	GcIntervalInMinutes int `toml:"gc_interval_in_minutes"`
}

type RpcConfig

type RpcConfig struct {
	Enable bool   `toml:"enable"`
	Port   string `toml:"port"`
}

type WebConfig

type WebConfig struct {
	Enable bool   `toml:"enable"`
	Port   string `toml:"port"`
}

Jump to

Keyboard shortcuts

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