Documentation
¶
Index ¶
- func BlobToRSAPublicKey(blob []byte) (pk *rsa.PublicKey, err error)
- func FileToBytes(filenameParts ...string) ([]byte, error)
- func FileToString(filenameParts ...string) (string, error)
- func GetFilename(filenameParts ...string) string
- func GetRoot() string
- func InitApp(root string) (err error)
- func ReadJSON(result interface{}, filenameParts ...string) error
- func ReadRSAPrivateKey(filename string) (pk *rsa.PrivateKey, err error)
- func ReadRSAPublicKey(filename string) (pk *rsa.PublicKey, err error)
- func ReadYAML(result interface{}, filenameParts ...string) error
- func StringToRSAPublicKey(str string) (pk *rsa.PublicKey, err error)
- type Config
- type ConfigMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileToBytes ¶
func FileToString ¶
func GetFilename ¶
func ReadRSAPrivateKey ¶
func ReadRSAPrivateKey(filename string) (pk *rsa.PrivateKey, err error)
Types ¶
type Config ¶
type Config interface { Get(path ...interface{}) (Config, error) GetString(path ...interface{}) string GetBool(path ...interface{}) bool GetArray(path ...interface{}) []Config GetMap(path ...interface{}) (ConfigMap, error) MakeMap(path ...interface{}) (ConfigMap, error) AddArrayElement(obj interface{}, path ...interface{}) error SetString(name, value string) error Write() error }
func GetOrCreateConfigFile ¶
func ReadConfigFile ¶
Click to show internal directories.
Click to hide internal directories.