Documentation ¶
Index ¶
- func ResponseFromReader(httpRequestReader io.Reader, conn net.Conn) (resp *http.Response, err error)
- type BrowserId
- type BrowserItem
- type BrowserItemId
- type BrowserProxy
- func (b BrowserProxy) HTTPRequest(httpReq *http.Request, req BrowserRequest) (resp ResponseWithParsedJSONBody, err error)
- func (b BrowserProxy) HTTPRequestWithContext(ctx context.Context, httpReq *http.Request, req BrowserRequest) (resp ResponseWithParsedJSONBody, err error)
- func (b BrowserProxy) Request(req BrowserRequest) (resp ResponseWithParsedJSONBody, err error)
- type BrowserRequest
- type ResponseWithParsedJSONBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BrowserId ¶
type BrowserItem ¶
type BrowserItem struct { Id BrowserItemId `json:"id"` Url string `json:"url"` Date string `json:"date"` Title string `json:"title"` ExternalId string `json:"external-id"` // external to the browser, so for us, it's actually our id }
func (BrowserItem) GetUrl ¶
func (i BrowserItem) GetUrl() (u *url.URL, err error)
type BrowserItemId ¶
type BrowserItemId struct { BrowserId BrowserId `json:"browser-id"` Id string `json:"id"` Type string `json:"type"` }
func (BrowserItemId) String ¶
func (bi BrowserItemId) String() string
type BrowserProxy ¶
func (BrowserProxy) HTTPRequest ¶
func (b BrowserProxy) HTTPRequest( httpReq *http.Request, req BrowserRequest, ) (resp ResponseWithParsedJSONBody, err error)
func (BrowserProxy) HTTPRequestWithContext ¶
func (b BrowserProxy) HTTPRequestWithContext( ctx context.Context, httpReq *http.Request, req BrowserRequest, ) (resp ResponseWithParsedJSONBody, err error)
TODO figure out which method retunrs err == io.EOF and set err to nil
func (BrowserProxy) Request ¶
func (b BrowserProxy) Request( req BrowserRequest, ) (resp ResponseWithParsedJSONBody, err error)
type BrowserRequest ¶
type ResponseWithParsedJSONBody ¶
type ResponseWithParsedJSONBody struct { *http.Response ParsedJSONBody server.JSONAnything }
Click to show internal directories.
Click to hide internal directories.