Documentation ¶
Index ¶
Constants ¶
View Source
const Endpoint = "/workspaces"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WorkspaceClient ¶
type WorkspaceClient struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(tc *gthttp.TogglHttpClient) *WorkspaceClient
Return a Workspace Cilent. An error is also returned when some configuration option is invalid
tc,err := gtoggl.NewClient("token") wsc,err := gtoggl.NewWorkspaceClient(tc)
func (*WorkspaceClient) List ¶
func (wc *WorkspaceClient) List() (Workspaces, error)
type Workspaces ¶
type Workspaces []Workspace
Click to show internal directories.
Click to hide internal directories.