model

package
v1.0.8-beta.11 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2021 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	ID   int
	Type string
}

type Customer

type Customer struct {
	ID             int
	Name           string
	Addresses      []Address
	DefaultAddress *Address
	BillingAddress Address
	MapField1      string
	MapField2      string
}

type IntsModel added in v1.0.3

type IntsModel struct {
	IntFor64Value int
	IntFor32Value int
	Int32Value    int32
	Int64Value    int64
	StringValue   string
}

type MyLineItem

type MyLineItem struct {
	ID   int
	Type string
	URL  string
	SKU  int
}

type MyLineItemUsage

type MyLineItemUsage struct {
	List []MyLineItem
	Item *MyLineItem
}

type Order

type Order struct {
	ID       int
	FirstID  string
	SecondID string
	ThirdURL string
}

type Pointer2Value

type Pointer2Value struct {
	AddressNotNil Address
}

type Product

type Product struct {
	ID                int    `db:"id" json:"id"`
	Name              string `db:"name" json:"name"`
	One               string `db:"one" json:"one"`
	SecondID          string `db:"two" json:"two"`
	CustomField       string `db:"custom_field" json:"custom_field"`
	CustomOneof       string `db:"custom_oneof" json:"custom_oneof"`
	NotsupportedOneof string `db:"notsupported_oneof" json:"notsupported_oneof"`
}

type TimeModel added in v1.0.2

type TimeModel struct {
	TimeTime     time.Time
	PtrTimeTime  *time.Time
	NullsTime    nulls.Time
	PtrNullsTime *nulls.Time

	NullsTime2    nulls.Time
	PtrNullsTime2 *nulls.Time
}

TimeModel is used for testing time-related transformations.

type Value2Pointer

type Value2Pointer struct {
	AddressNil *Address
}

Jump to

Keyboard shortcuts

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