Documentation
¶
Index ¶
Constants ¶
View Source
const TestS3Region = "test"
TestS3Region is the region to use in test mode
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
Proxy gets data from the API endpoint and caches it
func New ¶
func New(speed int, pubkey string, privkey string, outfile string, s3Region string, s3Bucket string) (*Proxy, error)
New creates a new `Proxy` with the given credentials and default values
func (*Proxy) ServeHTTP ¶
func (p *Proxy) ServeHTTP(w http.ResponseWriter, req *http.Request)
ServeHTTP is an `http.Handler` that just returns the lastest response from the upstream server
Click to show internal directories.
Click to hide internal directories.