Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultPathRoot is the path to the default config dir location. DefaultApiPathRoot = "~/" // DefaultConfigFile is the filename of the configuration file DefaultApiConfigFile = ".config" // EnvDir is the environment variable used to change the path root. EnvDir = "BTFS_PATH" )
Variables ¶
This section is empty.
Functions ¶
func GetPrivateKey ¶
func GetPrivateKey() string
func GetPublicKey ¶
func GetPublicKey() string
func GetSessionSignature ¶
func GetSessionSignature() string
func LoadApiConfig ¶
func LoadApiConfig() error
Precondition: Call This function when any of the member variables of the ApiConfig object has zero value.
func RandString ¶
func SetSessionSignature ¶
func SetSessionSignature(sessionSig string)
Types ¶
type ApiConfigStruct ¶
type ApiConfigStruct struct { PrivateKey string PeerId string PublicKey string SessionSignature string }
var ApiConfig ApiConfigStruct
Click to show internal directories.
Click to hide internal directories.