model

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 9, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttributeType

type AttributeType interface {
	String() string
	Value(s string) (interface{}, error)
}

type AttributeTypeStr

type AttributeTypeStr string

func (AttributeTypeStr) Name

type B

type B struct{}

func (B) String

func (B) String() string

func (B) Value

func (B) Value(s string) (interface{}, error)

type ComparisonOperator

type ComparisonOperator int
const (
	EQ ComparisonOperator = iota + 1
	NE
	LE
	LT
	GE
	GT
	EXISTS
	CONTAINS
	BeginsWith
	IN
	BETWEEN
)

func ConvertToComparisonOperator

func ConvertToComparisonOperator(op string) (ComparisonOperator, error)

func (ComparisonOperator) String added in v0.0.2

func (c ComparisonOperator) String() string

type GlobalSecondaryIndex

type GlobalSecondaryIndex struct {
	Name         string `json:"indexName"`
	PartitionKey *Key   `json:"partitionKey"`
	SortKey      *Key   `json:"sortKey,omitempty"`
}

type Key

type Key struct {
	Name    string        `json:"name"`
	Type    AttributeType `json:"-"`
	TypeStr string        `json:"type"`
}

type LogicalOperator

type LogicalOperator int
const (
	AND LogicalOperator = iota + 1
	OR
)

func ConvertToLogicalOperator

func ConvertToLogicalOperator(op string) (LogicalOperator, error)

type N

type N struct{}

func (N) String

func (N) String() string

func (N) Value

func (N) Value(s string) (interface{}, error)

type NS added in v0.0.2

type NS struct{}

func (NS) String added in v0.0.2

func (NS) String() string

func (NS) Value added in v0.0.2

func (NS) Value(s string) (interface{}, error)

type S

type S struct{}

func (S) String

func (S) String() string

func (S) Value

func (S) Value(s string) (interface{}, error)

type SS added in v0.0.2

type SS struct{}

func (SS) String added in v0.0.2

func (SS) String() string

func (SS) Value added in v0.0.2

func (SS) Value(s string) (interface{}, error)

type Table

type Table struct {
	Arn          string                  `json:"tableArn"`
	Name         string                  `json:"tableName"`
	PartitionKey *Key                    `json:"partitionKey"`
	SortKey      *Key                    `json:"sortKey,omitempty"`
	GSI          []*GlobalSecondaryIndex `json:"gsi,omitempty"`
	ItemCount    int64                   `json:"itemCount"`
}

Jump to

Keyboard shortcuts

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