model

package
v0.0.0-...-eee2b2e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 9, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FetchData

type FetchData struct {
	Method  string              `json:"method"`
	URL     string              `json:"url"`
	Headers map[string][]string `json:"headers,omitempty"`
	Body    string              `json:"body,omitempty"`
}

FetchData from client (incoming) to external resource.

type Paginator

type Paginator struct {
	// Current page number
	Page int `json:"page"`
	// Number of requests per page
	RequestsPerPage int `json:"requestsPerPage"`
}

type Request

type Request struct {
	Fetch    *FetchData `json:"fetch"`
	Response *Response  `json:"response"`
}

Request holds incoming and outgoing data.

type Response

type Response struct {
	ID      string              `json:"id"`
	Status  int                 `json:"status"`
	Headers map[string][]string `json:"headers,omitempty"`
	Length  int64               `json:"length"`
}

Response data from external resource to client (outgoing).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL