config

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CfgFile string

Cfg the root object of the configuration

Functions

func InitConfig

func InitConfig()

InitConfig initializes the configuration if provided.

Types

type Base64Config

type Base64Config struct {
	Encoding string
}

Base64Config allows configuration settings of the base64 cmd

type Config

type Config struct {
	Server ServerConfig
	Base64 Base64Config
	Random RandomConfig
	UUID   UUIDConfig
	Hash   HashConfig
	JWT    JWTConfig
}

Config is the root collection of command configurations

var Cfg *Config

type HashConfig

type HashConfig struct {
	Algorithm string
	Cost      int
}

HashConfig allows configuration settings of the hash cmd

type JWTConfig added in v1.0.2

type JWTConfig struct {
	Secret       string
	SecretFile   string
	Base64Secret bool
}

JWTConfig allows configuration settings of the jwt cmd

type RandomConfig

type RandomConfig struct {
	Algorithm string
	Length    int
}

RandomConfig allows configuration settings of the random cmd

type ServerConfig

type ServerConfig struct {
	Address     string
	Port        string
	OpenBrowser bool
}

ServerConfig allows configuration settings of the server cmd

type UUIDConfig

type UUIDConfig struct {
	Namespace string
	Version   int
}

UUIDConfig allows configuration settings of the uuid cmd

Jump to

Keyboard shortcuts

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