Documentation
¶
Index ¶
- Constants
- type API
- func (a *API) CheckToken(token string) (*Token, error)
- func (a *API) DeleteDataset(datasetID string) error
- func (a *API) ListDatasets(userID string, filter *Filter, pagination *Pagination) (*ResponseArray, error)
- func (a *API) Login(email string, password string) (*User, error)
- func (a *API) Logout() error
- func (a *API) RefreshToken() (*Token, error)
- func (a *API) ServerLogin() error
- type Error
- type Filter
- type Meta
- type Pagination
- type ResponseArray
- type ResponseObject
- type Session
- type Source
- type Token
- type Trace
- type User
Constants ¶
View Source
const ( ConfigDirectoryName = ".tidepool" SessionFileName = "session" )
View Source
const ( TidepoolServerName = "x-tidepool-server-name" TidepoolServerSecret = "x-tidepool-server-secret" TidepoolSessionToken = "x-tidepool-session-token" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct { Name string Endpoint string Writer io.Writer Verbose bool // contains filtered or unexported fields }
func (*API) DeleteDataset ¶
func (*API) ListDatasets ¶
func (a *API) ListDatasets(userID string, filter *Filter, pagination *Pagination) (*ResponseArray, error)
func (*API) RefreshToken ¶
func (*API) ServerLogin ¶
type Pagination ¶
type ResponseArray ¶
type ResponseObject ¶
type User ¶
type User struct { ID string `json:"userid,omitempty"` Username string `json:"username,omitempty"` Emails []string `json:"emails,omitempty"` Roles []string `json:"roles,omitempty"` TermsAccepted string `json:"termsAccepted,omitempty"` EmailVerified bool `json:"emailVerified,omitempty"` PasswordExists bool `json:"passwordExists,omitempty"` }
Source Files
¶
Click to show internal directories.
Click to hide internal directories.