Documentation ¶
Index ¶
- type HostAddress
- type HttpProxyService
- type LocalHttpProxy
- func (h *LocalHttpProxy) GetState() State
- func (h *LocalHttpProxy) HandleRequest(request *fasthttp.Request) (*fasthttp.Response, error)
- func (h *LocalHttpProxy) Proxy(stream httppb.Http_ProxyServer) error
- func (l *LocalHttpProxy) SubscribeToState(fn func(State))
- func (h *LocalHttpProxy) WorkerCount() int
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HostAddress ¶
type HostAddress = string
type HttpProxyService ¶
type HttpProxyService struct { ServiceName string // contains filtered or unexported fields }
type LocalHttpProxy ¶
type LocalHttpProxy struct {
// contains filtered or unexported fields
}
func NewLocalHttpProxyService ¶
func NewLocalHttpProxyService() *LocalHttpProxy
func (*LocalHttpProxy) GetState ¶
func (h *LocalHttpProxy) GetState() State
func (*LocalHttpProxy) HandleRequest ¶
FIXME: Implement http server identification
func (*LocalHttpProxy) Proxy ¶
func (h *LocalHttpProxy) Proxy(stream httppb.Http_ProxyServer) error
func (*LocalHttpProxy) SubscribeToState ¶
func (l *LocalHttpProxy) SubscribeToState(fn func(State))
func (*LocalHttpProxy) WorkerCount ¶
func (h *LocalHttpProxy) WorkerCount() int
type State ¶
type State = map[HostAddress]*HttpProxyService
Click to show internal directories.
Click to hide internal directories.