models

package
v0.0.0-...-7858d57 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomClaims

type CustomClaims struct {
	Rollno string `json:"rollno"`
	jwt.StandardClaims
}

type LoginRequest

type LoginRequest struct {
	Rollno   string `json:"rollno"`
	Password string `json:"password"`
}

type LoginToken

type LoginToken struct {
	Name  string `json:"name"`
	Token string `json:"token"`
}

type RewardPayload

type RewardPayload struct {
	Rollno string `json:"rollno"`
	Coins  int64  `json:"coins,string"`
}

type TransferPayload

type TransferPayload struct {
	SenderRollno   string `json:"sender"`
	ReceiverRollno string `json:"receiver"`
	Coins          int64  `json:"coins,string"`
}

type User

type User struct {
	Name     string `json:"name"`
	Rollno   string `json:"rollno"`
	Password string `json:"password"`
}

Jump to

Keyboard shortcuts

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