model

package
v0.0.0-...-0494513 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PermissionIDContentReadPosts      = "c37be85c-e5e4-4e70-8561-b812abe0612c"
	PermissionIDChatReadMessages      = "aa2d7e05-645d-4ae9-afaf-08b344643ab7"
	PermissionIDChatSendMessages      = "aa25e45c-da0b-4727-acb0-d2c91542e986"
	PermissionIDCircleReadMembers     = "d9b64d1b-4459-4c3e-8f3e-1ac1284315c8"
	PermissionIDContentCreatePosts    = "9c5515fb-6745-4868-b089-bf756ca228ba"
	PermissionIDStorageUploadFiles    = "17116934-82e4-42ea-b478-f1b8b122ab5d"
	PermissionIDContentReadComments   = "ae6ea5c1-3c38-4d3d-87b9-2ddf62f32d4e"
	PermissionIDContentCreateComments = "856234a4-9e70-4690-9122-291166b43842"
	PermissionIDCircleUpdateImage     = "7ce09a6f-058b-4303-a458-8e5162401ff0"
	PermissionIDCircleReadStats       = "a8a755d8-0184-4864-a4d1-772e5dba9da8"
	PermissionIDCircleUpdateCover     = "fe86051c-786a-49cf-b405-f2f801ed10f4"
	PermissionIDGenerateImages        = "79226ffc-2d02-4644-9f14-10a061b704d5"
)
View Source
const (
	SubscriptionIDCircleJoin            = "dd64c7ec-b316-4973-b30c-34c5739a6985"
	SubscriptionIDCircleLeave           = "e48636d4-99e2-4c54-b36a-2b221a6bf8a7"
	SubscriptionIDChatSendMessages      = "f0226e81-9764-4819-963a-1abeb27b3f01"
	SubscriptionIDContentCreatePosts    = "37ffd701-5184-4f2a-84f9-65ed7a2959af"
	SubscriptionIDContentCreateComments = "05c4b54c-e6ab-49ca-8d38-65d941fa7a83"
)
View Source
const (
	TagIDTools         = "4b644ada-aeb2-4f8a-8100-c17aff64418d"
	TagIDSocial        = "bc88a4b4-7360-4223-96db-5a4193b8ffcb"
	TagIDModeration    = "f5c8629c-c27d-4e5f-8c51-d1977eda3010"
	TagIDArt           = "c86f96ac-8036-4a6c-bff4-a55f306506fe"
	TagIDFun           = "a6452ddc-60ca-4452-9385-f34769675975"
	TagIDChat          = "c868dfea-2411-4dc4-a965-8bb9c03e88fe"
	TagIDGame          = "7d8c94cd-57f6-4f7f-a30d-41ff8cfc45a1"
	TagIDKPOP          = "27f1fdd1-f1b7-45d6-85db-72cefe5c8dff"
	TagIDMeme          = "4c4d2459-6adb-4fca-aa64-afaa37071a6e"
	TagIDFunny         = "32da3438-b7d0-4168-827a-fc75e56b0817"
	TagIDGacha         = "5687d4c7-db75-450e-8ab2-55e1abe6eb2c"
	TagIDMusic         = "7c6689e6-cbc0-4c14-a9cc-79864b02799a"
	TagIDAnime         = "9226235a-0fc1-499c-91fc-5cfd0aae3290"
	TagIDGaming        = "395b8b08-11dc-4c6a-babb-29034c72adfa"
	TagIDRoblox        = "4c329655-6d22-4c61-ab07-4b25ecab56a8"
	TagIDUtility       = "f5264e95-bb85-43a9-8904-c971c7264f10"
	TagIDWriting       = "6321cf40-65e6-41de-b1d7-ab67d03fea84"
	TagIDRoleplay      = "2c1057d8-7a2c-4525-8a97-4881a8c08c27"
	TagIDGenshinImpact = "932d373d-5e72-4e14-98b0-f42570aaab1a"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	ID          string
	Name        string
	ImageURL    string
	Description string
	URL         string
	WebhookURL  *string
	RoleID      *string
	CreatedBy   string
	CreatedAt   time.Time `cursor:"offset,desc"`
	UpdatedBy   *string
	UpdatedAt   *time.Time
	DeletedBy   *string
	DeletedAt   *time.Time
	Score       int64 `cursor:"default,offset,desc"`
}

type AppCounters

type AppCounters struct {
	Saves         int64
	Circles       int64
	Upvotes       int64
	Reviews       int64
	AverageRating float64
	Ratings       map[int64]int64
}

type AppOrder

type AppOrder uint8
const (
	AppOrderUnspecified AppOrder = iota
	AppOrderByScore
	AppOrderByCreatedAt
)

type AppReview

type AppReview struct {
	ID        string
	Body      string
	AppID     string
	CreatedBy string
	Rating    int64
	Upvotes   int64 `cursor:"default,offset,desc"`
	Downvotes int64
	CreatedAt time.Time
	DeletedBy *string
	DeletedAt *time.Time
}

type AppSave

type AppSave struct {
	AppID     string `cursor:"default"`
	UserID    string
	CreatedAt time.Time
}

type AppSubscriptionEvent

type AppSubscriptionEvent struct {
	OriginalEventID string      `json:"original_event_id"`
	AppID           string      `json:"app_id"`
	SubscriptionID  string      `json:"subscription_id"`
	CircleEvent     CircleEvent `json:"circle_event,omitempty"`
}

type AppToken

type AppToken struct {
	TokenID string
	Name    string
}

type CircleApp

type CircleApp struct {
	AppID     string
	CircleID  string
	CreatedAt time.Time `cursor:"default,offset,desc"`
}

type CircleEvent

type CircleEvent struct {
	CircleID   string                 `json:"circle_id"`
	UserID     string                 `json:"user_id"`
	UserLeft   *UserLeftCircleEvent   `json:"user_left,omitempty"`
	UserJoined *UserJoinedCircleEvent `json:"user_joined,omitempty"`
	NewPost    *NewCirclePostEvent    `json:"new_post,omitempty"`
	NewMessage *NewCircleMessageEvent `json:"new_message,omitempty"`
	NewComment *NewCircleCommentEvent `json:"new_comment,omitempty"`
}

type CreateAppInput

type CreateAppInput struct {
	URL             string
	Name            string
	ImageURL        string
	Description     string
	WebhookURL      *string
	TagIDs          []string
	PermissionIDs   []string
	SubscriptionIDs []string
}

type CreateAppReviewInput

type CreateAppReviewInput struct {
	Body   string
	AppID  string
	Rating int64
}

type Cursor

type Cursor struct {
	Limit             uint32
	CursorID          string
	BackwardDirection bool
}

func (Cursor) Params

func (c Cursor) Params() *cursor.Params

type GeneratedToken

type GeneratedToken struct {
	TokenID  string
	JwtToken string
}

type GetDefaultAppsFilter

type GetDefaultAppsFilter struct {
	CursorID          string
	Limit             uint32
	BackwardDirection bool
}

type GetFeaturedAppsFilter

type GetFeaturedAppsFilter struct {
	CursorID          string
	Limit             uint32
	BackwardDirection bool
}

type GetSavedAppsFilter

type GetSavedAppsFilter struct {
	CursorID          string
	Limit             uint32
	BackwardDirection bool
}

type IssuedToken

type IssuedToken struct {
	JwtToken string
}

type LastUsedApp

type LastUsedApp struct {
	AppID  string `cursor:"default"`
	UserID string
	UsedAt time.Time
}

type NewCircleCommentEvent

type NewCircleCommentEvent struct {
	CommentID string `json:"comment_id"`
}

type NewCircleMessageEvent

type NewCircleMessageEvent struct {
	MessageID string `json:"message_id"`
}

type NewCirclePostEvent

type NewCirclePostEvent struct {
	PostID string `json:"post_id"`
}

type Permission

type Permission struct {
	ID          string
	DXName      string
	UXName      string
	Description string
	Descriptors []string
	Scope       string
}

type SearchAppsFilter

type SearchAppsFilter struct {
	Cursor
	Order          AppOrder
	TagIDs         []string
	NameStartsWith string
}

type Subscription

type Subscription struct {
	ID         string
	Descriptor string
}

type Tag

type Tag struct {
	ID   string
	Name string
}

type UpdateAppInput

type UpdateAppInput struct {
	URL         *string
	Name        *string
	ImageURL    *string
	WebhookURL  *string
	Description *string
}

type UserJoinedCircleEvent

type UserJoinedCircleEvent struct {
	UserID string `json:"user_id"`
}

type UserLeftCircleEvent

type UserLeftCircleEvent struct {
	UserID string `json:"user_id"`
}

Jump to

Keyboard shortcuts

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