Documentation
¶
Index ¶
- Constants
- func Decrypt(encodedPlaintext string, privateKey string) (string, error)
- func Encrypt(plaintext string, privateKey string) string
- func FormatJSON(jsonString string) string
- func GetTimeWindow(window string) (int, time.Duration)
- func IsJsonValid(jsonString string, obj interface{}) bool
- func Log(logLevel string, message string, args ...interface{})
- func LogDebug(message string, args ...interface{})
- func LogError(message string, args ...interface{})
- func LogInfo(message string, args ...interface{})
- func ReadJsonFromFile(path string) string
- func ResponseJSON(w http.ResponseWriter, data interface{}, status int)
- func ToJsonFromObject(object interface{}) string
- func ToMapFromObject(obj interface{}) map[string]interface{}
Constants ¶
View Source
const ( LogLevelInfo = "INFO" LogLevelError = "ERROR" LogLevelDebug = "DEBUG" )
Variables ¶
This section is empty.
Functions ¶
func FormatJSON ¶
func IsJsonValid ¶
func ReadJsonFromFile ¶
func ResponseJSON ¶
func ResponseJSON(w http.ResponseWriter, data interface{}, status int)
func ToJsonFromObject ¶
func ToJsonFromObject(object interface{}) string
func ToMapFromObject ¶
func ToMapFromObject(obj interface{}) map[string]interface{}
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.