Versions in this module Expand all Collapse all v1 v1.1.0 Jan 7, 2022 Changes in this version + var ErrBaseUrlMissing = errors.New("auth base url is missing but required") + var ErrClientIdMissing = errors.New("client id is missing but required") + var ErrInvalidSigningMethodAlg = errors.New("signing method must be RSA") + var ErrKeyMissing = errors.New("private key or private key file must be specified") + var ErrKidMissing = errors.New("kid is missing but required") + var ErrUrlHostMissing error = errors.New("url host is empty") + var ErrUrlSchemeMissing error = errors.New("url scheme is empty") + func IsAbsoluteUrl(str string) error + type AccessTokenRequest struct + ClientAssertionType string + GrantType string + JWT string + type AccessTokenResponse struct + AccessToken string + ExpiresIn int64 + IssuedAt int64 + TokenType string + func (a AccessTokenResponse) ExpiryTime() time.Time + func (a AccessTokenResponse) HasExpired() bool + type AuthConfigOptions struct + BaseURL string + ClientID string + Kid string + PrivateKey []byte + PrivateKeyPemFile string + Signer SigningFunc + SigningMethod jwt.SigningMethod + func (c AuthConfigOptions) Validate() error + type Claims struct type Client + func NewClientWithOptions(opts *Options) (*Client, error) + type Options struct + BaseURL string + UserAgent string + type RateLimitError struct + func (e *RateLimitError) Error() string + type SigningFunc = func(token *jwt.Token, key interface{}) (string, error) + type TracingOptions struct + Enabled bool + Output io.Writer + TraceErrorsOnly bool v1.0.0 Dec 13, 2021 Changes in this version + type Client struct + BaseURL *url.URL + Patient *PatientService + UserAgent string + func NewClient(httpClient *http.Client) *Client + type DateParam struct + Prefix Prefix + Value time.Time + func (d *DateParam) String() string + type Gender string + const Female + const Male + const Other + const Unknown + func (g Gender) String() string + type IClient interface + type IClientMock struct + type PatientSearchOptions struct + BirthDate []*string + DeathDate *[]string + ExactMatch *bool + Family *string + FuzzyMatch *bool + Gender *Gender + GeneralPractioner *string + Given *[]string + History *bool + MaxResults int + Postcode *string + type PatientService = service + func (p *PatientService) Get(ctx context.Context, id string) (*model.Patient, *Response, error) + func (p *PatientService) Search(ctx context.Context, opts PatientSearchOptions) ([]*model.Patient, *Response, error) + type Prefix string + const EQ + const GE + const LE + func (p Prefix) String() string + type Response struct + RequestID string