Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DynamoModel ¶
type DynamoModel struct {
// ID the identifier generated by db
ID int `json:"id,omitempty" dynamodbav:"Id,omitempty"`
// Name is the name of the card
Name string `json:"name,omitempty" dynamodbav:"Name,omitempty"`
// Priority must be one of these: ['urgent', 'high', 'normal', 'medium', 'low']
Status string `json:"status,omitempty" dynamodbav:"Status,omitempty"`
// CreatedAt describes when the card has been created
CreatedAt time.Time `json:"created_at,omitempty" dynamodbav:"CreatedAt,omitempty"`
// UpdatedAt describes when the card has been updated
UpdatedAt time.Time `json:"updated_at,omitempty" dynamodbav:"UpdatedAt,omitempty"`
}
type MongoModel ¶
type MongoModel struct {
// ID the identifier generated by db
ID primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
// Name is the name of the card
Name string `json:"name,omitempty" bson:"name,omitempty"`
// Priority must be one of these: ['urgent', 'high', 'normal', 'medium', 'low']
Status string `json:"status,omitempty" bson:"status,omitempty"`
// CreatedAt describes when the card has been created
CreatedAt time.Time `json:"created_at,omitempty" bson:"created_at,omitempty"`
// UpdatedAt describes when the card has been updated
UpdatedAt time.Time `json:"updated_at,omitempty" bson:"updated_at,omitempty"`
}
type TModel ¶
type TModel struct {
// ID the identifier generated by db
ID interface{} `json:"id,omitempty"`
// Name is the name of the card
Name string `json:"name,omitempty"`
// Priority must be one of these: ['urgent', 'high', 'normal', 'medium', 'low']
Status string `json:"status,omitempty"`
// CreatedAt describes when the card has been created
CreatedAt time.Time `json:"created_at,omitempty"`
// UpdatedAt describes when the card has been updated
UpdatedAt time.Time `json:"updated_at,omitempty"`
}
TModel describes the object /*
Click to show internal directories.
Click to hide internal directories.