Versions in this module Expand all Collapse all v0 v0.0.1 Jun 18, 2024 Changes in this version + type APIv1 struct + Config Config + HTTPSlingClient *httpsling.Client + func (c *APIv1) WorkspaceCreate(ctx context.Context, in *models.WorkspaceRequest) (out *models.WorkspaceReply, err error) + type Client interface + WorkspaceCreate func(context.Context, *models.WorkspaceRequest) (*models.WorkspaceReply, error) + func New(config Config, opts ...ClientOption) (_ Client, err error) + func NewWithDefaults() (Client, error) + type ClientOption func(c *APIv1) error + func WithBaseURL(baseURL *url.URL) ClientOption + type Config struct + BaseURL *url.URL + HTTPSling *httpsling.Config + func NewDefaultConfig() Config + type RequestError struct + Body string + StatusCode int + func (e *RequestError) Error() string