internal

package
v0.81.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

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="}

Functions

func CheckResponse added in v0.42.0

func CheckResponse(r *http.Response) error

CheckResponse checks the API response for errors, and returns them if present.

func TryHTTPCall added in v0.78.0

func TryHTTPCall(ctx context.Context, numberOfTries uint64, operation func() (*http.Response, error), retryOnCodes ...int) error

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 []LinkURL

func (*BundleLinks) Next added in v0.50.0

func (b *BundleLinks) Next() *LinkURL

type Coding added in v0.51.0

type Coding struct {
	System string `json:"system"`
	Code   string `json:"code"`
}

type Details added in v0.51.0

type Details struct {
	Coding Coding `json:"coding"`
	Text   string `json:"text"`
}

type HeaderFunc added in v0.48.0

type HeaderFunc func(req *http.Request) error

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

func (*HeaderRoundTripper) RoundTrip added in v0.35.0

func (rt *HeaderRoundTripper) RoundTrip(req *http.Request) (resp *http.Response, err error)

type Issue added in v0.51.0

type Issue struct {
	Severity    string  `json:"severity"`
	Code        string  `json:"code"`
	Details     Details `json:"details"`
	Diagnostics string  `json:"diagnostics"`
}

type LinkURL added in v0.50.0

type LinkURL struct {
	URL      string `json:"url"`
	Relation string `json:"relation"`
}

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

func (*LoggingRoundTripper) RoundTrip added in v0.35.0

func (rt *LoggingRoundTripper) RoundTrip(req *http.Request) (resp *http.Response, err error)

type OperationOutcome added in v0.51.0

type OperationOutcome struct {
	Issue        []Issue `json:"issue"`
	ResourceType string  `json:"resourceType"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL