Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ProxiesChild = "proxies"
)
Functions ¶
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{}
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 Entry ¶
type Entry struct {
// contains filtered or unexported fields
}
func NewEntry ¶
func NewEntry(ctx http_service.IHttpContext) *Entry
type Fields ¶
func (Fields) Read ¶
func (f Fields) Read(name string, ctx http_service.IHttpContext) (interface{}, bool)
type IProxyReader ¶
type IProxyReader interface {
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 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.