serve

package
v0.0.0-...-b399113 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateServer

func CreateServer() (*grpc.Server, error)

func PEMStringToRSAPublicKey

func PEMStringToRSAPublicKey(pemStr string) (*rsa.PublicKey, error)

func StructToJSON

func StructToJSON(obj interface{}) (string, error)

Types

type AuthServer

type AuthServer struct {
}

func (*AuthServer) Check

func (a *AuthServer) Check(context context.Context, req *auth.CheckRequest) (*auth.CheckResponse, error)

type Claims

type Claims struct {
	*jwt.StandardClaims
	Id       int64  `json:"id,omitempty"`
	Username string `json:"username,omitempty"`
}

Jump to

Keyboard shortcuts

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