common

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2018 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	//Address add of user
	Address string `json:"address" binding:"required,isAddress"`
	//Timestamp return timestamp of adding address
	Timestamp int64 `json:"timestamp" binding:"required"`
}

Info an information of an user

type UserCap

type UserCap struct {
	// DailyLimit is the USD amount if the user is considered rich
	// and will receive different rates.
	DailyLimit float64 `json:"daily_limit"`
	// TxLimit is the maximum value in USD of a transaction an user
	// is allowed to make.
	TxLimit float64 `json:"tx_limit"`
}

UserCap is users transaction cap.

func NewUserCap

func NewUserCap(kyced bool) *UserCap

NewUserCap returns user cap based on KYC status.

type UserData

type UserData struct {
	//Email user email - unique
	Email string `json:"email" binding:"required,isEmail" db:"email"`
	//UserInfo user info include
	UserInfo []Info `json:"user_info" binding:"required,dive"`
}

UserData user data post through post request to store in stats database

Jump to

Keyboard shortcuts

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