controller

package
v0.0.0-...-352c0ba Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckToken

func CheckToken(req *pb.CheckTokenRequest) *pb.CheckTokenResponse

CheckToken func

func Login

func Login(req *pb.LoginRequest) *pb.LoginResponse

func Register

func Register(req *pb.RegisterRequest) *pb.RegisterResponse

Register controller fuc

Types

type MyCustomClaims

type MyCustomClaims struct {
	Email   string `json:"email"`
	IsAdmin bool   `json:"isAdmin"`
	jwt.StandardClaims
}

MyCustomClaims for jwt

Jump to

Keyboard shortcuts

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