transport

package
v0.0.0-...-de569a9 Latest Latest
Warning

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

Go to latest
Published: May 21, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// 错误请求
	ErrorBadRequest = errors.New("invalid request parameter")
	// 错误的授权类型
	ErrorGrantTypeRequest = errors.New("invalid request grant type")
	// 错误的令牌
	ErrorTokenRequest = errors.New("invalid request token")
	// 无效的客户端请求
	ErrInvalidClientRequest = errors.New("invalid client message")
)

传输层,对外暴露项目的服务接口

Functions

func MakeHttpHandler

func MakeHttpHandler(ctx context.Context, endpoints endpoint.OAuth2Endpoints, tokenService service.TokenService, clientService service.ClientDetailsService, logger log.Logger) http.Handler

创建http处理器

Types

This section is empty.

Jump to

Keyboard shortcuts

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