utils

package
v0.0.0-...-916e37d Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APIUser            = "/User"
	RegisterNewDoctor  = "/RegisterNewDoctor"
	SendSignUpPin      = "/SendSignUpPin"
	Login              = "/Login"
	GetUserInfo        = "/GetUserInfo"
	UpdateProfile      = "/UpdateProfile"
	UploadImageWalls   = "/UploadImageWalls"
	ImageWalls         = "/ImageWalls"
	Avatar             = "/Avatar"
	GetImageWall       = "/GetImageWall"
	GetTags            = "/GetTags"
	UpdateTags         = "/UpdateTags"
	UpdateAvatar       = "/UpdateAvatar"
	UpdateBasicProfile = "/UpdateBasicProfile"
)
View Source
const (
	APIChat    = "/Chat"
	UploadFile = "/UploadFile"
)
View Source
const (
	APIMatch        = "/Match"
	GetNearByPeople = "/GetNearByPeople"
	AddLikeStatus   = "/AddLikeStatus"
)
View Source
const (
	APIContacts         = "/Contacts"
	GetContactsByChatID = "/GetContactsByChatID"
	AddNewFriend        = "/AddNewFriend"
)

Variables

View Source
var Exists = struct{}{}
View Source
var Jwt, _ = jwt.New(15*time.Minute, jwt.HS256, []byte("hello"))

Functions

func GenerateFileName

func GenerateFileName(chatId int) string

func SendPinEmail

func SendPinEmail(email string, pin string) error

func ValidateParam

func ValidateParam(ctx iris.Context, param interface{}) error

Types

type Set

type Set struct {
	M map[interface{}]struct{}
}

func NewSet

func NewSet() *Set

func (*Set) Add

func (s *Set) Add(item interface{})

func (*Set) AddArray

func (s *Set) AddArray(items ...interface{})

func (*Set) Clear

func (s *Set) Clear()

func (*Set) Contains

func (s *Set) Contains(item interface{}) bool

func (*Set) Delete

func (s *Set) Delete(item interface{})

func (*Set) Size

func (s *Set) Size() int

func (*Set) Values

func (s *Set) Values() []interface{}

type Worker

type Worker struct {
	// contains filtered or unexported fields
}

func NewWorker

func NewWorker(workerId int64) (*Worker, error)

func (*Worker) GetId

func (w *Worker) GetId() int64

Jump to

Keyboard shortcuts

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