model

package
v0.0.0-...-e6f7b9e Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	KindApp = iota + 1
	KindChat
	KindPost
	KindCircle
	KindProfile
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Cursor

type Cursor struct {
	Limit             uint32
	CursorID          string
	BackwardDirection bool
}

func (Cursor) Params

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

type Post

type Post struct {
	ID           string
	UserID       string
	CircleID     string
	CreatedAt    time.Time
	Kind         int64
	LanguageCode string
	OwnerID      *string
	OwnerKind    int64
	DeletedAt    *time.Time
}
type Search struct {
	SearchKey
	CreatedAt time.Time `cursor:"offset,desc,default"`
}

type SearchInput

type SearchInput struct {
	SearchKey
}

type SearchKey

type SearchKey struct {
	Kind     int64
	UserID   string
	EntityID string
}

type UserUserEdge

type UserUserEdge struct {
	UserID       string
	TargetUserID string
	Following    bool
	Blocking     bool
}

Jump to

Keyboard shortcuts

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