models

package
v0.0.0-...-10e1706 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 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 Category

type Category struct {
	Name        string
	Description string
	Icon        string
}

type Comments

type Comments struct {
	CreatedAt time.Time `json:"created_at"`
	Text      string    `json:"text"`
	User      User      `json:"user_id"`
}

type Thought

type Thought struct {
	CreatedBy   User       `json:"created_by"`
	Name        string     `json:"name"`
	Description string     `json:"description"`
	Categories  []Category `json:"categories"`
	Tags        []string   `json:"tags,omitempty"`
	Comments    []Comments `json:"comments"`
	Public      bool       `json:"public"`
}

type User

type User struct {
	Username    string   `json:"username"`
	Description string   `json:"description"`
	Interests   []string `json:"interests"`
}

Jump to

Keyboard shortcuts

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