package
Version:
v0.0.0-...-1235e82
Opens a new window with list of versions in this module.
Published: Aug 24, 2023
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Chatboard struct {
ID string `json:"id"`
Name string `json:"name"`
ImageURL string `json:"imageURL"`
Description *string `json:"description,omitempty"`
Members []*User `json:"members,omitempty"`
Messages []*Message `json:"messages,omitempty"`
}
type FetchChatboard struct {
ID string `json:"id"`
}
type FetchComment struct {
}
type FetchMessage struct {
ID string `json:"id"`
}
type FetchPost struct {
ID string `json:"id"`
}
type FetchUser struct {
ID string `json:"id"`
}
type Link struct {
ID string `json:"id"`
Title string `json:"title"`
Address string `json:"address"`
User *User `json:"user"`
}
type Login struct {
Username string `json:"username"`
Password string `json:"password"`
}
type Message struct {
ID string `json:"id"`
Text *string `json:"text,omitempty"`
FileURL *string `json:"fileURL,omitempty"`
MessageBy *User `json:"messageBy"`
MessageOn *Chatboard `json:"messageOn"`
}
type NewChatboard struct {
ID string `json:"_id"`
Name string `json:"name"`
ImageURL string `json:"imageURL"`
Description *string `json:"description,omitempty"`
}
type NewComment struct {
}
type NewLink struct {
Title string `json:"title"`
Address string `json:"address"`
}
type NewMessage struct {
ID string `json:"_id"`
Text *string `json:"text,omitempty"`
FileURL *string `json:"fileURL,omitempty"`
MessageBy string `json:"messageBy"`
MessageOn string `json:"messageOn"`
}
type NewPost struct {
ID string `json:"_id"`
PostedBy string `json:"postedBy"`
ImageURL string `json:"imageURL"`
Description *string `json:"description,omitempty"`
Likes int `json:"likes"`
}
type NewUser struct {
Username string `json:"username"`
Name string `json:"name"`
About *string `json:"about,omitempty"`
Email string `json:"email"`
AvatarImageURL string `json:"avatarImageURL"`
Password string `json:"password"`
}
type Post struct {
ID string `json:"id"`
PostedBy *User `json:"postedBy"`
ImageURL string `json:"imageURL"`
Description *string `json:"description,omitempty"`
Likes int `json:"likes"`
}
type RefreshTokenInput struct {
Token string `json:"token"`
}
const (
StatusNotStarted Status = "NOT_STARTED"
StatusInProgress Status = "IN_PROGRESS"
StatusCompleted Status = "COMPLETED"
)
type User struct {
ID string `json:"id"`
Username string `json:"username"`
Name string `json:"name"`
About *string `json:"about,omitempty"`
Email string `json:"email"`
AvatarImageURL string `json:"avatarImageURL"`
Password string `json:"password"`
Posts []*Post `json:"posts,omitempty"`
Following []*User `json:"following,omitempty"`
Followers []*User `json:"followers,omitempty"`
Wallet *Wallet `json:"wallet"`
}
type Wallet struct {
ID string `json:"id"`
PrivateKey string `json:"privateKey"`
PrivateAddress string `json:"privateAddress"`
PublicKey string `json:"publicKey"`
PublicAddress string `json:"publicAddress"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.