Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Endpoint ¶
type Endpoint struct { Id uint `json:"id"` Target *string `json:"target"` Name *string `json:"name"` Operations OperationsList `json:"operations"` Protocol *string `json:"protocol"` }
type ErrorMessage ¶
type Operation ¶
type OperationsList ¶
func (*OperationsList) MarshalJSON ¶
func (l *OperationsList) MarshalJSON() ([]byte, error)
func (*OperationsList) PushBack ¶
func (l *OperationsList) PushBack(op *Operation)
func (*OperationsList) UnmarshalJSON ¶
func (l *OperationsList) UnmarshalJSON(data []byte) error
type Project ¶
type Request ¶
type Request struct { Method string `json:"method"` Proto string `json:"protocol"` Header http.Header `json:"headers,omitempty"` Body []byte `json:"body"` ContentLength int64 `json:"content_length"` TransferEncoding []string `json:"transfer_encoding,omitempty"` Host string `json:"host"` RemoteAddr string `json:"remote_addr"` RequestURI string `json:"request_uri"` Timestamp int64 `json:"timestamp"` }
Our abstracted represnetation of a request.
type Response ¶
type Response struct { Proto string `json:"protocol"` Header http.Header `json:"headers"` Trailer http.Header `json:"trailer"` Body string `json:"body"` ContentLength int64 `json:"content_length"` TransferEncoding []string `json:"transfer_encoding"` Status string `json:"status"` StatusCode int `json:"status_code"` Timestamp int64 `json:"timestamp"` }
Click to show internal directories.
Click to hide internal directories.