Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDBConnection ¶
Types ¶
type Connection ¶
type Connection struct {
ID uint `gorm:"primary_key;AUTO_INCREMENT" json:"-"`
EndpointID uint `json:"-"`
Request Request `json:"request"`
Response Response `json:"response"`
RecordedAt string `json:"recorded_at"`
}
func NewConnection ¶
func NewConnection(req *http.Request, s *Server) (*Connection, error)
type Endpoint ¶
type Endpoint struct {
ID uint `gorm:"primary_key;AUTO_INCREMENT" json:"-"`
URL string
Connections []Connection
Update time.Time
}
Click to show internal directories.
Click to hide internal directories.