Documentation
¶
Index ¶
- Constants
- Variables
- func CheckResponse(r *http.Response) error
- func TryHTTPCall(ctx context.Context, numberOfTries uint64, ...) error
- func ValidateNoReservedStrings(fl validator.FieldLevel) bool
- type Bundle
- type BundleEntry
- type BundleLinks
- type Coding
- type Details
- type HeaderFunc
- type HeaderRoundTripper
- type Issue
- type LinkURL
- type LoggingRoundTripper
- type OperationOutcome
Constants ¶
View Source
const (
Amos = "SOMETIMES_YOU_GOT_TO_STOP_THINKING_ABOUT_SOMETHING_TO_FIGURE_IT_OUT"
)
View Source
const (
LibraryVersion = "0.81.1"
)
Variables ¶
View Source
var ReservedStrings = []string{
"roles", "permissions", "propositions", "applications", "services", "oauth2clients",
"devices", "emailtemplates", "passwordpolicies", "accesspolicies", "delegations",
"cn=", "dn=", "uid="}
View Source
var (
StandardRetryOnCodes = []int{http.StatusInternalServerError, http.StatusServiceUnavailable, http.StatusTooManyRequests, http.StatusBadGateway, http.StatusGatewayTimeout, http.StatusUnprocessableEntity}
)
Functions ¶
func CheckResponse ¶ added in v0.42.0
CheckResponse checks the API response for errors, and returns them if present.
func TryHTTPCall ¶ added in v0.78.0
func ValidateNoReservedStrings ¶ added in v0.73.2
func ValidateNoReservedStrings(fl validator.FieldLevel) bool
Types ¶
type Bundle ¶ added in v0.39.0
type Bundle struct { Type string `json:"type,omitempty"` Total int64 `json:"total,omitempty"` Entry []BundleEntry `json:"entry,omitempty"` Link BundleLinks `json:"link,omitempty"` }
Bundle represents a FHIR bundle response
type BundleEntry ¶ added in v0.39.0
type BundleEntry struct { FullURL string `json:"fullUrl,omitempty"` Resource json.RawMessage `json:"resource,omitempty"` }
BundleEntry represents a entry item in a bundle
type BundleLinks ¶ added in v0.50.0
type BundleLinks []LinkURL
func (*BundleLinks) Next ¶ added in v0.50.0
func (b *BundleLinks) Next() *LinkURL
type HeaderFunc ¶ added in v0.48.0
type HeaderRoundTripper ¶ added in v0.35.0
type HeaderRoundTripper struct { Header http.Header HeaderFunctions []HeaderFunc // contains filtered or unexported fields }
func NewHeaderRoundTripper ¶ added in v0.35.0
func NewHeaderRoundTripper(next http.RoundTripper, Header http.Header, functions ...HeaderFunc) *HeaderRoundTripper
type LoggingRoundTripper ¶ added in v0.35.0
type LoggingRoundTripper struct {
// contains filtered or unexported fields
}
func NewLoggingRoundTripper ¶ added in v0.35.0
func NewLoggingRoundTripper(next http.RoundTripper, w io.Writer) *LoggingRoundTripper
type OperationOutcome ¶ added in v0.51.0
Click to show internal directories.
Click to hide internal directories.