# Functions
BindAndValid valid params.
Error return a error response.
HealthCheck will return OK if the underlying BoltDB is healthy.
New create a app globally.
NewResponse return a response.
Parse validates the token with the specified secret, and returns the payloads if the token was valid.
ParseRequest gets the token from the header and pass it to the Parse function to parses the token.
RouteNotFound 未找到相关路由.
Sign signs the payload with the specified secret.
Success return a success response.
WithContext with a context.
WithEndpoint with service endpoint.
WithID with app id.
WithLogger .
WithMetadata with service metadata.
WithName .
WithRegistry with service registry.
WithServer with a server , http or grpc.
WithSignal with some system signal.
WithVersion with a version.
# Variables
Conf global app var.
ErrMissingHeader means the `Authorization` header was empty.
# Structs
App global app.
Config global config nolint.
Payload is the data of the JSON web token.
Response define a response struct.
ServerConfig server config.
ValidError .