Documentation
¶
Index ¶
- type BodyBytes
- type Capture
- type GRPCCapture
- type GRPCFrame
- type GraphQLCapture
- type RequestSnapshot
- type ResponseSnapshot
- type SSECapture
- type SSEFrame
- 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) Count() int
- 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
- func (s *Store) ListPage(pageSize, offset int) []*Capture
- type TLSInfo
- 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"`
TLS *TLSInfo `json:"tls,omitempty"`
WebSocket *WebSocketCapture `json:"websocket,omitempty"`
GRPC *GRPCCapture `json:"grpc,omitempty"`
SSE *SSECapture `json:"sse,omitempty"`
GraphQL *GraphQLCapture `json:"graphql,omitempty"`
}
type GRPCCapture ¶
type GRPCCapture struct {
ServiceMethod string `json:"method,omitempty"`
Frames []GRPCFrame `json:"frames,omitempty"`
DecodedRequest json.RawMessage `json:"decoded_request,omitempty"`
DecodedResponse json.RawMessage `json:"decoded_response,omitempty"`
}
type GraphQLCapture ¶ added in v2.1.0
type GraphQLCapture struct {
OperationName string `json:"operation_name,omitempty"`
OperationType string `json:"operation_type,omitempty"`
Variables json.RawMessage `json:"variables,omitempty"`
}
type RequestSnapshot ¶
type ResponseSnapshot ¶
type SSECapture ¶ added in v2.1.0
type SSECapture struct {
Frames []SSEFrame `json:"frames,omitempty"`
}
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func NewSQLiteStore ¶ added in v2.6.0
func (*Store) AllFromDisk ¶
func (*Store) DeleteByID ¶
func (*Store) GetByPrefix ¶
func (*Store) ListFromDisk ¶
type WebSocketCapture ¶
type WebSocketCapture struct {
Frames []WSFrame `json:"frames,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.