model

package
v0.0.0-...-c4c9469 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 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 DeleteLink struct {
	ID string `json:"id"`
}

type DeleteUser

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

type Fetch

type Fetch 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 NewLink struct {
	Title   string `json:"title"`
	Address string `json:"address"`
}

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"`
	Key            string  `json:"key"`
}

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 Timeline

type Timeline struct {
	ID           string      `json:"id"`
	PostedBy     *User       `json:"postedBy"`
	PostedOn     *Timeline   `json:"postedOn"`
	ImageURL     *string     `json:"imageURL,omitempty"`
	Text         *string     `json:"text,omitempty"`
	Likes        int         `json:"likes"`
	SubTimelines []*Timeline `json:"subTimelines,omitempty"`
}
type UpdateLink struct {
	Title   *string `json:"title,omitempty"`
	Address *string `json:"address,omitempty"`
}

type UpdateUser

type UpdateUser struct {
	Username       *string `json:"username,omitempty"`
	Name           *string `json:"name,omitempty"`
	About          *string `json:"about,omitempty"`
	Email          *string `json:"email,omitempty"`
	AvatarImageURL *string `json:"avatarImageURL,omitempty"`
	Timeline       *string `json:"timeline,omitempty"`
	ChatBoard      *string `json:"chatBoard,omitempty"`
	Following      *string `json:"following,omitempty"`
	Follower       *string `json:"follower,omitempty"`
}

type User

type User struct {
	ID         string       `json:"id"`
	Username   string       `json:"username"`
	Key        string       `json:"key"`
	Timelines  []*Timeline  `json:"timelines,omitempty"`
	ChatBoards []*Chatboard `json:"chatBoards,omitempty"`
	Following  []*User      `json:"following,omitempty"`
	Followers  []*User      `json:"followers,omitempty"`
}

Jump to

Keyboard shortcuts

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