Documentation ¶
Overview ¶
Package bggclient encapsulates the setup of a TLS connection to https://boardgamegeek.com and is reponsible for including the user's login credentials as cookies with each HTTP request.
Index ¶
- func Download(relativeURL *url.URL) (data []byte, err error)
- func Get(relativeURL *url.URL) (page string, err error)
- func Post(relativeURL *url.URL, data url.Values) (res *http.Response, err error)
- func SetCredentials(c Credentials)
- func Upload(relativeURL *url.URL, data []byte, filename, fileFieldName string, ...) (err error)
- type Credentials
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetCredentials ¶
func SetCredentials(c Credentials)
SetCredentials creates cookies containing the BGG username and password hash for use by the client.
Types ¶
type Credentials ¶
func (Credentials) IsSet ¶
func (c Credentials) IsSet() bool
Click to show internal directories.
Click to hide internal directories.