Documentation
¶
Index ¶
- Constants
- type Base64Binary
- type Canonical
- type Code
- type Date
- func (d Date) AsTime() time.Time
- func (d Date) MarshalGQL(w io.Writer)
- func (d Date) MarshalJSON() ([]byte, error)
- func (d Date) MarshalText() (text []byte, err error)
- func (d Date) String() string
- func (d *Date) UnmarshalGQL(v interface{}) error
- func (d *Date) UnmarshalJSON(data []byte) error
- func (d *Date) UnmarshalText(text []byte) error
- func (d *Date) Validate() error
- type DateTime
- type Decimal
- type Instant
- type Markdown
- type OID
- type URI
- type URL
- type UUID
- type XHTML
Constants ¶
const ( // DateTimeFormatLayout is the default format with East African Timezone DateTimeFormatLayout = "2006-01-02T15:04:05+03:00" // DateLayout is a short version of the date format DateLayout = "2006-01-02" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Base64Binary ¶
type Base64Binary string
Base64Binary is a stream of bytes
func (Base64Binary) MarshalGQL ¶
func (sc Base64Binary) MarshalGQL(w io.Writer)
MarshalGQL implements the graphql.Marshaler interface
func (*Base64Binary) UnmarshalGQL ¶
func (sc *Base64Binary) UnmarshalGQL(v interface{}) error
UnmarshalGQL implements the graphql.Unmarshaler interface
type Canonical ¶
type Canonical string
Canonical is a URI that is a reference to a canonical URL on a FHIR resource
func (Canonical) MarshalGQL ¶
MarshalGQL implements the graphql.Marshaler interface
func (*Canonical) UnmarshalGQL ¶
UnmarshalGQL implements the graphql.Unmarshaler interface
type Code ¶
type Code string
Code is a string which has at least one character and no leading or trailing whitespace and where there is no whitespace other than single spaces in the contents
func (Code) MarshalGQL ¶
MarshalGQL implements the graphql.Marshaler interface
func (*Code) UnmarshalGQL ¶
UnmarshalGQL implements the graphql.Unmarshaler interface
type Date ¶
Date is a custom date type that maintains only date level precision
func (Date) MarshalGQL ¶
MarshalGQL implements the graphql.Marshaler interface
func (Date) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface.
func (Date) MarshalText ¶
MarshalText translates the date into text
func (*Date) UnmarshalGQL ¶
UnmarshalGQL implements the graphql.Unmarshaler interface
func (*Date) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface.
func (*Date) UnmarshalText ¶
UnmarshalText parses the value from text
type DateTime ¶
type DateTime string
DateTime is a date, date-time or partial date (e.g. just year or year + month). If hours and minutes are specified, a time zone SHALL be populated. The format is a union of the schema types gYear, gYearMonth, date and dateTime. Seconds must be provided due to schema type constraints but may be zero-filled and may be ignored. Dates SHALL be valid dates.
func (DateTime) MarshalGQL ¶
MarshalGQL implements the graphql.Marshaler interface
func (*DateTime) UnmarshalGQL ¶
UnmarshalGQL implements the graphql.Unmarshaler interface
type Decimal ¶
Decimal is a rational number with implicit precision
func (Decimal) MarshalGQL ¶
MarshalGQL implements the graphql.Marshaler interface
func (*Decimal) UnmarshalGQL ¶
UnmarshalGQL implements the graphql.Unmarshaler interface
type Instant ¶
type Instant string
Instant is an instant in time - known at least to the second
func (Instant) MarshalGQL ¶
MarshalGQL implements the graphql.Marshaler interface
func (*Instant) UnmarshalGQL ¶
UnmarshalGQL implements the graphql.Unmarshaler interface
type Markdown ¶
type Markdown string
Markdown is a string that may contain Github Flavored Markdown syntax for optional processing by a mark down presentation engine
func (Markdown) MarshalGQL ¶
MarshalGQL implements the graphql.Marshaler interface
func (*Markdown) UnmarshalGQL ¶
UnmarshalGQL implements the graphql.Unmarshaler interface
type OID ¶
type OID string
OID is an OID represented as a URI
func (OID) MarshalGQL ¶
MarshalGQL implements the graphql.Marshaler interface
func (*OID) UnmarshalGQL ¶
UnmarshalGQL implements the graphql.Unmarshaler interface
type URI ¶
type URI string
URI is string of characters used to identify a name or a resource
func (URI) MarshalGQL ¶
MarshalGQL implements the graphql.Marshaler interface
func (*URI) UnmarshalGQL ¶
UnmarshalGQL implements the graphql.Unmarshaler interface
type URL ¶
type URL string
URL is a URI that is a literal reference
func (URL) MarshalGQL ¶
MarshalGQL implements the graphql.Marshaler interface
func (*URL) UnmarshalGQL ¶
UnmarshalGQL implements the graphql.Unmarshaler interface
type UUID ¶
type UUID string
UUID is a UUID, represented as a URI
func (UUID) MarshalGQL ¶
MarshalGQL implements the graphql.Marshaler interface
func (*UUID) UnmarshalGQL ¶
UnmarshalGQL implements the graphql.Unmarshaler interface
type XHTML ¶
type XHTML string
XHTML is xhtml - escaped html (see specfication)
func (XHTML) MarshalGQL ¶
MarshalGQL implements the graphql.Marshaler interface
func (*XHTML) UnmarshalGQL ¶
UnmarshalGQL implements the graphql.Unmarshaler interface