Documentation
¶
Index ¶
- type BodyBytes
- type Capture
- type RequestSnapshot
- type ResponseSnapshot
- type Store
- func (s *Store) Add(c *Capture)
- func (s *Store) All() []*Capture
- func (s *Store) AllFromDisk() []*Capture
- func (s *Store) Clear(deleteFiles bool)
- func (s *Store) DeleteByID(id string) error
- func (s *Store) Get(id string) *Capture
- func (s *Store) GetByPrefix(prefix string) *Capture
- func (s *Store) List(n int) []*Capture
- func (s *Store) ListFromDisk(n int) []*Capture
- type WSFrame
- type WebSocketCapture
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BodyBytes ¶
type BodyBytes []byte
func (BodyBytes) MarshalJSON ¶
func (*BodyBytes) UnmarshalJSON ¶
type Capture ¶
type Capture struct {
ID string `json:"id"`
Timestamp time.Time `json:"timestamp"`
Protocol string `json:"protocol,omitempty"`
Request RequestSnapshot `json:"request"`
Response *ResponseSnapshot `json:"response,omitempty"`
Duration time.Duration `json:"duration_ns,omitempty"`
Error string `json:"error,omitempty"`
WebSocket *WebSocketCapture `json:"websocket,omitempty"`
}
type RequestSnapshot ¶
type ResponseSnapshot ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) AllFromDisk ¶ added in v1.2.0
func (*Store) DeleteByID ¶ added in v1.1.0
func (*Store) GetByPrefix ¶
func (*Store) ListFromDisk ¶
type WebSocketCapture ¶ added in v1.7.0
type WebSocketCapture struct {
Frames []WSFrame `json:"frames,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.