config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: MIT Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	AppName = "git-remote-gitopia"

	// git config section and option keys used by the Gitopia CLI / tooling.
	GitopiaConfigSection             = "gitopia"
	GitopiaConfigChainIdOption       = "chainId"
	GitopiaConfigGRPCHostOption      = "grpcHost"
	GitopiaConfigTmAddrOption        = "tmAddr"
	GitopiaConfigGitServerHostOption = "gitServerHost"
	GitopiaConfigKeyOption           = "key"
	GitopiaConfigBackendOption       = "backend"
	GitopiaConfigGasPricesOption     = "gasPrices"
	GitopiaConfigFeeGranterOption    = "feeGranter"
	GitopiaConfigDenomOption         = "denom"
)

Default configuration keys and values.

Variables

View Source
var (
	ChainId        = "gitopia"
	GitServerHost  = "https://server.gitopia.com"
	GasPrices      = "0.001ulore"
	FeeGranterAddr = "gitopia13ashgc6j5xle4m47kqyn5psavq0u3klmscfxql"
	Denom          = "ulore"
)

Mutable values that may be overridden at runtime by LoadGitConfig.

Functions

func GitConfigGet

func GitConfigGet(key string) (string, error)

GitConfigGet reads a value from global git config: `git config --get gitopia.<key>`.

func LoadGitConfig

func LoadGitConfig() error

LoadGitConfig populates the package variables from the user's git config if they exist.

Types

This section is empty.

Jump to

Keyboard shortcuts

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