Versions in this module Expand all Collapse all v0 v0.1.22 Jul 8, 2021 Changes in this version + func IsConflict(err error) bool + func SetLogger(l Logger) + type APIResponse struct + Error *Error + type Client struct + func New(urs string) (*Client, error) + func (c *Client) Clock() tsutil.Clock + func (c *Client) HTTPClient() *nethttp.Client + func (c *Client) Request(ctx context.Context, req *Request) (*Response, error) + func (c *Client) SetClock(clock tsutil.Clock) + func (c *Client) SetHTTPClient(httpClient *nethttp.Client) + func (c *Client) URL() *url.URL + type Error struct + Message string + Status int + func (e Error) Error() string + type LogLevel int + const DebugLevel + const ErrLevel + const InfoLevel + const WarnLevel + func (l LogLevel) String() string + type Logger interface + Debugf func(format string, args ...interface{}) + Errorf func(format string, args ...interface{}) + Fatalf func(format string, args ...interface{}) + Infof func(format string, args ...interface{}) + Warningf func(format string, args ...interface{}) + func NewLogger(lev LogLevel) Logger + type Metadata struct + CreatedAt time.Time + UpdatedAt time.Time + type Request struct + Auths []http.AuthHeader + Body []byte + Headers []http.Header + Key *keys.EdX25519Key + Method string + Params url.Values + Path string + Progress func(n int64) + func GET(path string, key *keys.EdX25519Key) *Request + func PUT(path string, body []byte, key *keys.EdX25519Key) *Request + type Response struct + CreatedAt time.Time + Data []byte + UpdatedAt time.Time