Documentation
¶
Index ¶
- type AppwriteError
- type Client
- func (clt *Client) AddHeader(key string, value string)
- func (clt *Client) Call(method string, path string, headers map[string]interface{}, ...) (*ClientResponse, error)
- func (clt *Client) FileUpload(url string, headers map[string]interface{}, params map[string]interface{}, ...) (*ClientResponse, error)
- func (clt *Client) SetChunkSize(size int64)
- func (clt *Client) SetEndpoint(endpoint string)
- func (clt *Client) SetForwardedUserAgent(value string)
- func (clt *Client) SetJWT(value string)
- func (clt *Client) SetKey(value string)
- func (clt *Client) SetLocale(value string)
- func (clt *Client) SetProject(value string)
- func (clt *Client) SetSelfSigned(status bool)
- func (clt *Client) SetSession(value string)
- func (clt *Client) SetTimeout(timeout time.Duration) error
- func (clt *Client) String() string
- type ClientResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppwriteError ¶
type AppwriteError struct {
// contains filtered or unexported fields
}
AppwriteError represents an error of a client request
func (*AppwriteError) Error ¶
func (ce *AppwriteError) Error() string
func (*AppwriteError) GetMessage ¶
func (ce *AppwriteError) GetMessage() string
func (*AppwriteError) GetStatusCode ¶
func (ce *AppwriteError) GetStatusCode() int
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is the client struct to access Appwrite services
func NewClient ¶
func NewClient() Client
NewClient initializes a new Appwrite client with a given timeout
func (*Client) AddHeader ¶
AddHeader add a new custom header that the Client should send on each request
func (*Client) Call ¶
func (clt *Client) Call(method string, path string, headers map[string]interface{}, params map[string]interface{}) (*ClientResponse, error)
Call an API using Client
func (*Client) FileUpload ¶
func (*Client) SetChunkSize ¶
SetChunkSize sets the chunk size for file upload
func (*Client) SetEndpoint ¶
SetEndpoint sets the default endpoint to which the Client connects to
func (*Client) SetForwardedUserAgent ¶
The user agent string of the client that made the request
func (*Client) SetSelfSigned ¶
SetSelfSigned sets the condition that specify if the Client should allow connections to a server using a self-signed certificate
func (*Client) SetSession ¶
The user session to authenticate with
Click to show internal directories.
Click to hide internal directories.