internal

package
v0.49.1 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LibraryVersion = "0.49.1"
)

Variables

This section is empty.

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.

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

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 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 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, logFile *os.File) *LoggingRoundTripper

func (*LoggingRoundTripper) RoundTrip added in v0.35.0

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

Jump to

Keyboard shortcuts

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