flake

package
v0.0.0-...-1f25f6a Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OPTMW

func OPTMW(c *gin.Context)

func Ok

func Ok(c *gin.Context)

Ok godoc @Summary Return 200 status Ok @Tags Healthcheck @Produce json @Success 200 {object} Response @Router /healthcheck [get]

func Register

func Register(c *gin.Context)

Register godoc @Summary Return 200 status TxHash @Tags Register @Produce json @Success 200 {object} Response @Router /register [post]

func Reset

func Reset(c *gin.Context)

Reset godoc @Summary Return 200 status TxHash @Tags Reset @Produce json @Success 200 {object} Response @Router /reset [post]

Types

type RegisterStruct

type RegisterStruct struct {
	Username string `json:"Username"`
	Salt     string `json:"Salt"`
	Verifier string `json:"Verifier"`
	Phone    int    `json:"Phone"`
}

type ResetStruct

type ResetStruct struct {
	Username string `json:"Username"`
	Salt     string `json:"Salt"`
	Verifier string `json:"Verifier"`
	Phone    int    `json:"Phone"`
}

type Response

type Response struct {
	Status int `json:"status" binding:"required"`
}

Jump to

Keyboard shortcuts

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