gwparser

package
v0.0.0-...-7404c28 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package gwparser NOTES

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

type Parser interface {
	Parse(ctx context.Context, r http.Header) (kt *kit.Kit, err error)
	Fingerprint() string
}

Parser is request header parser.

func NewDefaultParser

func NewDefaultParser() Parser

NewDefaultParser init default Parser Note: authorize in prod env may cause security problems, only use for dev/test

func NewJWTParser

func NewJWTParser(pubKey string) (Parser, error)

NewJWTParser init JWT Parser

Jump to

Keyboard shortcuts

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