dbmodels

package
v0.0.0-...-44b9fe9 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2020 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CropSizes

type CropSizes struct {
	Y      int `json:"y"`
	X      int `json:"x"`
	Width  int `json:"width"`
	Height int `json:"height"`
}

CropSizes ..

type Friends

type Friends struct {
	Friends []string `json:"friends"`
}

Friends ..

type Image

type Image struct {
	ProfileImage string `json:"profileimage"`
}

Image ...

type Message

type Message struct {
	Sender   string `json:"sender"`
	Receiver string `json:"receiver"`
	Content  string `json:"content"`
}

Message is the data model for the request messages

type MessageTime

type MessageTime struct {
	Sender   string    `json:"sender"`
	Receiver string    `json:"receiver"`
	Content  string    `json:"content"`
	Date     time.Time `json:"time"`
}

MessageTime is the data model for the mongodb saved messages

type Name

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

Name ...

type NameAndDate

type NameAndDate struct {
	Name string `json:"name"`
	Date string `json:"date"`
}

NameAndDate ..

type NameAndDateArray

type NameAndDateArray []NameAndDate

NameAndDateArray ..

type NameAndDateStruct

type NameAndDateStruct struct {
	FriendRequests []NameAndDate `json:"friendrequests"`
}

NameAndDateStruct ...

type NameAndFriendToRemove

type NameAndFriendToRemove struct {
	Name           string `json:"name"`
	FriendToRemove string `json:"friendtoremove"`
}

NameAndFriendToRemove ...

type NameAndImage

type NameAndImage struct {
	Name  string `json:"name"`
	Image string `json:"image"`
}

NameAndImage request model

type NameAndImageAndAreaToCrop

type NameAndImageAndAreaToCrop struct {
	Name       string    `json:"name"`
	Image      string    `json:"image"`
	AreaToCrop CropSizes `json:"areatocrop"`
}

NameAndImageAndAreaToCrop ..

type NameAndNewFriend

type NameAndNewFriend struct {
	Name      string `json:"name"`
	NewFriend string `json:"newFriend"`
}

NameAndNewFriend request model

type NameAndPass

type NameAndPass struct {
	Name string `json:"name"`
	Pass string `json:"pass"`
}

NameAndPass ...

type SenderAndReceiver

type SenderAndReceiver struct {
	Sender   string `json:"sender"`
	Receiver string `json:"receiver"`
}

SenderAndReceiver ...

type User

type User struct {
	Name           string           `json:"name"`
	Pass           string           `json:"pass"`
	Friends        []string         `json:"friends"`
	FriendRequests NameAndDateArray `json:"friendrequests"`
	ProfileImage   string           `json:"profileimage"`
}

User ...

Jump to

Keyboard shortcuts

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