global

package
v0.0.0-...-8c1ffaf Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BackendName = "__IITK-Coin.dflt-backend__"

Defualt values

View Source
var MailHost = "smtp.gmail.com"
View Source
var MailPort = 587
View Source
var MaxCap = 101.0
View Source
var MinEvents = 5
View Source
var MyGmailId = "sender@example.com"
View Source
var MyPwd = "sender.pwd"
View Source
var RedisHost = "localhost"
View Source
var RedisPassword = "__dflt-pwd__"
View Source
var SignatureKey = "xyz"
View Source
var TknExpTime = 15 // mins

Functions

This section is empty.

Types

type DefaultDataRespBody

type DefaultDataRespBody struct {
	Message interface{} `json:"message"`
	Error   interface{} `json:"error"`
	Data    interface{} `json:"data"`
}

type DefaultRespBody

type DefaultRespBody struct {
	Message interface{} `json:"message"`
	Error   interface{} `json:"error"`
}

type LoginRespBody

type LoginRespBody struct {
	Message interface{} `json:"message"`
	Error   interface{} `json:"error"`
	Token   interface{} `json:"token"`
}

type PwdResetObj

type PwdResetObj struct {
	Rollno int    `json:"rollno"`
	NewPwd string `json:"new_password"`
	Otp    string `json:"otp"`
}

type RedeemObj

type RedeemObj struct {
	Redeemer int     `json:"redeemer"`
	ItemId   int     `json:"item_id"`
	Amount   float64 `json:"amount"`
	Descr    string  `json:"description"`
	Otp      string  `json:"otp"`
}

type RedeemReqObj

type RedeemReqObj struct {
	Id          int         `json:"request_id"`
	Redeemer    int         `json:"redeemer"`
	ItemId      int         `json:"item_id"`
	Amount      float64     `json:"amount"`
	Descr       string      `json:"description"`
	RequestedOn interface{} `json:"requested_on"`
}

type RedeemRespBody

type RedeemRespBody struct {
	Message interface{} `json:"message"`
	Error   interface{} `json:"error"`
	ReqId   interface{} `json:"request_id"`
}

type RedeemStatusUPDBody

type RedeemStatusUPDBody struct {
	Id     int     `json:"request_id"`
	User   int     `json:"user"`
	Coins  float64 `json:"coins"`
	Status string  `json:"status"`
	Descr  string  `json:"description"`
}

type Stu

type Stu struct {
	Rollno   int    `json:"rollno"`
	Name     string `json:"name"`
	Email    string `json:"iitk_email"`
	Password string `json:"password"`
	Batch    string `json:"batch"`
	Role     string `json:"role"`
}

type TxnObj

type TxnObj struct {
	Sender   int     `json:"sender"`
	Receiver int     `json:"receiver"`
	AmtSent  float64 `json:"amount_sent"`
	AmtRcvd  float64 `json:"amount_received"`
	Descr    string  `json:"description"`
	Otp      string  `json:"otp"`
}

type TxnRespBody

type TxnRespBody struct {
	Message interface{} `json:"message"`
	Error   interface{} `json:"error"`
	TxnId   interface{} `json:"transaction_id"`
}

type UserRedeemState

type UserRedeemState struct {
	Id          int         `json:"id"`
	ItemId      int         `json:"item_id"`
	Amount      float64     `json:"amount"`
	Description string      `json:"description"`
	Status      string      `json:"status"`
	RequestedOn interface{} `json:"requested_on"`
	RespondedOn interface{} `json:"responded_on"`
}

type ViewCoinsRespBody

type ViewCoinsRespBody struct {
	Message interface{} `json:"message"`
	Error   interface{} `json:"error"`
	Coins   interface{} `json:"coins"`
}

Jump to

Keyboard shortcuts

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