Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct { config.BackendConfig BackendControl sync.RWMutex Close chan bool }
func NewBackend ¶
func NewBackend(backendConfig config.BackendConfig) *Backend
type BackendControl ¶
type BackendList ¶
type BackendList []*Backend
type Frontend ¶
type Frontend struct { config.FrontendConfig BackendList sync.RWMutex Close chan bool Pos int }
func NewFrontend ¶
func NewFrontend(frontendConfig config.FrontendConfig) *Frontend
type FrontendList ¶
type FrontendList []*Frontend
type SLBRequest ¶
func NewWorkerRequest ¶
func NewWorkerRequest(status int, header http.Header, body []byte) SLBRequest
func NewWorkerRequestErr ¶
func NewWorkerRequestErr(status int, body []byte) SLBRequest
func NewWorkerRequestUpgraded ¶
func NewWorkerRequestUpgraded() SLBRequest
func (*SLBRequest) HijackWebSocket ¶
func (s *SLBRequest) HijackWebSocket(w http.ResponseWriter, r *http.Request)
type SLBRequestChan ¶
type SLBRequestChan chan SLBRequest
type WorkerPool ¶
type WorkerPool struct { config.Configuration Workers sync.RWMutex }
func NewWorkerPool ¶
func NewWorkerPool(configuration config.Configuration) *WorkerPool
func (*WorkerPool) CountIdle ¶
func (wp *WorkerPool) CountIdle() int
func (*WorkerPool) Get ¶
func (wp *WorkerPool) Get(r *http.Request, frontend *Frontend) SLBRequestChan
Click to show internal directories.
Click to hide internal directories.