global

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllSortOrder = []SortOrder{
	SortOrderAsc,
	SortOrderDesc,
}

Functions

This section is empty.

Types

type BlogLoginResponse

type BlogLoginResponse struct {
	User  *model.User `json:"user"`
	Token string      `json:"token"`
}

type BlogPostType

type BlogPostType string
const (
	BlogPostTypeMarkdown BlogPostType = "markdown"
	BlogPostTypeSlide    BlogPostType = "slide"
	BlogPostTypeHTML     BlogPostType = "html"
)

func (BlogPostType) IsValid

func (e BlogPostType) IsValid() bool

func (BlogPostType) MarshalGQL

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

func (BlogPostType) String

func (e BlogPostType) String() string

func (*BlogPostType) UnmarshalGQL

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

type GeneralUser

type GeneralUser struct {
	Name         string   `json:"name"`
	LockPrefixes []string `json:"lock_prefixes"`
}

type NewBlogPost

type NewBlogPost struct {
	Name     string        `json:"name"`
	Title    *string       `json:"title"`
	Markdown *string       `json:"markdown"`
	Type     *BlogPostType `json:"type"`
	Category *string       `json:"category"`
}

type Pagination

type Pagination struct {
	Page int `json:"page"`
	Size int `json:"size"`
}

type Sort

type Sort struct {
	SortBy string    `json:"sort_by"`
	Order  SortOrder `json:"order"`
}

type SortOrder

type SortOrder string
const (
	SortOrderAsc  SortOrder = "ASC"
	SortOrderDesc SortOrder = "DESC"
)

func (SortOrder) IsValid

func (e SortOrder) IsValid() bool

func (SortOrder) MarshalGQL

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

func (SortOrder) String

func (e SortOrder) String() string

func (*SortOrder) UnmarshalGQL

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

Jump to

Keyboard shortcuts

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