domain

package
v0.0.0-...-af286a6 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: MIT Imports: 2 Imported by: 0

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 ErrRes

type ErrRes struct {
	Code    string `json:"code"`
	Message string `json:"message"`
}

func NewErr

func NewErr(code, msg string) *ErrRes

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 /*

Jump to

Keyboard shortcuts

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