dataTypes

package
v0.0.0-...-3be94e2 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chat

type Chat struct {
	ChatName   string
	Admins     []int
	Recipients []int
	Messages   []Message
}

type DBDataType

type DBDataType interface {
	UserInfo | Chat | TableEntry
}

type FriendRequest

type FriendRequest struct {
	InitiatorID int
	RecieverID  int
}

type Message

type Message struct {
	Sender  string
	Message string
	Time    string
}

type TableEntry

type TableEntry struct {
	ID   int
	Data any
}

type UserData

type UserData struct {
	FriendIDs         []int
	FriendRequestsIDs []FriendRequest
	Chats             []Chat
}

type UserInfo

type UserInfo struct {
	Username     string
	Password     string
	ProfilePicID string

	UserData  UserData
	AuthToken string
}

Jump to

Keyboard shortcuts

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