proxy

package
v0.0.0-...-49d3f61 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Proxy

type Proxy struct {
	Source     string `json:"source"`
	Target     string `json:"target"`
	ExternalId string `json:"external_id"`
}

type ProxyConfig

type ProxyConfig struct {
	Proxies []*Proxy `json:"proxies"`
}

type ProxyMap

type ProxyMap map[string]*url.URL

func (*ProxyMap) Add

func (self *ProxyMap) Add(sourceUrl string, targetUrl string) error

func (*ProxyMap) LoadFromConfig

func (self *ProxyMap) LoadFromConfig(path string) error

type ProxyRPC

type ProxyRPC struct {
	plugins.Base
}

func New

func New() *ProxyRPC

func (*ProxyRPC) Add

func (self *ProxyRPC) Add(p *Proxy, res *ProxySlice) error

TODO: Change it so you replace names, instead of not changing anything.

func (*ProxyRPC) List

func (self *ProxyRPC) List(p *Proxy, res *ProxySlice) error

func (*ProxyRPC) RegisterRPC

func (self *ProxyRPC) RegisterRPC(server *rpc.Server)

func (*ProxyRPC) Remove

func (self *ProxyRPC) Remove(p *Proxy, res *ProxySlice) error

type ProxySlice

type ProxySlice []*Proxy

Jump to

Keyboard shortcuts

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