config

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: MIT Imports: 7 Imported by: 49

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

View Source
const AppName = "Sanguine"

AppName is the application name.

View Source
const AppVersion = "0.1.0"

AppVersion is the application version.

View Source
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

This section is empty.

Functions

func GetConfigDir

func GetConfigDir() (string, error)

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

func GetLogoPath() (_ string, err error)

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

This section is empty.

Jump to

Keyboard shortcuts

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