handler

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PEMStringToRSAPrivateKey

func PEMStringToRSAPrivateKey(pemStr string) (*rsa.PrivateKey, error)

func PEMStringToRSAPublicKey

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

func StructToJSON

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

Types

type Claims

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

type Handler

type Handler struct {
}

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(resp http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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