Documentation ¶
Overview ¶
Copyright 2017 Elliott Polk. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.
Copyright 2017 Elliott Polk. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.
Index ¶
Constants ¶
View Source
const DefaultEnv = "default"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { App string `json:"app"` Environment string `json:"environment"` Value string `json:"config"` }
func (*Config) Decrypt ¶
Decrypt will take the provided token and attempt to decrypt the config.Value. No additional processing on the token will occur.
func (*Config) Encrypt ¶
Encrypt will take the provided token, convert it to a base64 string, attempt to encrypt the config.Value, and return the final version of the token used for encryption. If no token is provided, a UUID (v4) will be generated.
func (*Config) MustString ¶
Click to show internal directories.
Click to hide internal directories.