model

package
v0.0.0-...-1235e82 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Chatboard

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 Comment

type Comment struct {
	ID        string `json:"id"`
	Text      string `json:"text"`
	CommentBy *User  `json:"commentBy"`
	CommentOn *Post  `json:"commentOn"`
}

type FetchChatboard

type FetchChatboard struct {
	ID string `json:"id"`
}

type FetchComment

type FetchComment struct {
	ID string `json:"id"`
}

type FetchMessage

type FetchMessage struct {
	ID string `json:"id"`
}

type FetchPost

type FetchPost struct {
	ID string `json:"id"`
}

type FetchUser

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

type Login struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

type Message

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

type NewChatboard struct {
	ID          string  `json:"_id"`
	Name        string  `json:"name"`
	ImageURL    string  `json:"imageURL"`
	Description *string `json:"description,omitempty"`
}

type NewComment

type NewComment struct {
	ID        string `json:"_id"`
	Text      string `json:"text"`
	CommentBy string `json:"commentBy"`
	CommentOn string `json:"commentOn"`
}
type NewLink struct {
	Title   string `json:"title"`
	Address string `json:"address"`
}

type NewMessage

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

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

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

type Post struct {
	ID          string     `json:"id"`
	PostedBy    *User      `json:"postedBy"`
	ImageURL    string     `json:"imageURL"`
	Description *string    `json:"description,omitempty"`
	Likes       int        `json:"likes"`
	Comments    []*Comment `json:"comments,omitempty"`
}

type RefreshTokenInput

type RefreshTokenInput struct {
	Token string `json:"token"`
}

type Status

type Status string
const (
	StatusNotStarted Status = "NOT_STARTED"
	StatusInProgress Status = "IN_PROGRESS"
	StatusCompleted  Status = "COMPLETED"
)

func (Status) IsValid

func (e Status) IsValid() bool

func (Status) MarshalGQL

func (e Status) MarshalGQL(w io.Writer)

func (Status) String

func (e Status) String() string

func (*Status) UnmarshalGQL

func (e *Status) UnmarshalGQL(v interface{}) error

type User

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

type Wallet struct {
	ID             string `json:"id"`
	PrivateKey     string `json:"privateKey"`
	PrivateAddress string `json:"privateAddress"`
	PublicKey      string `json:"publicKey"`
	PublicAddress  string `json:"publicAddress"`
}

Jump to

Keyboard shortcuts

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