utils

package
v0.0.0-...-43618a6 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEnv

func GetEnv(key, fallback string) string

func GetMD5

func GetMD5(input string) string

func NewError

func NewError(msg string) error

Types

type RestErr

type RestErr struct {
	Message string `json:"message"`
	Status  int    `json:"status"`
	Error   string `json:"error"`
}

func NewBadRequestError

func NewBadRequestError(message string) *RestErr

func NewForbiddenError

func NewForbiddenError(message string) *RestErr

func NewInternalServerError

func NewInternalServerError(message string) *RestErr

func NewNotFoundError

func NewNotFoundError(message string) *RestErr

func NewUnauthorizedError

func NewUnauthorizedError(message string) *RestErr

func SendSms

func SendSms(message string, mobile string) *RestErr

Jump to

Keyboard shortcuts

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