model

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const NameSchema = `` /* 1755-byte string literal not displayed */
View Source
const TaskSchema = `` /* 1341-byte string literal not displayed */

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomStruct

type CustomStruct struct {
	Value int
	Str   string
}

type Flag

type Flag bool

type Lock added in v0.3.0

type Lock struct {
	ID   int64 `dynamo:"id,hash"`
	Name string
	Nest1Type
}

type Meta added in v0.3.0

type Meta struct {
	CreatedAt time.Time
	CreatedBy string
	UpdatedAt time.Time
	UpdatedBy string
	DeletedAt *time.Time
	DeletedBy string
	Version   int
}

type Name

type Name struct {
	ID        int64           `dynamo:"id,hash" auto:""`
	Count     int             `dynamo:"count,range"`
	Created   dda.UnixTime    `dynamo:"created"`
	Desc      string          `dynamo:"description"`
	Desc2     string          `dynamo:"description2"`
	Done      bool            `dynamo:"done"`
	PriceList []int           `dynamo:"priceList"`
	Array     []*CustomStruct `dynamo:"customs"`
}

Name RangeKeyあり

type Nest1Type added in v0.3.0

type Nest1Type struct {
	Nest2Type
}

type Nest2Type added in v0.3.0

type Nest2Type struct {
	Meta
}

Lock Metaテスト用

type Task

type Task struct {
	ID         int64        `dynamo:"id,hash"`
	Desc       string       `dynamo:"description"`
	Created    dda.UnixTime `dynamo:"created"`
	Done       bool         `dynamo:"done"`
	Done2      bool         `dynamo:"done2"`
	Count      int          `dynamo:"count"`
	Count64    int64        `dynamo:"count64"`
	NameList   []string     `dynamo:"nameList"`
	Proportion float64      `dynamo:"proportion"`
	Flag       Flag         `dynamo:"flag"`
	CreatedAt  dda.UnixTime `dynamo:"createdAt"`
	UpdatedAt  dda.UnixTime `dynamo:"updatedAt"`
}

Task RangeKeyなし

Jump to

Keyboard shortcuts

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