utils

package
v0.0.0-...-9a7bc8d Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckUsername

func CheckUsername(s string) (name, phone, email string, ok bool)

CheckUsername as name/phone/email

func IsEmail

func IsEmail(s string) bool

IsEmail Check

func IsPhone

func IsPhone(s string) bool

IsPhone Check

func IsUsername

func IsUsername(s string) bool

IsUsername Check

func MicroHandlerContextWithValue

func MicroHandlerContextWithValue(k, v interface{}) server.HandlerWrapper

MicroHandlerContextWithValue Util

func MicroSubscriberContextWithValue

func MicroSubscriberContextWithValue(k, v interface{}) server.SubscriberWrapper

MicroSubscriberContextWithValue Util

func RepoErrorFilter

func RepoErrorFilter(result *gorm.DB) error

RepoErrorFilter Utils - gate will not import this utils

Types

This section is empty.

Jump to

Keyboard shortcuts

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