Documentation ¶ Index ¶ type Thing type ThingService Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Thing ¶ type Thing struct { ID int `json:"id"` Name string `json:"name"` Description string `json:"description"` CreatedAt time.Time `json:"created_at"` Type string `json:"type"` } type ThingService ¶ type ThingService interface { CreateThing(thing Thing) error GetThing(id string) (Thing, error) GetAllThings() ([]Thing, error) UpdateThing(id string, thing Thing) error DeleteThing(id string) error } Source Files ¶ View all Source files thing.go Directories ¶ Show internal Expand all Path Synopsis cmd cors http postgres redis Click to show internal directories. Click to hide internal directories.