Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ElasticStorage ¶
type ElasticStorage struct {
ES *elasticsearch.Client
}
ElasticStorage is the backend Storage interface that works with Elasticsearch
func (ElasticStorage) Store ¶
func (s ElasticStorage) Store(l Log) error
Store is the action of storing
type Log ¶
type Log struct { URL string `json:"url"` Headers map[string][]string `json:"headers"` MainUpstreamStatusCode int `json:"main_upstream_status_code"` TestUpstreamStatusCode int `json:"test_upstream_status_code"` MainUpstreamResponsePayload *string `json:"main_upstream_response_payload"` TestUpstreamResponsePayload *string `json:"test_upstream_response_payload"` }
Log defines the structure of records storing in Storage as log of requests
Click to show internal directories.
Click to hide internal directories.