Documentation ¶
Index ¶
- Variables
- type Client
- func (c *Client) AcceptConfirmation(conf *Confirmation) error
- func (c *Client) AnswerConfirmation(conf *Confirmation, tag string) error
- func (c *Client) CancelConfirmation(conf *Confirmation) error
- func (c *Client) GetConfirmations() ([]*Confirmation, error)
- func (c *Client) GetOfferID(conf *Confirmation) (uint64, error)
- func (c *Client) SetCookies(cookies []*http.Cookie) error
- func (c *Client) UpdateTimeOffset() error
- type Confirmation
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrCannotFindOffer = errors.New("unable to find offer")
)
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AcceptConfirmation ¶
func (c *Client) AcceptConfirmation(conf *Confirmation) error
func (*Client) AnswerConfirmation ¶
func (c *Client) AnswerConfirmation(conf *Confirmation, tag string) error
func (*Client) CancelConfirmation ¶
func (c *Client) CancelConfirmation(conf *Confirmation) error
func (*Client) GetConfirmations ¶
func (c *Client) GetConfirmations() ([]*Confirmation, error)
func (*Client) GetOfferID ¶
func (c *Client) GetOfferID(conf *Confirmation) (uint64, error)
func (*Client) UpdateTimeOffset ¶
type Confirmation ¶
type Confirmation struct { Type uint64 `json:"type"` TypeName string `json:"type_name"` ID string `json:"id"` CreatorID string `json:"creator_id"` Nonce string `json:"nonce"` CreationTime uint64 `json:"creation_time"` Cancel string `json:"cancel"` Accept string `json:"accept"` Icon string `json:"icon"` Multi bool `json:"multi"` Headline string `json:"headline"` Summary []string `json:"summary"` Warn interface{} `json:"warn"` }
Click to show internal directories.
Click to hide internal directories.