Documentation ¶
Overview ¶
package TomlNgng provides in toml engine implementation
Index ¶
- func New(r *plugin.Registry, options Options) (engine.Engine, error)
- type Backend
- type EngineTomlConfig
- type Frontend
- type FrontendMiddleware
- type MiddlewareFrontend
- type Options
- type TomlNg
- func (m *TomlNg) AddApiHandlers(app *scroll.App)
- func (m *TomlNg) AddConfigPath(in string) error
- func (m *TomlNg) Close()
- func (m *TomlNg) DeleteBackend(bk engine.BackendKey) error
- func (m *TomlNg) DeleteFrontend(fk engine.FrontendKey) error
- func (m *TomlNg) DeleteHost(k engine.HostKey) error
- func (m *TomlNg) DeleteListener(lk engine.ListenerKey) error
- func (m *TomlNg) DeleteMiddleware(mk engine.MiddlewareKey) error
- func (m *TomlNg) DeleteServer(sk engine.ServerKey) error
- func (m *TomlNg) GetBackend(bk engine.BackendKey) (*engine.Backend, error)
- func (m *TomlNg) GetBackends() ([]engine.Backend, error)
- func (m *TomlNg) GetFrontend(k engine.FrontendKey) (*engine.Frontend, error)
- func (m *TomlNg) GetFrontends() ([]engine.Frontend, error)
- func (m *TomlNg) GetHost(k engine.HostKey) (*engine.Host, error)
- func (m *TomlNg) GetHosts() ([]engine.Host, error)
- func (m *TomlNg) GetListener(lk engine.ListenerKey) (*engine.Listener, error)
- func (m *TomlNg) GetListeners() ([]engine.Listener, error)
- func (n *TomlNg) GetLogSeverity() string
- func (m *TomlNg) GetMiddleware(mk engine.MiddlewareKey) (*engine.Middleware, error)
- func (m *TomlNg) GetMiddlewares(fk engine.FrontendKey) ([]engine.Middleware, error)
- func (m *TomlNg) GetRegistry() *plugin.Registry
- func (m *TomlNg) GetServer(sk engine.ServerKey) (*engine.Server, error)
- func (m *TomlNg) GetServers(bk engine.BackendKey) ([]engine.Server, error)
- func (m *TomlNg) ReadConfig(r io.Reader) (err error)
- func (n *TomlNg) SetLogSeverity(sev string) error
- func (m *TomlNg) Subscribe(changes chan interface{}, cancelC chan bool) error
- func (m *TomlNg) UpsertBackend(b engine.Backend) error
- func (m *TomlNg) UpsertFrontend(f engine.Frontend, d time.Duration) error
- func (m *TomlNg) UpsertHost(h engine.Host) error
- func (m *TomlNg) UpsertListener(l engine.Listener) error
- func (m *TomlNg) UpsertMiddleware(fk engine.FrontendKey, md engine.Middleware, d time.Duration) error
- func (m *TomlNg) UpsertServer(bk engine.BackendKey, srv engine.Server, d time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EngineTomlConfig ¶
type Frontend ¶
type Frontend struct { engine.Frontend Settings engine.HTTPFrontendSettings Middlewares []FrontendMiddleware }
type FrontendMiddleware ¶
type MiddlewareFrontend ¶
type TomlNg ¶
type TomlNg struct { Hosts map[engine.HostKey]engine.Host Frontends map[engine.FrontendKey]engine.Frontend Backends map[engine.BackendKey]engine.Backend Listeners map[engine.ListenerKey]engine.Listener Middlewares map[engine.FrontendKey][]engine.Middleware KnownMiddlewares map[string]engine.Middleware Servers map[engine.BackendKey][]engine.Server Registry *plugin.Registry ChangesC chan interface{} ErrorsC chan error // contains filtered or unexported fields }
func (*TomlNg) AddApiHandlers ¶
func (*TomlNg) AddConfigPath ¶
func (*TomlNg) DeleteBackend ¶
func (m *TomlNg) DeleteBackend(bk engine.BackendKey) error
func (*TomlNg) DeleteFrontend ¶
func (m *TomlNg) DeleteFrontend(fk engine.FrontendKey) error
func (*TomlNg) DeleteListener ¶
func (m *TomlNg) DeleteListener(lk engine.ListenerKey) error
func (*TomlNg) DeleteMiddleware ¶
func (m *TomlNg) DeleteMiddleware(mk engine.MiddlewareKey) error
func (*TomlNg) GetBackend ¶
func (*TomlNg) GetFrontend ¶
func (*TomlNg) GetListener ¶
func (*TomlNg) GetLogSeverity ¶
func (*TomlNg) GetMiddleware ¶
func (m *TomlNg) GetMiddleware(mk engine.MiddlewareKey) (*engine.Middleware, error)
func (*TomlNg) GetMiddlewares ¶
func (m *TomlNg) GetMiddlewares(fk engine.FrontendKey) ([]engine.Middleware, error)
func (*TomlNg) GetRegistry ¶
func (*TomlNg) GetServers ¶
func (*TomlNg) SetLogSeverity ¶
func (*TomlNg) UpsertFrontend ¶
func (*TomlNg) UpsertMiddleware ¶
func (m *TomlNg) UpsertMiddleware(fk engine.FrontendKey, md engine.Middleware, d time.Duration) error
func (*TomlNg) UpsertServer ¶
Click to show internal directories.
Click to hide internal directories.