Documentation
¶
Overview ¶
Package strfmt contains custom string formats
TODO: add info on how to define and register a custom format
Index ¶
- Constants
- Variables
- func DefaultNameNormalizer(name string) string
- func IsBSONObjectID(str string) bool
- func IsDate(str string) bool
- func IsDateTime(str string) bool
- func IsDuration(str string) bool
- func IsEmail(str string) bool
- func IsHostname(str string) bool
- func IsUUID(str string) bool
- func IsUUID3(str string) bool
- func IsUUID4(str string) bool
- func IsUUID5(str string) bool
- func ParseDuration(cand string) (time.Duration, error)
- type Base64
- func (b *Base64) DeepCopy() *Base64
- func (b *Base64) DeepCopyInto(out *Base64)
- func (b *Base64) GetBSON() (interface{}, error)
- func (b Base64) MarshalEasyJSON(w *jwriter.Writer)
- func (b Base64) MarshalJSON() ([]byte, error)
- func (b Base64) MarshalText() ([]byte, error)
- func (b *Base64) Scan(raw interface{}) error
- func (b *Base64) SetBSON(raw bson.Raw) error
- func (b Base64) String() string
- func (b *Base64) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (b *Base64) UnmarshalJSON(data []byte) error
- func (b *Base64) UnmarshalText(data []byte) error
- func (b Base64) Value() (driver.Value, error)
- type CIDR
- func (u *CIDR) DeepCopy() *CIDR
- func (u *CIDR) DeepCopyInto(out *CIDR)
- func (u *CIDR) GetBSON() (interface{}, error)
- func (u CIDR) MarshalEasyJSON(w *jwriter.Writer)
- func (u CIDR) MarshalJSON() ([]byte, error)
- func (u CIDR) MarshalText() ([]byte, error)
- func (u *CIDR) Scan(raw interface{}) error
- func (u *CIDR) SetBSON(raw bson.Raw) error
- func (u CIDR) String() string
- func (u *CIDR) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (u *CIDR) UnmarshalJSON(data []byte) error
- func (u *CIDR) UnmarshalText(data []byte) error
- func (u CIDR) Value() (driver.Value, error)
- type CreditCard
- func (u *CreditCard) DeepCopy() *CreditCard
- func (u *CreditCard) DeepCopyInto(out *CreditCard)
- func (u *CreditCard) GetBSON() (interface{}, error)
- func (u CreditCard) MarshalEasyJSON(w *jwriter.Writer)
- func (u CreditCard) MarshalJSON() ([]byte, error)
- func (u CreditCard) MarshalText() ([]byte, error)
- func (u *CreditCard) Scan(raw interface{}) error
- func (u *CreditCard) SetBSON(raw bson.Raw) error
- func (u CreditCard) String() string
- func (u *CreditCard) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (u *CreditCard) UnmarshalJSON(data []byte) error
- func (u *CreditCard) UnmarshalText(data []byte) error
- func (u CreditCard) Value() (driver.Value, error)
- type Date
- func (d *Date) DeepCopy() *Date
- func (d *Date) DeepCopyInto(out *Date)
- func (d *Date) GetBSON() (interface{}, error)
- func (d Date) MarshalEasyJSON(w *jwriter.Writer)
- func (d Date) MarshalJSON() ([]byte, error)
- func (d Date) MarshalText() ([]byte, error)
- func (d *Date) Scan(raw interface{}) error
- func (d *Date) SetBSON(raw bson.Raw) error
- func (d Date) String() string
- func (d *Date) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (d *Date) UnmarshalJSON(data []byte) error
- func (d *Date) UnmarshalText(text []byte) error
- func (d Date) Value() (driver.Value, error)
- type DateTime
- func (t *DateTime) DeepCopy() *DateTime
- func (t *DateTime) DeepCopyInto(out *DateTime)
- func (t *DateTime) GetBSON() (interface{}, error)
- func (t DateTime) MarshalEasyJSON(w *jwriter.Writer)
- func (t DateTime) MarshalJSON() ([]byte, error)
- func (t DateTime) MarshalText() ([]byte, error)
- func (t *DateTime) Scan(raw interface{}) error
- func (t *DateTime) SetBSON(raw bson.Raw) error
- func (t DateTime) String() string
- func (t *DateTime) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (t *DateTime) UnmarshalJSON(data []byte) error
- func (t *DateTime) UnmarshalText(text []byte) error
- func (t DateTime) Value() (driver.Value, error)
- type Duration
- func (d *Duration) DeepCopy() *Duration
- func (d *Duration) DeepCopyInto(out *Duration)
- func (d *Duration) GetBSON() (interface{}, error)
- func (d Duration) MarshalEasyJSON(w *jwriter.Writer)
- func (d Duration) MarshalJSON() ([]byte, error)
- func (d Duration) MarshalText() ([]byte, error)
- func (d *Duration) Scan(raw interface{}) error
- func (d *Duration) SetBSON(raw bson.Raw) error
- func (d Duration) String() string
- func (d *Duration) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (d *Duration) UnmarshalJSON(data []byte) error
- func (d *Duration) UnmarshalText(data []byte) error
- func (d Duration) Value() (driver.Value, error)
- type Email
- func (e *Email) DeepCopy() *Email
- func (e *Email) DeepCopyInto(out *Email)
- func (e *Email) GetBSON() (interface{}, error)
- func (e Email) MarshalEasyJSON(w *jwriter.Writer)
- func (e Email) MarshalJSON() ([]byte, error)
- func (e Email) MarshalText() ([]byte, error)
- func (e *Email) Scan(raw interface{}) error
- func (e *Email) SetBSON(raw bson.Raw) error
- func (e Email) String() string
- func (e *Email) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (e *Email) UnmarshalJSON(data []byte) error
- func (e *Email) UnmarshalText(data []byte) error
- func (e Email) Value() (driver.Value, error)
- type Format
- type HexColor
- func (h *HexColor) DeepCopy() *HexColor
- func (h *HexColor) DeepCopyInto(out *HexColor)
- func (h *HexColor) GetBSON() (interface{}, error)
- func (h HexColor) MarshalEasyJSON(w *jwriter.Writer)
- func (h HexColor) MarshalJSON() ([]byte, error)
- func (h HexColor) MarshalText() ([]byte, error)
- func (h *HexColor) Scan(raw interface{}) error
- func (h *HexColor) SetBSON(raw bson.Raw) error
- func (h HexColor) String() string
- func (h *HexColor) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (h *HexColor) UnmarshalJSON(data []byte) error
- func (h *HexColor) UnmarshalText(data []byte) error
- func (h HexColor) Value() (driver.Value, error)
- type Hostname
- func (h *Hostname) DeepCopy() *Hostname
- func (h *Hostname) DeepCopyInto(out *Hostname)
- func (h *Hostname) GetBSON() (interface{}, error)
- func (h Hostname) MarshalEasyJSON(w *jwriter.Writer)
- func (h Hostname) MarshalJSON() ([]byte, error)
- func (h Hostname) MarshalText() ([]byte, error)
- func (h *Hostname) Scan(raw interface{}) error
- func (h *Hostname) SetBSON(raw bson.Raw) error
- func (h Hostname) String() string
- func (h *Hostname) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (h *Hostname) UnmarshalJSON(data []byte) error
- func (h *Hostname) UnmarshalText(data []byte) error
- func (h Hostname) Value() (driver.Value, error)
- type IPv4
- func (u *IPv4) DeepCopy() *IPv4
- func (u *IPv4) DeepCopyInto(out *IPv4)
- func (u *IPv4) GetBSON() (interface{}, error)
- func (u IPv4) MarshalEasyJSON(w *jwriter.Writer)
- func (u IPv4) MarshalJSON() ([]byte, error)
- func (u IPv4) MarshalText() ([]byte, error)
- func (u *IPv4) Scan(raw interface{}) error
- func (u *IPv4) SetBSON(raw bson.Raw) error
- func (u IPv4) String() string
- func (u *IPv4) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (u *IPv4) UnmarshalJSON(data []byte) error
- func (u *IPv4) UnmarshalText(data []byte) error
- func (u IPv4) Value() (driver.Value, error)
- type IPv6
- func (u *IPv6) DeepCopy() *IPv6
- func (u *IPv6) DeepCopyInto(out *IPv6)
- func (u *IPv6) GetBSON() (interface{}, error)
- func (u IPv6) MarshalEasyJSON(w *jwriter.Writer)
- func (u IPv6) MarshalJSON() ([]byte, error)
- func (u IPv6) MarshalText() ([]byte, error)
- func (u *IPv6) Scan(raw interface{}) error
- func (u *IPv6) SetBSON(raw bson.Raw) error
- func (u IPv6) String() string
- func (u *IPv6) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (u *IPv6) UnmarshalJSON(data []byte) error
- func (u *IPv6) UnmarshalText(data []byte) error
- func (u IPv6) Value() (driver.Value, error)
- type ISBN
- func (u *ISBN) DeepCopy() *ISBN
- func (u *ISBN) DeepCopyInto(out *ISBN)
- func (u *ISBN) GetBSON() (interface{}, error)
- func (u ISBN) MarshalEasyJSON(w *jwriter.Writer)
- func (u ISBN) MarshalJSON() ([]byte, error)
- func (u ISBN) MarshalText() ([]byte, error)
- func (u *ISBN) Scan(raw interface{}) error
- func (u *ISBN) SetBSON(raw bson.Raw) error
- func (u ISBN) String() string
- func (u *ISBN) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (u *ISBN) UnmarshalJSON(data []byte) error
- func (u *ISBN) UnmarshalText(data []byte) error
- func (u ISBN) Value() (driver.Value, error)
- type ISBN10
- func (u *ISBN10) DeepCopy() *ISBN10
- func (u *ISBN10) DeepCopyInto(out *ISBN10)
- func (u *ISBN10) GetBSON() (interface{}, error)
- func (u ISBN10) MarshalEasyJSON(w *jwriter.Writer)
- func (u ISBN10) MarshalJSON() ([]byte, error)
- func (u ISBN10) MarshalText() ([]byte, error)
- func (u *ISBN10) Scan(raw interface{}) error
- func (u *ISBN10) SetBSON(raw bson.Raw) error
- func (u ISBN10) String() string
- func (u *ISBN10) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (u *ISBN10) UnmarshalJSON(data []byte) error
- func (u *ISBN10) UnmarshalText(data []byte) error
- func (u ISBN10) Value() (driver.Value, error)
- type ISBN13
- func (u *ISBN13) DeepCopy() *ISBN13
- func (u *ISBN13) DeepCopyInto(out *ISBN13)
- func (u *ISBN13) GetBSON() (interface{}, error)
- func (u ISBN13) MarshalEasyJSON(w *jwriter.Writer)
- func (u ISBN13) MarshalJSON() ([]byte, error)
- func (u ISBN13) MarshalText() ([]byte, error)
- func (u *ISBN13) Scan(raw interface{}) error
- func (u *ISBN13) SetBSON(raw bson.Raw) error
- func (u ISBN13) String() string
- func (u *ISBN13) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (u *ISBN13) UnmarshalJSON(data []byte) error
- func (u *ISBN13) UnmarshalText(data []byte) error
- func (u ISBN13) Value() (driver.Value, error)
- type MAC
- func (u *MAC) DeepCopy() *MAC
- func (u *MAC) DeepCopyInto(out *MAC)
- func (u *MAC) GetBSON() (interface{}, error)
- func (u MAC) MarshalEasyJSON(w *jwriter.Writer)
- func (u MAC) MarshalJSON() ([]byte, error)
- func (u MAC) MarshalText() ([]byte, error)
- func (u *MAC) Scan(raw interface{}) error
- func (u *MAC) SetBSON(raw bson.Raw) error
- func (u MAC) String() string
- func (u *MAC) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (u *MAC) UnmarshalJSON(data []byte) error
- func (u *MAC) UnmarshalText(data []byte) error
- func (u MAC) Value() (driver.Value, error)
- type NameNormalizer
- type ObjectId
- func (id *ObjectId) DeepCopy() *ObjectId
- func (id *ObjectId) DeepCopyInto(out *ObjectId)
- func (id *ObjectId) GetBSON() (interface{}, error)
- func (id *ObjectId) MarshalEasyJSON(w *jwriter.Writer)
- func (id *ObjectId) MarshalJSON() ([]byte, error)
- func (id *ObjectId) MarshalText() ([]byte, error)
- func (id *ObjectId) Scan(raw interface{}) error
- func (id *ObjectId) SetBSON(raw bson.Raw) error
- func (id *ObjectId) String() string
- func (id *ObjectId) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (id *ObjectId) UnmarshalJSON(data []byte) error
- func (id *ObjectId) UnmarshalText(data []byte) error
- func (id *ObjectId) Value() (driver.Value, error)
- type Password
- func (r *Password) DeepCopy() *Password
- func (r *Password) DeepCopyInto(out *Password)
- func (r *Password) GetBSON() (interface{}, error)
- func (r Password) MarshalEasyJSON(w *jwriter.Writer)
- func (r Password) MarshalJSON() ([]byte, error)
- func (r Password) MarshalText() ([]byte, error)
- func (r *Password) Scan(raw interface{}) error
- func (r *Password) SetBSON(raw bson.Raw) error
- func (r Password) String() string
- func (r *Password) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (r *Password) UnmarshalJSON(data []byte) error
- func (r *Password) UnmarshalText(data []byte) error
- func (r Password) Value() (driver.Value, error)
- type RGBColor
- func (r *RGBColor) DeepCopy() *RGBColor
- func (r *RGBColor) DeepCopyInto(out *RGBColor)
- func (r *RGBColor) GetBSON() (interface{}, error)
- func (r RGBColor) MarshalEasyJSON(w *jwriter.Writer)
- func (r RGBColor) MarshalJSON() ([]byte, error)
- func (r RGBColor) MarshalText() ([]byte, error)
- func (r *RGBColor) Scan(raw interface{}) error
- func (r *RGBColor) SetBSON(raw bson.Raw) error
- func (r RGBColor) String() string
- func (r *RGBColor) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (r *RGBColor) UnmarshalJSON(data []byte) error
- func (r *RGBColor) UnmarshalText(data []byte) error
- func (r RGBColor) Value() (driver.Value, error)
- type Registry
- type SSN
- func (u *SSN) DeepCopy() *SSN
- func (u *SSN) DeepCopyInto(out *SSN)
- func (u *SSN) GetBSON() (interface{}, error)
- func (u SSN) MarshalEasyJSON(w *jwriter.Writer)
- func (u SSN) MarshalJSON() ([]byte, error)
- func (u SSN) MarshalText() ([]byte, error)
- func (u *SSN) Scan(raw interface{}) error
- func (u *SSN) SetBSON(raw bson.Raw) error
- func (u SSN) String() string
- func (u *SSN) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (u *SSN) UnmarshalJSON(data []byte) error
- func (u *SSN) UnmarshalText(data []byte) error
- func (u SSN) Value() (driver.Value, error)
- type URI
- func (u *URI) DeepCopy() *URI
- func (u *URI) DeepCopyInto(out *URI)
- func (u *URI) GetBSON() (interface{}, error)
- func (u URI) MarshalEasyJSON(w *jwriter.Writer)
- func (u URI) MarshalJSON() ([]byte, error)
- func (u URI) MarshalText() ([]byte, error)
- func (u *URI) Scan(raw interface{}) error
- func (u *URI) SetBSON(raw bson.Raw) error
- func (u URI) String() string
- func (u *URI) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (u *URI) UnmarshalJSON(data []byte) error
- func (u *URI) UnmarshalText(data []byte) error
- func (u URI) Value() (driver.Value, error)
- type UUID
- func (u *UUID) DeepCopy() *UUID
- func (u *UUID) DeepCopyInto(out *UUID)
- func (u *UUID) GetBSON() (interface{}, error)
- func (u UUID) MarshalEasyJSON(w *jwriter.Writer)
- func (u UUID) MarshalJSON() ([]byte, error)
- func (u UUID) MarshalText() ([]byte, error)
- func (u *UUID) Scan(raw interface{}) error
- func (u *UUID) SetBSON(raw bson.Raw) error
- func (u UUID) String() string
- func (u *UUID) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (u *UUID) UnmarshalJSON(data []byte) error
- func (u *UUID) UnmarshalText(data []byte) error
- func (u UUID) Value() (driver.Value, error)
- type UUID3
- func (u *UUID3) DeepCopy() *UUID3
- func (u *UUID3) DeepCopyInto(out *UUID3)
- func (u *UUID3) GetBSON() (interface{}, error)
- func (u UUID3) MarshalEasyJSON(w *jwriter.Writer)
- func (u UUID3) MarshalJSON() ([]byte, error)
- func (u UUID3) MarshalText() ([]byte, error)
- func (u *UUID3) Scan(raw interface{}) error
- func (u *UUID3) SetBSON(raw bson.Raw) error
- func (u UUID3) String() string
- func (u *UUID3) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (u *UUID3) UnmarshalJSON(data []byte) error
- func (u *UUID3) UnmarshalText(data []byte) error
- func (u UUID3) Value() (driver.Value, error)
- type UUID4
- func (u *UUID4) DeepCopy() *UUID4
- func (u *UUID4) DeepCopyInto(out *UUID4)
- func (u *UUID4) GetBSON() (interface{}, error)
- func (u UUID4) MarshalEasyJSON(w *jwriter.Writer)
- func (u UUID4) MarshalJSON() ([]byte, error)
- func (u UUID4) MarshalText() ([]byte, error)
- func (u *UUID4) Scan(raw interface{}) error
- func (u *UUID4) SetBSON(raw bson.Raw) error
- func (u UUID4) String() string
- func (u *UUID4) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (u *UUID4) UnmarshalJSON(data []byte) error
- func (u *UUID4) UnmarshalText(data []byte) error
- func (u UUID4) Value() (driver.Value, error)
- type UUID5
- func (u *UUID5) DeepCopy() *UUID5
- func (u *UUID5) DeepCopyInto(out *UUID5)
- func (u *UUID5) GetBSON() (interface{}, error)
- func (u UUID5) MarshalEasyJSON(w *jwriter.Writer)
- func (u UUID5) MarshalJSON() ([]byte, error)
- func (u UUID5) MarshalText() ([]byte, error)
- func (u *UUID5) Scan(raw interface{}) error
- func (u *UUID5) SetBSON(raw bson.Raw) error
- func (u UUID5) String() string
- func (u *UUID5) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (u *UUID5) UnmarshalJSON(data []byte) error
- func (u *UUID5) UnmarshalText(data []byte) error
- func (u UUID5) Value() (driver.Value, error)
- type Validator
Constants ¶
const ( // HostnamePattern http://json-schema.org/latest/json-schema-validation.html#anchor114 // A string instance is valid against this attribute if it is a valid // representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034]. // http://tools.ietf.org/html/rfc1034#section-3.5 // <digit> ::= any one of the ten digits 0 through 9 // var digit = /[0-9]/; // <letter> ::= any one of the 52 alphabetic characters A through Z in upper case and a through z in lower case // var letter = /[a-zA-Z]/; // <let-dig> ::= <letter> | <digit> // var letDig = /[0-9a-zA-Z]/; // <let-dig-hyp> ::= <let-dig> | "-" // var letDigHyp = /[-0-9a-zA-Z]/; // <ldh-str> ::= <let-dig-hyp> | <let-dig-hyp> <ldh-str> // var ldhStr = /[-0-9a-zA-Z]+/; // <label> ::= <letter> [ [ <ldh-str> ] <let-dig> ] // var label = /[a-zA-Z](([-0-9a-zA-Z]+)?[0-9a-zA-Z])?/; // <subdomain> ::= <label> | <subdomain> "." <label> // var subdomain = /^[a-zA-Z](([-0-9a-zA-Z]+)?[0-9a-zA-Z])?(\.[a-zA-Z](([-0-9a-zA-Z]+)?[0-9a-zA-Z])?)*$/; // <domain> ::= <subdomain> | " " // // Additional validations: // - for FDQNs, top-level domain (e.g. ".com"), is at least to letters long (no special characters here) // - hostnames may start with a digit [RFC1123] // - special registered names with an underscore ('_') are not allowed in this context // - dashes are permitted, but not at the start or the end of a segment // - long top-level domain names (e.g. example.london) are permitted // - symbol unicode points are permitted (e.g. emoji) (not for top-level domain) HostnamePattern = `` /* 166-byte string literal not displayed */ // UUIDPattern Regex for UUID that allows uppercase UUIDPattern = `(?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$` // UUID3Pattern Regex for UUID3 that allows uppercase UUID3Pattern = `(?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?3[0-9a-f]{3}-?[0-9a-f]{4}-?[0-9a-f]{12}$` // UUID4Pattern Regex for UUID4 that allows uppercase UUID4Pattern = `(?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?4[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$` // UUID5Pattern Regex for UUID5 that allows uppercase UUID5Pattern = `(?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?5[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$` )
const ( // RFC3339Millis represents a ISO8601 format to millis instead of to nanos RFC3339Millis = "2006-01-02T15:04:05.000Z07:00" // RFC3339Micro represents a ISO8601 format to micro instead of to nano RFC3339Micro = "2006-01-02T15:04:05.000000Z07:00" // DateTimePattern pattern to match for the date-time format from http://tools.ietf.org/html/rfc3339#section-5.6 DateTimePattern = `^([0-9]{2}):([0-9]{2}):([0-9]{2})(.[0-9]+)?(z|([+-][0-9]{2}:[0-9]{2}))$` )
const ( // RFC3339FullDate represents a full-date as specified by RFC3339 // See: http://goo.gl/xXOvVd RFC3339FullDate = "2006-01-02" )
Variables ¶
var Default = NewSeededFormats(nil, nil)
Default is the default formats registry
var ( // MarshalFormat sets the time resolution format used for marshaling time (set to milliseconds) MarshalFormat = RFC3339Millis )
Functions ¶
func DefaultNameNormalizer ¶
DefaultNameNormalizer removes all dashes
func IsBSONObjectID ¶
IsBSONObjectID returns true when the string is a valid BSON.ObjectId
func IsDateTime ¶
IsDateTime returns true when the string is a valid date-time
func IsDuration ¶
IsDuration returns true if the provided string is a valid duration
func IsHostname ¶
IsHostname returns true when the string is a valid hostname
func IsUUID ¶
IsUUID returns true is the string matches a UUID, upper case is allowed
func IsUUID3 ¶
IsUUID3 returns true is the string matches a UUID, upper case is allowed
func IsUUID4 ¶
IsUUID4 returns true is the string matches a UUID, upper case is allowed
func IsUUID5 ¶
IsUUID5 returns true is the string matches a UUID, upper case is allowed
Types ¶
type Base64 ¶
type Base64 []byte
Base64 represents a base64 encoded string, using URLEncoding alphabet
swagger:strfmt byte
func (*Base64) DeepCopy ¶
DeepCopy copies the receiver into a new Base64.
func (*Base64) DeepCopyInto ¶
DeepCopyInto copies the receiver and writes its value into out.
func (*Base64) GetBSON ¶
GetBSON returns the Base64 as a bson.M{} map.
func (Base64) MarshalEasyJSON ¶
MarshalEasyJSON writes the Base64 to a easyjson.Writer
func (Base64) MarshalJSON ¶
MarshalJSON returns the Base64 as JSON
func (Base64) MarshalText ¶
MarshalText turns this instance into text
func (*Base64) Scan ¶
Scan read a value from a database driver
func (*Base64) SetBSON ¶
SetBSON sets the Base64 from raw bson data
func (*Base64) UnmarshalEasyJSON ¶
UnmarshalEasyJSON sets the Base64 from a easyjson.Lexer
func (*Base64) UnmarshalJSON ¶
UnmarshalJSON sets the Base64 from JSON
func (*Base64) UnmarshalText ¶
UnmarshalText hydrates this instance from text
type CIDR ¶
type CIDR string
CIDR represents a Classless Inter-Domain Routing notation
swagger:strfmt cidr
func (*CIDR) DeepCopy ¶
DeepCopy copies the receiver into a new CIDR.
func (*CIDR) DeepCopyInto ¶
DeepCopyInto copies the receiver and writes its value into out.
func (*CIDR) GetBSON ¶
GetBSON returns the CIDR as a bson.M{} map.
func (CIDR) MarshalEasyJSON ¶
MarshalEasyJSON writes the CIDR to a easyjson.Writer
func (CIDR) MarshalJSON ¶
MarshalJSON returns the CIDR as JSON
func (CIDR) MarshalText ¶
MarshalText turns this instance into text
func (*CIDR) Scan ¶
Scan read a value from a database driver
func (*CIDR) SetBSON ¶
SetBSON sets the CIDR from raw bson data
func (*CIDR) UnmarshalEasyJSON ¶
UnmarshalEasyJSON sets the CIDR from a easyjson.Lexer
func (*CIDR) UnmarshalJSON ¶
UnmarshalJSON sets the CIDR from JSON
func (*CIDR) UnmarshalText ¶
UnmarshalText hydrates this instance from text
type CreditCard ¶
type CreditCard string
CreditCard represents a credit card string format
swagger:strfmt creditcard
func (*CreditCard) DeepCopy ¶
func (u *CreditCard) DeepCopy() *CreditCard
DeepCopy copies the receiver into a new CreditCard.
func (*CreditCard) DeepCopyInto ¶
func (u *CreditCard) DeepCopyInto(out *CreditCard)
DeepCopyInto copies the receiver and writes its value into out.
func (*CreditCard) GetBSON ¶
func (u *CreditCard) GetBSON() (interface{}, error)
GetBSON returns the CreditCard as a bson.M{} map.
func (CreditCard) MarshalEasyJSON ¶
func (u CreditCard) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON writes the CreditCard to a easyjson.Writer
func (CreditCard) MarshalJSON ¶
func (u CreditCard) MarshalJSON() ([]byte, error)
MarshalJSON returns the CreditCard as JSON
func (CreditCard) MarshalText ¶
func (u CreditCard) MarshalText() ([]byte, error)
MarshalText turns this instance into text
func (*CreditCard) Scan ¶
func (u *CreditCard) Scan(raw interface{}) error
Scan read a value from a database driver
func (*CreditCard) SetBSON ¶
func (u *CreditCard) SetBSON(raw bson.Raw) error
SetBSON sets the CreditCard from raw bson data
func (CreditCard) String ¶
func (u CreditCard) String() string
func (*CreditCard) UnmarshalEasyJSON ¶
func (u *CreditCard) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON sets the CreditCard from a easyjson.Lexer
func (*CreditCard) UnmarshalJSON ¶
func (u *CreditCard) UnmarshalJSON(data []byte) error
UnmarshalJSON sets the CreditCard from JSON
func (*CreditCard) UnmarshalText ¶
func (u *CreditCard) UnmarshalText(data []byte) error
UnmarshalText hydrates this instance from text
func (CreditCard) Value ¶
func (u CreditCard) Value() (driver.Value, error)
Value converts a value to a database driver value
type Date ¶
Date represents a date from the API
swagger:strfmt date
func (*Date) DeepCopy ¶
DeepCopy copies the receiver into a new Date.
func (*Date) DeepCopyInto ¶
DeepCopyInto copies the receiver and writes its value into out.
func (*Date) GetBSON ¶
GetBSON returns the Date as a bson.M{} map.
func (Date) MarshalEasyJSON ¶
MarshalEasyJSON writes the Date to a easyjson.Writer
func (Date) MarshalJSON ¶
MarshalJSON returns the Date as JSON
func (Date) MarshalText ¶
MarshalText serializes this date type to string
func (*Date) Scan ¶
Scan scans a Date value from database driver type.
func (*Date) SetBSON ¶
SetBSON sets the Date from raw bson data
func (*Date) UnmarshalEasyJSON ¶
UnmarshalEasyJSON sets the Date from a easyjson.Lexer
func (*Date) UnmarshalJSON ¶
UnmarshalJSON sets the Date from JSON
func (*Date) UnmarshalText ¶
UnmarshalText parses a text representation into a date type
type DateTime ¶
DateTime is a time but it serializes to ISO8601 format with millis It knows how to read 3 different variations of a RFC3339 date time. Most APIs we encounter want either millisecond or second precision times. This just tries to make it worry-free.
swagger:strfmt date-time
func NewDateTime ¶
func NewDateTime() DateTime
NewDateTime is a representation of zero value for DateTime type
func ParseDateTime ¶
ParseDateTime parses a string that represents an ISO8601 time or a unix epoch
func (*DateTime) DeepCopy ¶
DeepCopy copies the receiver into a new DateTime.
func (*DateTime) DeepCopyInto ¶
DeepCopyInto copies the receiver and writes its value into out.
func (*DateTime) GetBSON ¶
GetBSON returns the DateTime as a bson.M{} map.
func (DateTime) MarshalEasyJSON ¶
MarshalEasyJSON writes the DateTime to a easyjson.Writer
func (DateTime) MarshalJSON ¶
MarshalJSON returns the DateTime as JSON
func (DateTime) MarshalText ¶
MarshalText implements the text marshaller interface
func (*DateTime) Scan ¶
Scan scans a DateTime value from database driver type.
func (*DateTime) SetBSON ¶
SetBSON sets the DateTime from raw bson data
func (*DateTime) UnmarshalEasyJSON ¶
UnmarshalEasyJSON sets the DateTime from a easyjson.Lexer
func (*DateTime) UnmarshalJSON ¶
UnmarshalJSON sets the DateTime from JSON
func (*DateTime) UnmarshalText ¶
UnmarshalText implements the text unmarshaller interface
type Duration ¶
Duration represents a duration
Duration stores a period of time as a nanosecond count, with the largest repesentable duration being approximately 290 years.
swagger:strfmt duration
func (*Duration) DeepCopy ¶
DeepCopy copies the receiver into a new Duration.
func (*Duration) DeepCopyInto ¶
DeepCopyInto copies the receiver and writes its value into out.
func (*Duration) GetBSON ¶
GetBSON returns the Duration a bson.M{} map.
func (Duration) MarshalEasyJSON ¶
MarshalEasyJSON writes the Duration to a easyjson.Writer
func (Duration) MarshalJSON ¶
MarshalJSON returns the Duration as JSON
func (Duration) MarshalText ¶
MarshalText turns this instance into text
func (*Duration) Scan ¶
Scan reads a Duration value from database driver type.
func (*Duration) SetBSON ¶
SetBSON sets the Duration from raw bson data
func (Duration) String ¶
String converts this duration to a string
func (*Duration) UnmarshalEasyJSON ¶
UnmarshalEasyJSON sets the Duration from a easyjson.Lexer
func (*Duration) UnmarshalJSON ¶
UnmarshalJSON sets the Duration from JSON
func (*Duration) UnmarshalText ¶
UnmarshalText hydrates this instance from text
type Email ¶
type Email string
Email represents the email string format as specified by the json schema spec
swagger:strfmt email
func (*Email) DeepCopy ¶
DeepCopy copies the receiver into a new Email.
func (*Email) DeepCopyInto ¶
DeepCopyInto copies the receiver and writes its value into out.
func (*Email) GetBSON ¶
GetBSON returns the Email as a bson.M{} map.
func (Email) MarshalEasyJSON ¶
MarshalEasyJSON writes the Email to a easyjson.Writer
func (Email) MarshalJSON ¶
MarshalJSON returns the Email as JSON
func (Email) MarshalText ¶
MarshalText turns this instance into text
func (*Email) Scan ¶
Scan read a value from a database driver
func (*Email) SetBSON ¶
SetBSON sets the Email from raw bson data
func (*Email) UnmarshalEasyJSON ¶
UnmarshalEasyJSON sets the Email from a easyjson.Lexer
func (*Email) UnmarshalJSON ¶
UnmarshalJSON sets the Email from JSON
func (*Email) UnmarshalText ¶
UnmarshalText hydrates this instance from text
type Format ¶
type Format interface { String() string encoding.TextMarshaler encoding.TextUnmarshaler }
Format represents a string format.
All implementations of Format provide a string representation and text marshaling/unmarshaling interface to be used by encoders (e.g. encoding/json).
type HexColor ¶
type HexColor string
HexColor represents a hex color string format
swagger:strfmt hexcolor
func (*HexColor) DeepCopy ¶
DeepCopy copies the receiver into a new HexColor.
func (*HexColor) DeepCopyInto ¶
DeepCopyInto copies the receiver and writes its value into out.
func (*HexColor) GetBSON ¶
GetBSON returns the HexColor as a bson.M{} map.
func (HexColor) MarshalEasyJSON ¶
MarshalEasyJSON writes the HexColor to a easyjson.Writer
func (HexColor) MarshalJSON ¶
MarshalJSON returns the HexColor as JSON
func (HexColor) MarshalText ¶
MarshalText turns this instance into text
func (*HexColor) Scan ¶
Scan read a value from a database driver
func (*HexColor) SetBSON ¶
SetBSON sets the HexColor from raw bson data
func (*HexColor) UnmarshalEasyJSON ¶
UnmarshalEasyJSON sets the HexColor from a easyjson.Lexer
func (*HexColor) UnmarshalJSON ¶
UnmarshalJSON sets the HexColor from JSON
func (*HexColor) UnmarshalText ¶
UnmarshalText hydrates this instance from text
type Hostname ¶
type Hostname string
Hostname represents the hostname string format as specified by the json schema spec
swagger:strfmt hostname
func (*Hostname) DeepCopy ¶
DeepCopy copies the receiver into a new Hostname.
func (*Hostname) DeepCopyInto ¶
DeepCopyInto copies the receiver and writes its value into out.
func (*Hostname) GetBSON ¶
GetBSON returns the Hostname as a bson.M{} map.
func (Hostname) MarshalEasyJSON ¶
MarshalEasyJSON writes the Hostname to a easyjson.Writer
func (Hostname) MarshalJSON ¶
MarshalJSON returns the Hostname as JSON
func (Hostname) MarshalText ¶
MarshalText turns this instance into text
func (*Hostname) Scan ¶
Scan read a value from a database driver
func (*Hostname) SetBSON ¶
SetBSON sets the Hostname from raw bson data
func (*Hostname) UnmarshalEasyJSON ¶
UnmarshalEasyJSON sets the Hostname from a easyjson.Lexer
func (*Hostname) UnmarshalJSON ¶
UnmarshalJSON sets the Hostname from JSON
func (*Hostname) UnmarshalText ¶
UnmarshalText hydrates this instance from text
type IPv4 ¶
type IPv4 string
IPv4 represents an IP v4 address
swagger:strfmt ipv4
func (*IPv4) DeepCopy ¶
DeepCopy copies the receiver into a new IPv4.
func (*IPv4) DeepCopyInto ¶
DeepCopyInto copies the receiver and writes its value into out.
func (*IPv4) GetBSON ¶
GetBSON returns the IPv4 as a bson.M{} map.
func (IPv4) MarshalEasyJSON ¶
MarshalEasyJSON writes the IPv4 to a easyjson.Writer
func (IPv4) MarshalJSON ¶
MarshalJSON returns the IPv4 as JSON
func (IPv4) MarshalText ¶
MarshalText turns this instance into text
func (*IPv4) Scan ¶
Scan read a value from a database driver
func (*IPv4) SetBSON ¶
SetBSON sets the IPv4 from raw bson data
func (*IPv4) UnmarshalEasyJSON ¶
UnmarshalEasyJSON sets the IPv4 from a easyjson.Lexer
func (*IPv4) UnmarshalJSON ¶
UnmarshalJSON sets the IPv4 from JSON
func (*IPv4) UnmarshalText ¶
UnmarshalText hydrates this instance from text
type IPv6 ¶
type IPv6 string
IPv6 represents an IP v6 address
swagger:strfmt ipv6
func (*IPv6) DeepCopy ¶
DeepCopy copies the receiver into a new IPv6.
func (*IPv6) DeepCopyInto ¶
DeepCopyInto copies the receiver and writes its value into out.
func (*IPv6) GetBSON ¶
GetBSON returns the IPv6 as a bson.M{} map.
func (IPv6) MarshalEasyJSON ¶
MarshalEasyJSON writes the IPv6 to a easyjson.Writer
func (IPv6) MarshalJSON ¶
MarshalJSON returns the IPv6 as JSON
func (IPv6) MarshalText ¶
MarshalText turns this instance into text
func (*IPv6) Scan ¶
Scan read a value from a database driver
func (*IPv6) SetBSON ¶
SetBSON sets the IPv6 from raw bson data
func (*IPv6) UnmarshalEasyJSON ¶
UnmarshalEasyJSON sets the IPv6 from a easyjson.Lexer
func (*IPv6) UnmarshalJSON ¶
UnmarshalJSON sets the IPv6 from JSON
func (*IPv6) UnmarshalText ¶
UnmarshalText hydrates this instance from text
type ISBN ¶
type ISBN string
ISBN represents an isbn string format
swagger:strfmt isbn
func (*ISBN) DeepCopy ¶
DeepCopy copies the receiver into a new ISBN.
func (*ISBN) DeepCopyInto ¶
DeepCopyInto copies the receiver and writes its value into out.
func (*ISBN) GetBSON ¶
GetBSON returns the ISBN as a bson.M{} map.
func (ISBN) MarshalEasyJSON ¶
MarshalEasyJSON writes the ISBN to a easyjson.Writer
func (ISBN) MarshalJSON ¶
MarshalJSON returns the ISBN as JSON
func (ISBN) MarshalText ¶
MarshalText turns this instance into text
func (*ISBN) Scan ¶
Scan read a value from a database driver
func (*ISBN) SetBSON ¶
SetBSON sets the ISBN from raw bson data
func (*ISBN) UnmarshalEasyJSON ¶
UnmarshalEasyJSON sets the ISBN from a easyjson.Lexer
func (*ISBN) UnmarshalJSON ¶
UnmarshalJSON sets the ISBN from JSON
func (*ISBN) UnmarshalText ¶
UnmarshalText hydrates this instance from text
type ISBN10 ¶
type ISBN10 string
ISBN10 represents an isbn 10 string format
swagger:strfmt isbn10
func (*ISBN10) DeepCopy ¶
DeepCopy copies the receiver into a new ISBN10.
func (*ISBN10) DeepCopyInto ¶
DeepCopyInto copies the receiver and writes its value into out.
func (*ISBN10) GetBSON ¶
GetBSON returns the ISBN10 as a bson.M{} map.
func (ISBN10) MarshalEasyJSON ¶
MarshalEasyJSON writes the ISBN10 to a easyjson.Writer
func (ISBN10) MarshalJSON ¶
MarshalJSON returns the ISBN10 as JSON
func (ISBN10) MarshalText ¶
MarshalText turns this instance into text
func (*ISBN10) Scan ¶
Scan read a value from a database driver
func (*ISBN10) SetBSON ¶
SetBSON sets the ISBN10 from raw bson data
func (*ISBN10) UnmarshalEasyJSON ¶
UnmarshalEasyJSON sets the ISBN10 from a easyjson.Lexer
func (*ISBN10) UnmarshalJSON ¶
UnmarshalJSON sets the ISBN10 from JSON
func (*ISBN10) UnmarshalText ¶
UnmarshalText hydrates this instance from text
type ISBN13 ¶
type ISBN13 string
ISBN13 represents an isbn 13 string format
swagger:strfmt isbn13
func (*ISBN13) DeepCopy ¶
DeepCopy copies the receiver into a new ISBN13.
func (*ISBN13) DeepCopyInto ¶
DeepCopyInto copies the receiver and writes its value into out.
func (*ISBN13) GetBSON ¶
GetBSON returns the ISBN13 as a bson.M{} map.
func (ISBN13) MarshalEasyJSON ¶
MarshalEasyJSON writes the ISBN13 to a easyjson.Writer
func (ISBN13) MarshalJSON ¶
MarshalJSON returns the ISBN13 as JSON
func (ISBN13) MarshalText ¶
MarshalText turns this instance into text
func (*ISBN13) Scan ¶
Scan read a value from a database driver
func (*ISBN13) SetBSON ¶
SetBSON sets the ISBN13 from raw bson data
func (*ISBN13) UnmarshalEasyJSON ¶
UnmarshalEasyJSON sets the ISBN13 from a easyjson.Lexer
func (*ISBN13) UnmarshalJSON ¶
UnmarshalJSON sets the ISBN13 from JSON
func (*ISBN13) UnmarshalText ¶
UnmarshalText hydrates this instance from text
type MAC ¶
type MAC string
MAC represents a 48 bit MAC address
swagger:strfmt mac
func (*MAC) DeepCopyInto ¶
DeepCopyInto copies the receiver and writes its value into out.
func (*MAC) GetBSON ¶
GetBSON returns the MAC as a bson.M{} map.
func (MAC) MarshalEasyJSON ¶
MarshalEasyJSON writes the MAC to a easyjson.Writer
func (MAC) MarshalJSON ¶
MarshalJSON returns the MAC as JSON
func (MAC) MarshalText ¶
MarshalText turns this instance into text
func (*MAC) Scan ¶
Scan read a value from a database driver
func (*MAC) SetBSON ¶
SetBSON sets the MAC from raw bson data
func (*MAC) UnmarshalEasyJSON ¶
UnmarshalEasyJSON sets the MAC from a easyjson.Lexer
func (*MAC) UnmarshalJSON ¶
UnmarshalJSON sets the MAC from JSON
func (*MAC) UnmarshalText ¶
UnmarshalText hydrates this instance from text
type NameNormalizer ¶
NameNormalizer is a function that normalizes a format name.
type ObjectId ¶
ObjectId represents a BSON object ID (alias to github.com/globalsign/mgo/bson.ObjectId)
swagger:strfmt bsonobjectid
func NewObjectId ¶
NewObjectId creates a ObjectId from a Hex String
func (*ObjectId) DeepCopy ¶
DeepCopy copies the receiver into a new ObjectId.
func (*ObjectId) DeepCopyInto ¶
DeepCopyInto copies the receiver and writes its value into out.
func (*ObjectId) GetBSON ¶
GetBSON returns the hex representation of the ObjectId as a bson.M{} map.
func (*ObjectId) MarshalEasyJSON ¶
MarshalEasyJSON writes the ObjectId to a easyjson.Writer
func (*ObjectId) MarshalJSON ¶
MarshalJSON returns the ObjectId as JSON
func (*ObjectId) MarshalText ¶
MarshalText turns this instance into text
func (*ObjectId) Scan ¶
Scan read a value from a database driver
func (*ObjectId) SetBSON ¶
SetBSON sets the ObjectId from raw bson data
func (*ObjectId) UnmarshalEasyJSON ¶
UnmarshalEasyJSON sets the ObjectId from a easyjson.Lexer
func (*ObjectId) UnmarshalJSON ¶
UnmarshalJSON sets the ObjectId from JSON
func (*ObjectId) UnmarshalText ¶
UnmarshalText hydrates this instance from text
type Password ¶
type Password string
Password represents a password. This has no validations and is mainly used as a marker for UI components.
swagger:strfmt password
func (*Password) DeepCopy ¶
DeepCopy copies the receiver into a new Password.
func (*Password) DeepCopyInto ¶
DeepCopyInto copies the receiver and writes its value into out.
func (*Password) GetBSON ¶
GetBSON returns the Password as a bson.M{} map.
func (Password) MarshalEasyJSON ¶
MarshalEasyJSON writes the Password to a easyjson.Writer
func (Password) MarshalJSON ¶
MarshalJSON returns the Password as JSON
func (Password) MarshalText ¶
MarshalText turns this instance into text
func (*Password) Scan ¶
Scan read a value from a database driver
func (*Password) SetBSON ¶
SetBSON sets the Password from raw bson data
func (*Password) UnmarshalEasyJSON ¶
UnmarshalEasyJSON sets the Password from a easyjson.Lexer
func (*Password) UnmarshalJSON ¶
UnmarshalJSON sets the Password from JSON
func (*Password) UnmarshalText ¶
UnmarshalText hydrates this instance from text
type RGBColor ¶
type RGBColor string
RGBColor represents a RGB color string format
swagger:strfmt rgbcolor
func (*RGBColor) DeepCopy ¶
DeepCopy copies the receiver into a new RGBColor.
func (*RGBColor) DeepCopyInto ¶
DeepCopyInto copies the receiver and writes its value into out.
func (*RGBColor) GetBSON ¶
GetBSON returns the RGBColor as a bson.M{} map.
func (RGBColor) MarshalEasyJSON ¶
MarshalEasyJSON writes the RGBColor to a easyjson.Writer
func (RGBColor) MarshalJSON ¶
MarshalJSON returns the RGBColor as JSON
func (RGBColor) MarshalText ¶
MarshalText turns this instance into text
func (*RGBColor) Scan ¶
Scan read a value from a database driver
func (*RGBColor) SetBSON ¶
SetBSON sets the RGBColor from raw bson data
func (*RGBColor) UnmarshalEasyJSON ¶
UnmarshalEasyJSON sets the RGBColor from a easyjson.Lexer
func (*RGBColor) UnmarshalJSON ¶
UnmarshalJSON sets the RGBColor from JSON
func (*RGBColor) UnmarshalText ¶
UnmarshalText hydrates this instance from text
type Registry ¶
type Registry interface { Add(string, Format, Validator) bool DelByName(string) bool GetType(string) (reflect.Type, bool) ContainsName(string) bool Validates(string, string) bool Parse(string, string) (interface{}, error) MapStructureHookFunc() mapstructure.DecodeHookFunc }
Registry is a registry of string formats, with a validation method.
func NewFormats ¶
func NewFormats() Registry
NewFormats creates a new formats registry seeded with the values from the default
func NewSeededFormats ¶
func NewSeededFormats(seeds []knownFormat, normalizer NameNormalizer) Registry
NewSeededFormats creates a new formats registry
type SSN ¶
type SSN string
SSN represents a social security string format
swagger:strfmt ssn
func (*SSN) DeepCopyInto ¶
DeepCopyInto copies the receiver and writes its value into out.
func (*SSN) GetBSON ¶
GetBSON returns the SSN as a bson.M{} map.
func (SSN) MarshalEasyJSON ¶
MarshalEasyJSON writes the SSN to a easyjson.Writer
func (SSN) MarshalJSON ¶
MarshalJSON returns the SSN as JSON
func (SSN) MarshalText ¶
MarshalText turns this instance into text
func (*SSN) Scan ¶
Scan read a value from a database driver
func (*SSN) SetBSON ¶
SetBSON sets the SSN from raw bson data
func (*SSN) UnmarshalEasyJSON ¶
UnmarshalEasyJSON sets the SSN from a easyjson.Lexer
func (*SSN) UnmarshalJSON ¶
UnmarshalJSON sets the SSN from JSON
func (*SSN) UnmarshalText ¶
UnmarshalText hydrates this instance from text
type URI ¶
type URI string
URI represents the uri string format as specified by the json schema spec
swagger:strfmt uri
func (*URI) DeepCopyInto ¶
DeepCopyInto copies the receiver and writes its value into out.
func (*URI) GetBSON ¶
GetBSON returns the URI as a bson.M{} map.
func (URI) MarshalEasyJSON ¶
MarshalEasyJSON writes the URI to a easyjson.Writer
func (URI) MarshalJSON ¶
MarshalJSON returns the URI as JSON
func (URI) MarshalText ¶
MarshalText turns this instance into text
func (*URI) Scan ¶
Scan read a value from a database driver
func (*URI) SetBSON ¶
SetBSON sets the URI from raw bson data
func (*URI) UnmarshalEasyJSON ¶
UnmarshalEasyJSON sets the URI from a easyjson.Lexer
func (*URI) UnmarshalJSON ¶
UnmarshalJSON sets the URI from JSON
func (*URI) UnmarshalText ¶
UnmarshalText hydrates this instance from text
type UUID ¶
type UUID string
UUID represents a uuid string format
swagger:strfmt uuid
func (*UUID) DeepCopy ¶
DeepCopy copies the receiver into a new UUID.
func (*UUID) DeepCopyInto ¶
DeepCopyInto copies the receiver and writes its value into out.
func (*UUID) GetBSON ¶
GetBSON returns the UUID as a bson.M{} map.
func (UUID) MarshalEasyJSON ¶
MarshalEasyJSON writes the UUID to a easyjson.Writer
func (UUID) MarshalJSON ¶
MarshalJSON returns the UUID as JSON
func (UUID) MarshalText ¶
MarshalText turns this instance into text
func (*UUID) Scan ¶
Scan read a value from a database driver
func (*UUID) SetBSON ¶
SetBSON sets the UUID from raw bson data
func (*UUID) UnmarshalEasyJSON ¶
UnmarshalEasyJSON sets the UUID from a easyjson.Lexer
func (*UUID) UnmarshalJSON ¶
UnmarshalJSON sets the UUID from JSON
func (*UUID) UnmarshalText ¶
UnmarshalText hydrates this instance from text
type UUID3 ¶
type UUID3 string
UUID3 represents a uuid3 string format
swagger:strfmt uuid3
func (*UUID3) DeepCopy ¶
DeepCopy copies the receiver into a new UUID3.
func (*UUID3) DeepCopyInto ¶
DeepCopyInto copies the receiver and writes its value into out.
func (*UUID3) GetBSON ¶
GetBSON returns the UUID3 as a bson.M{} map.
func (UUID3) MarshalEasyJSON ¶
MarshalEasyJSON writes the UUID3 to a easyjson.Writer
func (UUID3) MarshalJSON ¶
MarshalJSON returns the UUID3 as JSON
func (UUID3) MarshalText ¶
MarshalText turns this instance into text
func (*UUID3) Scan ¶
Scan read a value from a database driver
func (*UUID3) SetBSON ¶
SetBSON sets the UUID3 from raw bson data
func (*UUID3) UnmarshalEasyJSON ¶
UnmarshalEasyJSON sets the UUID3 from a easyjson.Lexer
func (*UUID3) UnmarshalJSON ¶
UnmarshalJSON sets the UUID3 from JSON
func (*UUID3) UnmarshalText ¶
UnmarshalText hydrates this instance from text
type UUID4 ¶
type UUID4 string
UUID4 represents a uuid4 string format
swagger:strfmt uuid4
func (*UUID4) DeepCopy ¶
DeepCopy copies the receiver into a new UUID4.
func (*UUID4) DeepCopyInto ¶
DeepCopyInto copies the receiver and writes its value into out.
func (*UUID4) GetBSON ¶
GetBSON returns the UUID4 as a bson.M{} map.
func (UUID4) MarshalEasyJSON ¶
MarshalEasyJSON writes the UUID4 to a easyjson.Writer
func (UUID4) MarshalJSON ¶
MarshalJSON returns the UUID4 as JSON
func (UUID4) MarshalText ¶
MarshalText turns this instance into text
func (*UUID4) Scan ¶
Scan read a value from a database driver
func (*UUID4) SetBSON ¶
SetBSON sets the UUID4 from raw bson data
func (*UUID4) UnmarshalEasyJSON ¶
UnmarshalEasyJSON sets the UUID4 from a easyjson.Lexer
func (*UUID4) UnmarshalJSON ¶
UnmarshalJSON sets the UUID4 from JSON
func (*UUID4) UnmarshalText ¶
UnmarshalText hydrates this instance from text
type UUID5 ¶
type UUID5 string
UUID5 represents a uuid5 string format
swagger:strfmt uuid5
func (*UUID5) DeepCopy ¶
DeepCopy copies the receiver into a new UUID5.
func (*UUID5) DeepCopyInto ¶
DeepCopyInto copies the receiver and writes its value into out.
func (*UUID5) GetBSON ¶
GetBSON returns the UUID5 as a bson.M{} map.
func (UUID5) MarshalEasyJSON ¶
MarshalEasyJSON writes the UUID5 to a easyjson.Writer
func (UUID5) MarshalJSON ¶
MarshalJSON returns the UUID5 as JSON
func (UUID5) MarshalText ¶
MarshalText turns this instance into text
func (*UUID5) Scan ¶
Scan read a value from a database driver
func (*UUID5) SetBSON ¶
SetBSON sets the UUID5 from raw bson data
func (*UUID5) UnmarshalEasyJSON ¶
UnmarshalEasyJSON sets the UUID5 from a easyjson.Lexer
func (*UUID5) UnmarshalJSON ¶
UnmarshalJSON sets the UUID5 from JSON
func (*UUID5) UnmarshalText ¶
UnmarshalText hydrates this instance from text