session

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandlerAddSession

func HandlerAddSession(ctx *context.Context) gin.HandlerFunc

func RegisterRoutes

func RegisterRoutes(ctx *context.Context, router gin.IRouter)

Types

type RequestAddSession

type RequestAddSession struct {
	AccAddress sdk.AccAddress
	Key        []byte
	Signature  []byte

	URI struct {
		AccAddress string `uri:"acc_address"`
		ID         uint64 `uri:"id" binding:"gt=0"`
	}
	Body struct {
		Key       string `json:"key"`
		Signature string `json:"signature"`
	}
}

func NewRequestAddSession

func NewRequestAddSession(c *gin.Context) (req *RequestAddSession, err error)

Jump to

Keyboard shortcuts

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