Documentation ¶
Index ¶
- Variables
- func NewEntry(ctx http_service.IHttpContext) eosc.IEntry
- func ReadProxyFromProxyReader(reader IProxyReader, proxy http_service.IProxy, key string) (string, bool)
- type ChildEntry
- type CtxRule
- type Entry
- type Fields
- type IProxyReader
- type IReader
- type IReaderIndex
- type ProxyReadFunc
- type ProxyReadRequestFunc
- type ProxyReaders
- type ReadFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ProxiesChild = "proxies"
)
Functions ¶
func NewEntry ¶
func NewEntry(ctx http_service.IHttpContext) eosc.IEntry
func ReadProxyFromProxyReader ¶ added in v0.14.2
func ReadProxyFromProxyReader(reader IProxyReader, proxy http_service.IProxy, key string) (string, bool)
Types ¶
type ChildEntry ¶
type ChildEntry struct {
// contains filtered or unexported fields
}
func NewChildEntry ¶
func NewChildEntry(parent *Entry, index int, pre string, ReaderIndex IReaderIndex) *ChildEntry
func (*ChildEntry) Read ¶
func (c *ChildEntry) Read(pattern string) interface{}
func (*ChildEntry) ReadLabel ¶ added in v0.17.0
func (c *ChildEntry) ReadLabel(pattern string) string
type CtxRule ¶ added in v0.14.9
type CtxRule struct {
// contains filtered or unexported fields
}
func (*CtxRule) Read ¶ added in v0.14.9
func (l *CtxRule) Read(name string, ctx http_service.IHttpContext) (interface{}, bool)
type Fields ¶
func (Fields) Read ¶
func (f Fields) Read(name string, ctx http_service.IHttpContext) (interface{}, bool)
type IProxyReader ¶
type IProxyReader interface { ReadRequest(name string, proxy http_service.IRequest) (interface{}, bool) ReadProxy(name string, proxy http_service.IProxy) (interface{}, bool) }
type IReader ¶
type IReader interface {
Read(name string, ctx http_service.IHttpContext) (interface{}, bool)
}
type IReaderIndex ¶
type IReaderIndex interface {
ReadByIndex(index int, name string, ctx http_service.IHttpContext) (interface{}, bool)
}
type ProxyReadFunc ¶
type ProxyReadFunc func(name string, proxy http_service.IProxy) (interface{}, bool)
func (ProxyReadFunc) ReadProxy ¶
func (p ProxyReadFunc) ReadProxy(name string, proxy http_service.IProxy) (interface{}, bool)
type ProxyReadRequestFunc ¶ added in v0.18.0
type ProxyReadRequestFunc func(name string, proxy http_service.IRequest) (interface{}, bool)
type ProxyReaders ¶
type ProxyReaders map[string]IProxyReader
func GetProxyReaders ¶
func GetProxyReaders() ProxyReaders
func (ProxyReaders) Read ¶
func (p ProxyReaders) Read(name string, ctx http_service.IHttpContext) (interface{}, bool)
func (ProxyReaders) ReadByIndex ¶
func (p ProxyReaders) ReadByIndex(index int, name string, ctx http_service.IHttpContext) (interface{}, bool)
type ReadFunc ¶
type ReadFunc func(name string, ctx http_service.IHttpContext) (interface{}, bool)
func (ReadFunc) Read ¶
func (f ReadFunc) Read(name string, ctx http_service.IHttpContext) (interface{}, bool)
Click to show internal directories.
Click to hide internal directories.