Documentation ¶
Overview ¶
Package config contains the configuration required to run a node. while each submodule defines it's own validator adhering to common.Validator they are all stored and validated centrally bt the node here.
Index ¶
Constants ¶
const AppName = "Sanguine"
AppName is the application name.
const DefaultCommit = "none"
DefaultCommit is the default commit. Build info will attempt to replace with the current commit if not present.
const DefaultVersion = "0.1.0"
DefaultVersion is the application version.
const VendorName = "synapsecns"
VendorName is the vendor named used for versioning schemes that depend on a vendor name we use the github name for convince.
Variables ¶
var DefaultDate = time.Now().Format(time.RFC3339)
DefaultDate when not passed in by the compiler.
Functions ¶
func GetConfigDir ¶
GetConfigDir gets the config dir. We create a default file to mark the directory level. if the config dir can not be created, an error is returned.
func GetLogoPath ¶
GetLogoPath fetches the logo path from the config and writes it to the global config if it doesn't exist TODO this should be more generalized to work across static assets when we have more. returns an empty string if not present. nolint: nestif
Types ¶
type BuildInfo ¶ added in v0.0.10
type BuildInfo struct {
// contains filtered or unexported fields
}
BuildInfo will contains build info from https://goreleaser.com/cookbooks/using-main.version
func NewBuildInfo ¶ added in v0.0.10
NewBuildInfo creates a build info struct from buildtime data it sets sensible defaults.
func (BuildInfo) VersionString ¶ added in v0.0.10
VersionString pretty prints a version string with the info above.