service

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RouterEndpointKey = routerEndpointKey{}

Functions

func AddEndpoint

func AddEndpoint(ctx http_service.IHttpContext, endpoint IRouterEndpoint)

func CheckSkill

func CheckSkill(skill string) bool

CheckSkill 检查目标技能是否符合

Types

type IRouterEndpoint

type IRouterEndpoint interface {
	Location() (checker.Checker, bool)
	Header(name string) (checker.Checker, bool)
	Query(name string) (checker.Checker, bool)
	Headers() []string
	Queries() []string
}

IRouterEndpoint 实现了返回路由规则信息方法的接口,如返回location、Host、Header、Query

func EndpointFromContext

func EndpointFromContext(ctx http_service.IHttpContext) (IRouterEndpoint, bool)

type IService

type IService interface {
	http_service.IChain
}

IService github.com/eolinker/apinto/service.service.IService

type IServiceCreate

type IServiceCreate interface {
	Create(id string, configs map[string]*plugin.Config) IService
}

Jump to

Keyboard shortcuts

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