Documentation ¶
Index ¶
- func AssertHTTPError(err error, code int) *be.Outcome
- func Paged[Req PageRequest, Res PageResponse[Item], Item any](ctx context.Context, baseReq Req, call func(context.Context, Req) (Res, error), ...) error
- type API
- type APIError
- type AuthProvider
- type BearerToken
- type PageRequest
- type PageResponse
- type RequestLog
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type API ¶
type API struct { BaseURL string Client *http.Client Logger func(*RequestLog) Auth AuthProvider }
type AuthProvider ¶
type BearerToken ¶
type BearerToken string
func (BearerToken) Authenticate ¶
func (t BearerToken) Authenticate(req *http.Request) error
type PageRequest ¶
type PageRequest interface {
SetPageToken(string)
}
type PageResponse ¶
Click to show internal directories.
Click to hide internal directories.