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 DeleteChatboard

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

type DeleteMessage

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

type Fetch

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

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 {
	Name        string  `json:"name"`
	ImageURL    string  `json:"imageURL"`
	Description *string `json:"description,omitempty"`
}

type NewMessage

type NewMessage struct {
	Text      *string `json:"text,omitempty"`
	FileURL   *string `json:"fileURL,omitempty"`
	MessageBy string  `json:"messageBy"`
	MessageOn string  `json:"messageOn"`
}

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 UpdateChatboard

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

type UpdateMessage

type UpdateMessage struct {
	Text    *string `json:"text,omitempty"`
	FileURL *string `json:"fileURL,omitempty"`
}

type User

type User struct {
	ID             string  `json:"id"`
	Username       string  `json:"username"`
	Name           string  `json:"name"`
	About          *string `json:"about,omitempty"`
	AvatarImageURL string  `json:"avatarImageURL"`
	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