Versions in this module Expand all Collapse all v0 v0.5.1 Dec 29, 2019 Changes in this version + type CipherBinAPIClient interface + Do func(req *http.Request) (*http.Response, error) + type Client struct + APIBaseURL string + BrowserBaseURL string + func NewClient(browserBaseURL, apiBaseURL string, client CipherBinAPIClient) (*Client, error) + func (c *Client) GetMessage(url string) (*app.MessageResponse, error) + func (c *Client) PostMessage(msg *db.Message) error + type ClosingBuffer struct + func MockBody(b []byte) *ClosingBuffer + func (cb ClosingBuffer) Close() (err error) + type MockClient struct + Requests []*http.Request + Response []byte + Responses [][]byte + StatusCode int + func MockResponse(body string) *MockClient + func MockResponses(bodies ...string) *MockClient + func (mock *MockClient) Do(req *http.Request) (*http.Response, error)