Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidInputData = errors.New("invalid input data") ErrRequestNotFound = errors.New("request not found") )
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage interface { // AddFetchData saves fetch data and return ID. AddRequest(data *model.FetchData) (string, error) // AddResponse saves response from external resource by request ID. AddResponse(ID string, response *model.Response) error // GetAllRequests reads all requests from storage. GetAllRequests(paginator *model.Paginator) []model.Request // DeleteRequest removes request from storage by ID. DeleteRequest(ID string) error }
Storage for application requests.
Click to show internal directories.
Click to hide internal directories.