fields

package
v0.0.2-rc Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RMKey           RentalMethod = "KEY"
	RMCreditcard                 = "CREDITCARD"
	RMPaypass                    = "PAYPASS"
	RMApplepay                   = "APPLEPAY"
	RMAndroidpay                 = "ANDROIDPAY"
	RMTransitcard                = "TRANSITCARD"
	RMAccountnumber              = "ACCOUNTNUMBER"
	RMPhone                      = "PHONE"
)

RentalMethod constants

Variables

View Source
var ErrIDSpaces = errors.New("ID cannot contain spaces")

ErrIDSpaces ...

View Source
var ErrInvalidDay = errors.New("invalid day")

ErrInvalidDay ...

View Source
var ErrInvalidMonth = errors.New("invalid month")

ErrInvalidMonth ...

View Source
var ErrInvalidPriceType = errors.New("price must be string or float")

ErrInvalidPriceType returned when the .(type) of unmarshaled data is not a string or float

View Source
var ErrInvalidYear = errors.New("invalid year")

ErrInvalidYear ...

View Source
var ErrLatitude = errors.New("Latitude must in range [-90.0, 90.0]")

ErrLatitude ...

View Source
var ErrLongitude = errors.New("Longitude must in range [-180.0, 180.0]")

ErrLongitude ...

View Source
var ErrNonNegativeFloat = errors.New("NonNegativeFloat must have value >= 0.0")

ErrNonNegativeFloat error

View Source
var ErrNonNegativeInt = errors.New("NonNegativeInt must have value >= 0")

ErrNonNegativeInt error

View Source
var ErrURLScheme = errors.New("URL Scheme must be 'http' OR 'https'")

ErrURLScheme ...

View Source
var ErrUnknownAlertType = errors.New("unknown alert type")

ErrUnknownAlertType ...

View Source
var ErrUnknownDayOfWeek = errors.New("unknown day")

ErrUnknownDayOfWeek ...

View Source
var ErrUnknownMobile = errors.New("unknown mobile")

ErrUnknownMobile ...

View Source
var ErrUnknownRentalMethod = errors.New("unknown rental method")

ErrUnknownRentalMethod ...

View Source
var ErrUnknownUserType = errors.New("unknown user type")

ErrUnknownUserType ...

Functions

This section is empty.

Types

type AlertType

type AlertType string

AlertType ...

func (AlertType) String

func (a AlertType) String() string

func (*AlertType) UnmarshalJSON

func (a *AlertType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler interface

type Currency

type Currency struct {
	*currency.Unit
}

Currency ...

func (*Currency) UnmarshalJSON

func (c *Currency) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler interface

type Date

type Date struct {
	time.Time
}

Date ...

func (*Date) String

func (d *Date) String() string

func (*Date) UnmarshalJSON

func (d *Date) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler interface

type Day

type Day NonNegativeInt

Day ...

func (*Day) UnmarshalJSON

func (d *Day) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler interface

type DayOfWeek

type DayOfWeek string

DayOfWeek ...

func (*DayOfWeek) UnmarshalJSON

func (d *DayOfWeek) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler interface

func (DayOfWeek) Weekday

func (d DayOfWeek) Weekday() time.Weekday

Weekday returns the time.Weekday value for this DayOfWeek

type Email

type Email struct {
	*mail.Address
}

Email ...

func (*Email) UnmarshalJSON

func (e *Email) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler interface

type ID

type ID string

ID type

func (*ID) UnmarshalJSON

func (id *ID) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler interface

type Language

type Language struct {
	language.Tag
}

Language ...

func (*Language) UnmarshalJSON

func (l *Language) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler interface

type Latitude

type Latitude float64

Latitude ...

func (*Latitude) UnmarshalJSON

func (l *Latitude) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler interface

type Longitude

type Longitude float64

Longitude ...

func (*Longitude) UnmarshalJSON

func (l *Longitude) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler interface

type Mobile

type Mobile string

Mobile tags

const (
	Android Mobile = "android"
	IOS            = "ios"
)

Mobile constants

func (*Mobile) UnmarshalJSON

func (m *Mobile) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler interface

type Month

type Month NonNegativeInt

Month ...

func (*Month) UnmarshalJSON

func (m *Month) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler interface

type NonNegativeFloat

type NonNegativeFloat float64

NonNegativeFloat ...

func (NonNegativeFloat) String

func (n NonNegativeFloat) String() string

func (*NonNegativeFloat) UnmarshalJSON

func (n *NonNegativeFloat) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler interface

type NonNegativeInt

type NonNegativeInt int

NonNegativeInt ...

func (NonNegativeInt) String

func (n NonNegativeInt) String() string

func (*NonNegativeInt) UnmarshalJSON

func (n *NonNegativeInt) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler interface

type PhoneNumber

type PhoneNumber string

PhoneNumber ...

type Price

type Price struct {
	// contains filtered or unexported fields
}

Price is represented as NonNegativeFloat OR string

func (Price) Float64

func (p Price) Float64() float64

Float64 returns the float64 value contained in this NonNegativeFloat

func (Price) String

func (p Price) String() string

func (*Price) UnmarshalJSON

func (p *Price) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler interface

type RentalMethod

type RentalMethod string

RentalMethod ...

func (*RentalMethod) UnmarshalJSON

func (r *RentalMethod) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler interface

type Time

type Time struct {
	time.Time
}

Time ...

func (*Time) String

func (t *Time) String() string

func (*Time) UnmarshalJSON

func (t *Time) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler interface

type Timestamp

type Timestamp struct {
	time.Time
}

Timestamp ...

func (*Timestamp) String

func (t *Timestamp) String() string

func (*Timestamp) UnmarshalJSON

func (t *Timestamp) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler interface

type Timezone

type Timezone struct {
	*time.Location
}

Timezone ...

func (*Timezone) UnmarshalJSON

func (t *Timezone) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler interface

type URI

type URI struct {
	*url.URL
}

URI ...

func (*URI) UnmarshalJSON

func (u *URI) UnmarshalJSON(data []byte) (err error)

UnmarshalJSON implements json.Unmarshaler interface

type URL

type URL struct {
	*url.URL
}

URL ...

func (*URL) UnmarshalJSON

func (u *URL) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler interface

type UserType

type UserType string

UserType ...

func (*UserType) UnmarshalJSON

func (u *UserType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler interface

type Year

type Year NonNegativeInt

Year ...

func (*Year) UnmarshalJSON

func (y *Year) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler interface

Jump to

Keyboard shortcuts

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