Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct { Request *http.Request Response *http.Response Error error // contains filtered or unexported fields }
Context is the core of data sources. It allows us to pass variables between handlers and manage the flow of a request
func NewContext ¶
NewContext creates a new context and initializes the handler chain
type DataSource ¶
type DataSource struct {
// contains filtered or unexported fields
}
DataSource is a component that one can use to encapsulate fetching data from a source, in this case: a REST API. Create an instance of DataSource by using New() or Default().
Click to show internal directories.
Click to hide internal directories.