Documentation
¶
Index ¶
- func Contains(in interface{}, value interface{}, comparators ...CompareFunc) bool
- func EncodeGob(s interface{}) []byte
- func EncodeMD5(value interface{}) string
- func EncodeMD5File(file *os.File) string
- func GenerateToken(username, password string) (string, error)
- func MapToStruct(m map[string]interface{}, t interface{}) error
- func RandString(size int) string
- func Setup()
- func StructToMap(t interface{}) (map[string]interface{}, error)
- type Claims
- type CompareFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Contains ¶
func Contains(in interface{}, value interface{}, comparators ...CompareFunc) bool
func GenerateToken ¶
GenerateToken generate tokens used for auth
func MapToStruct ¶
func RandString ¶
func StructToMap ¶
Types ¶
type Claims ¶
type CompareFunc ¶
Click to show internal directories.
Click to hide internal directories.