util

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const PChainAlias = "P"

Variables

This section is empty.

Functions

func GetRootPath

func GetRootPath() string

Types

type Config

type Config struct {
	ListenerAddress string   `mapstructure:"listenerAddress"`
	Database        Database `mapstructure:"database"`
	CaminoNode      string   `mapstructure:"caminoNode"`
	NetworkId       uint32   `mapstructure:"networkId"`
	TxExpiration    int      `mapstructure:"txExpirationDays"`
}

func GetInstance

func GetInstance() *Config

type Database

type Database struct {
	Dsn  string `mapstructure:"dsn"`
	Type string `mapstructure:"type"`
}

Jump to

Keyboard shortcuts

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