Documentation ¶
Index ¶
- Constants
- type Link
- type LinkData
- type McastData
- type McastSeq
- func (c *McastSeq) Accessed()
- func (ms *McastSeq) Close()
- func (ms *McastSeq) DataCount() int
- func (c *McastSeq) Expired() bool
- func (ms *McastSeq) GetData(seqId int) (data *TeeData, ok bool)
- func (ms *McastSeq) NewSeqId() int
- func (ms *McastSeq) Read(wantedSeqId int, closeChan <-chan struct{}) (data *TeeData, seqId int, ok bool)
- func (ms *McastSeq) Size() int
- func (c *McastSeq) WAuth(wSecret string) bool
- func (ms *McastSeq) Write(data *TeeData) (seqId int)
- type Meta
- type ProxyCliData
- type ProxySer
- func (c *ProxySer) Accessed()
- func (ps *ProxySer) AddJob(jobId string, proxyData *ProxyCliData)
- func (c *ProxySer) Expired() bool
- func (ps *ProxySer) RemoveJob(cliData *ProxyCliData)
- func (ps *ProxySer) TakeJob(jobId string) (proxyData *ProxyCliData, ok bool)
- func (c *ProxySer) WAuth(wSecret string) bool
- type ProxySerData
- type PtpData
- type SyncData
- type TeeData
- type Waiters
Constants ¶
View Source
const MaxAge = time.Minute * 20
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LinkData ¶
func NewLinkData ¶
type McastData ¶
type McastData struct {
// contains filtered or unexported fields
}
func NewMcastData ¶
func NewMcastData() *McastData
type McastSeq ¶
type McastSeq struct {
// contains filtered or unexported fields
}
func NewMcastSeq ¶
type Meta ¶
type Meta struct { Time time.Time Header http.Header ContentType string Method string Query string SrcIP string SrcPort string ContentLength int64 }
func (*Meta) WriteHeaders ¶
type ProxyCliData ¶
type ProxyCliData struct { Url string Method string Scheme string Host string Port string Path string Query string Fragment string SerId string Header *http.Header Body *buffreader.BuffReader RespChan chan *ProxySerData RespChanL sync.Mutex }
func NewProxyCliData ¶
func NewProxyCliData(r *http.Request, serId, serPath string) (proxyReqData *ProxyCliData)
func (*ProxyCliData) CloseRespChan ¶
func (pcd *ProxyCliData) CloseRespChan() (ok bool)
type ProxySer ¶
type ProxySer struct { ReqChan chan *ProxyCliData // contains filtered or unexported fields }
Creating when first request to/from server is made
func NewProxySer ¶
func NewProxySer() *ProxySer
func (*ProxySer) AddJob ¶
func (ps *ProxySer) AddJob(jobId string, proxyData *ProxyCliData)
func (*ProxySer) RemoveJob ¶
func (ps *ProxySer) RemoveJob(cliData *ProxyCliData)
type ProxySerData ¶
type ProxySerData struct { Header *http.Header Body *buffreader.BuffReader }
func NewProxySerData ¶
func NewProxySerData(r *http.Request) (proxyRespData *ProxySerData)
type SyncData ¶
func NewSyncData ¶
type TeeData ¶
type TeeData struct { Meta *Meta Content *bufftee.BuffTee // contains filtered or unexported fields }
func NewTeeData ¶
func (*TeeData) CopyContent ¶
type Waiters ¶
type Waiters struct {
// contains filtered or unexported fields
}
func NewWaiters ¶
func NewWaiters() *Waiters
func (*Waiters) HasWaiters ¶
func (*Waiters) RemoveWaiter ¶
func (w *Waiters) RemoveWaiter()
func (*Waiters) WaiterCount ¶
Click to show internal directories.
Click to hide internal directories.