endpoint

package
v0.0.0-...-d905402 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientEndpoint

type ClientEndpoint struct {
	// contains filtered or unexported fields
}

ClientEndpoint 客户端终端

func (*ClientEndpoint) Get

func (c *ClientEndpoint) Get() endpoint.Endpoint

Get 通过客户端标识与密钥获取

type Container

type Container struct {
	ClientEndpoint *ClientEndpoint
}

Container 终端容器 终端负责接收请求,处理请求,并返回结果。可以添加熔断、日志、限流、负载均衡等能力

func New

func New(srv *service.Container) *Container

type OAuth2Endpoint

type OAuth2Endpoint struct {
	// 令牌终端
	TokenEndpoint endpoint.Endpoint
	// 校验令牌终端
	CheckTokenEndpoint endpoint.Endpoint
}

OAuth2Endpoint 终端,负责接收请求,处理请求,并返回结果。可以添加熔断、日志、限流、负载均衡等能力

Jump to

Keyboard shortcuts

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