model

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const LockSchema = `` /* 580-byte string literal not displayed */

language=json

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 `dynamo:"name,unique"`
	Name2 string `dynamo:"name2,unique"`
	Meta  Nest1Type
}

type Meta added in v0.3.0

type Meta struct {
	CreatedAt time.Time  `dynamo:"created_at"`
	CreatedBy string     `dynamo:"created_by"`
	UpdatedAt time.Time  `dynamo:"updated_at"`
	UpdatedBy string     `dynamo:"updated_by"`
	DeletedAt *time.Time `dynamo:"deleted_at"`
	DeletedBy string     `dynamo:"deleted_by"`
	Version   int        `dynamo:"version"`
}

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 {
	Nest1 Nest2Type
}

type Nest2Type added in v0.3.0

type Nest2Type struct {
	MetaPayload 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