handlers

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

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

Go to latest
Published: Mar 2, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthHandler

func AuthHandler(c *gin.Context)

AuthHandler handles authentication of a user and initiates a session.

func GetnodeStatusHandler

func GetnodeStatusHandler(c *gin.Context)

You need to change it to be a little more communication efficient.

func GetnodeStatusHandler_v2

func GetnodeStatusHandler_v2(c *gin.Context)

func GetvalidatorSignInfo

func GetvalidatorSignInfo(c *gin.Context)

func GetvalidatorSignInfo_v2

func GetvalidatorSignInfo_v2(c *gin.Context)

func LoginHandler

func LoginHandler(c *gin.Context)

LoginHandler handles the login procedure.

func RandToken

func RandToken(l int) (string, error)

RandToken generates a random @l length token.

Types

type Credentials

type Credentials struct {
	Cid         string `json:"cid"`
	Csecret     string `json:"csecret"`
	RedirectURL string `json:"url"`
}

Credentials which stores google ids.

Jump to

Keyboard shortcuts

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