Documentation
¶
Overview ¶
Package shares is a thin HTTP client for the gl-svc-2 journal-share endpoints under /v1/orgs/{orgId}/journals/{journalId}/shares. It backs the bitwave `journal share` subcommands.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
BaseURL string
OrgId string
TokenResolver func() (string, error)
HTTPClient *http.Client
}
func (*Client) Create ¶
func (c *Client) Create(ctx context.Context, journalId string, req CreateRequest) (*CreateResponse, error)
type CreateRequest ¶
type CreateResponse ¶
type CreateResponse struct {
URL string `json:"url"`
}
Click to show internal directories.
Click to hide internal directories.