model

package
v0.0.0-...-be2d88d Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	Text      string `json:"text" bson:"text"`
	SenderID  string `json:"sender" bson:"sender_id"`
	ReciverID string `json:"reciver" bson:"reciver_id"`
}

type NewMessage

type NewMessage struct {
	Text      string `json:"text"`
	ReciverID string `json:"reciverID"`
}

type NewTodo

type NewTodo struct {
	Text   string `json:"text"`
	UserID string `json:"userId"`
}

type NewUser

type NewUser struct {
	Name string `json:"name"`
}

type Todo

type Todo struct {
	ID     string `json:"id"`
	Text   string `json:"text"`
	Done   bool   `json:"done"`
	UserID string `json:"user"`
}

type User

type User struct {
	ID      string  `json:"id"`
	Name    string  `json:"name"`
	Friends []*User `json:"friends"`
}

Users

Jump to

Keyboard shortcuts

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