constants

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//DefaultConfigFile default config filename
	DefaultConfigFile = "config.yml"
	//DataDir the dir where the config and data is
	DataDir = "./data/"
)

Variables

View Source
var (
	GreenSuccessfully = color.HiGreenString("Successfully")
	RedError          = color.HiRedString("Error")
)

Colorized strings

View Source
var EncryptionCiphers = []string{
	"aes",
}

EncryptionCiphers supported encryption chipers

View Source
var (
	LogLevels = []string{
		"debug",
		"info",
		"warning",
		"error",
	}
)

LogLevels

Functions

func ChiperToInt

func ChiperToInt(c string) int32

ChiperToInt cipter to int

func ChiperToString

func ChiperToString(i int32) string

ChiperToString cipter to int

func EncryptionIValid

func EncryptionIValid(i int32) bool

EncryptionIValid return true if encryption i is valid

func IsValidCipher

func IsValidCipher(c string) bool

IsValidCipher return true if given cipher is valid

Types

This section is empty.

Jump to

Keyboard shortcuts

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