http_entry

package
v0.17.2 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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) Children

func (c *ChildEntry) Children(child string) []eosc.IEntry

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 Entry

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

func (*Entry) Children

func (e *Entry) Children(child string) []eosc.IEntry

func (*Entry) Read

func (e *Entry) Read(pattern string) interface{}

func (*Entry) ReadLabel added in v0.17.0

func (e *Entry) ReadLabel(pattern string) string

type Fields

type Fields map[string]IReader

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)

Jump to

Keyboard shortcuts

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