parsers

package
v0.0.1-Beta01 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package parsers - NekoBlog backend server data parsing utilities. This file is for token parsing. Copyright (c) [2024], Author(s): - WhitePaper233<baizhiwp@gmail.com>

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseToken

func ParseToken(token string) (*types.BearerTokenClaims, error)

ParseToken 解析令牌。

参数:

  • token:令牌字符串。

返回值:

  • *BearerTokenClaims:令牌中的声明。
  • error:如果在解析过程中发生错误,则返回相应的错误信息,否则返回nil。

Types

This section is empty.

Jump to

Keyboard shortcuts

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