Documentation ¶
Index ¶
- type AuthenticityToken
- type Client
- func (c *Client) DeleteRequest(ctx context.Context, url string) ([]byte, error)
- func (c *Client) GetRequest(ctx context.Context, url string) ([]byte, error)
- func (c *Client) Login(ctx context.Context, username, password string) error
- func (c *Client) PostRequestWithResponse(ctx context.Context, url string, data any) ([]byte, error)
- func (c *Client) PutRequest(ctx context.Context, url string, data any) ([]byte, error)
- type LoginError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthenticityToken ¶
type AuthenticityToken struct {
Token string
}
type Client ¶
func NewDefaultClient ¶
func (*Client) DeleteRequest ¶
func (*Client) GetRequest ¶
func (*Client) PostRequestWithResponse ¶
type LoginError ¶
type LoginError struct{}
func (*LoginError) Error ¶
func (*LoginError) Error() string
Click to show internal directories.
Click to hide internal directories.