Documentation
¶
Index ¶
- Constants
- type TrafficEgress
- type TrafficIngress
- type TrafficStorage
- func (storage *TrafficStorage) CreateTrace() *TrafficTrace
- func (storage *TrafficStorage) DisplayLatestTraces(w http.ResponseWriter, route string, max int) int
- func (storage *TrafficStorage) DisplayTraceDetails(w http.ResponseWriter, route string, id string)
- func (storage *TrafficStorage) DisplayTraceIngress(w http.ResponseWriter, route string, id string)
- func (storage *TrafficStorage) GetTraces(w http.ResponseWriter, route string) int
- func (storage *TrafficStorage) StoreTrace(trace *TrafficTrace)
- type TrafficStorageInterface
- type TrafficTrace
Constants ¶
View Source
const ( STORAGE_INMEMORY = "In memory" STORAGE_ONDISK = "On disk" BOLT_BUCKET = "SmartProxy" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TrafficEgress ¶
type TrafficEgress struct {
Bytes *[]byte
}
type TrafficIngress ¶
type TrafficIngress struct {
Bytes *[]byte
}
type TrafficStorage ¶
type TrafficStorage struct {
// contains filtered or unexported fields
}
func OnDiskTrafficStorage ¶
func OnDiskTrafficStorage() *TrafficStorage
func (*TrafficStorage) CreateTrace ¶
func (storage *TrafficStorage) CreateTrace() *TrafficTrace
func (*TrafficStorage) DisplayLatestTraces ¶
func (storage *TrafficStorage) DisplayLatestTraces(w http.ResponseWriter, route string, max int) int
func (*TrafficStorage) DisplayTraceDetails ¶
func (storage *TrafficStorage) DisplayTraceDetails(w http.ResponseWriter, route string, id string)
func (*TrafficStorage) DisplayTraceIngress ¶
func (storage *TrafficStorage) DisplayTraceIngress(w http.ResponseWriter, route string, id string)
func (*TrafficStorage) GetTraces ¶
func (storage *TrafficStorage) GetTraces(w http.ResponseWriter, route string) int
func (*TrafficStorage) StoreTrace ¶
func (storage *TrafficStorage) StoreTrace(trace *TrafficTrace)
type TrafficStorageInterface ¶
type TrafficStorageInterface interface { CreateTrace() *TrafficTrace StoreTrace(trace *TrafficTrace) }
type TrafficTrace ¶
Click to show internal directories.
Click to hide internal directories.