entity

package
v0.0.0-...-e4e151b Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Note

type Note struct {
	NoteID      string    `json:"noteId" bson:"_id"`
	Title       string    `json:"title" bson:"title"`
	Description string    `json:"description" bson:"description"`
	Tags        *[]string `json:"tags" bson:"tags"`
	Completed   bool      `json:"completed" bson:"completed"`
	CreatedAt   time.Time `json:"createdAt" bson:"createdAt"`
	UpdatedAt   time.Time `json:"UpdatedAt" bson:"UpdatedAt"`
}

Note struct defines entity of resource NOTE. bson tags are used by mongo-driver. for NoteID uuid as string is used to prevent dependency on mongo object id.

Jump to

Keyboard shortcuts

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