Documentation
¶
Overview ¶
message from the author:
+--------------------------------------------------------------+ | * * * ░░░░░░░░░░░░░░░░░░░░ Hello ░░░░░░░░░░░░░░░░░░░░░░░░░░| +--------------------------------------------------------------+ | | | ++ ______________________________________ | | ++++ / \ | | ++++ | | | | ++++++++++ | Feel free to contribute to this | | | +++ | | project or contact me on | | | ++ | | manfred.life if you like this | | | + -== ==| | project! | | | ( <*> <*> | | | | | | /| :) | | | | _) / | | | | | +++ / \______________________________________/ | | \ =+ / | | \ + | | |\++++++ | | | ++++ ||// | | ___| |___ _||/__ __| | / --- \ \| ||| __ _ ___ __ __/ /| |/ | | \ \ / / ' \/ _ \/ // / / | || | | | | | /_/_/_/\___/\_,_/_/ | +--------------------------------------------------------------+
Index ¶
- Constants
- type Attachment
- type Client
- func (c Client) MutateCreateTodo(ctx context.Context, body string, completedAt *time.Time, ...) (*Todo, error)
- func (c Client) QueryProducts(ctx context.Context, limit int) ([]Product, error)
- func (c Client) QueryTodos(ctx context.Context, opts *QueryTodosOptions) ([]Todo, error)
- func (c Client) QueryUser(ctx context.Context, opts *QueryUserOptions) (*User, error)
- func (c Client) QueryViewer(ctx context.Context, opts *QueryViewerOptions) (*User, error)
- type Error
- type FilePayload
- type Product
- type QueryTodosOptions
- type QueryUserOptions
- type QueryViewerOptions
- type Todo
- type TodoInput
- type User
Constants ¶
View Source
const (
ErrTokenRequired = Error("token required")
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attachment ¶
type Attachment struct {
ID graphql.ID `graphql:"id" json:"id,omitempty"`
AspectRatio float64 `graphql:"aspectRatio" json:"aspect_ratio,omitempty"`
CreatedAt *time.Time `graphql:"createdAt" json:"created_at,omitempty"`
Filename string `graphql:"filename" json:"filename,omitempty"`
MimeType string `graphql:"mimeType" json:"mime_type,omitempty"`
Size int `graphql:"size" json:"size,omitempty"`
UpdatedAt *time.Time `graphql:"updatedAt" json:"updated_at,omitempty"`
URL string `graphql:"url" json:"url,omitempty"`
}
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (Client) MutateCreateTodo ¶
func (Client) QueryProducts ¶
func (Client) QueryTodos ¶
func (Client) QueryViewer ¶
type FilePayload ¶
type Product ¶
type Product struct {
ID graphql.ID `graphql:"id" json:"id,omitempty"`
CreatedAt *time.Time `graphql:"created_at" json:"created_at,omitempty"`
Hashtag string `graphql:"hashtag" json:"hashtag,omitempty"`
Name string `graphql:"name" json:"name,omitempty"`
Pitch string `graphql:"pitch" json:"pitch,omitempty"`
UpdatedAt *time.Time `graphql:"updated_at" json:"updated_at,omitempty"`
URL string `graphql:"url" json:"url,omitempty"`
WebsiteURL string `graphql:"website_url" json:"website_url,omitempty"`
Makers []User `graphql:"makers" json:"makers,omitempty"`
Todos []Todo `graphql:"todos" json:"todos,omitempty"`
}
type QueryTodosOptions ¶
func (*QueryTodosOptions) ApplyDefaults ¶
func (opts *QueryTodosOptions) ApplyDefaults()
type QueryUserOptions ¶
type QueryUserOptions struct {
TodosCompleted bool
TodosLimit int
TodosOffset int
TodosFilter string
TodosOrder string
AvatarSize int
UserID string
Username string
}
func (*QueryUserOptions) ApplyDefaults ¶
func (opts *QueryUserOptions) ApplyDefaults()
type QueryViewerOptions ¶
type QueryViewerOptions struct {
TodosCompleted bool
TodosLimit int
TodosOffset int
TodosFilter string
TodosOrder string
AvatarSize int
}
func (*QueryViewerOptions) ApplyDefaults ¶
func (opts *QueryViewerOptions) ApplyDefaults()
type Todo ¶
type Todo struct {
ID graphql.ID `graphql:"id" json:"id,omitempty"`
Product *Product `graphql:"product" json:"product,omitempty"`
UpdatedAt *time.Time `graphql:"updated_at" json:"updated_at,omitempty"`
User *User `graphql:"user" json:"user,omitempty"`
CreatedAt *time.Time `graphql:"created_at" json:"created_at,omitempty"`
CompletedAt *time.Time `graphql:"completed_at" json:"completed_at,omitempty"`
Body string `graphql:"body" json:"body,omitempty"`
Attachments []Attachment `graphql:"attachments" json:"attachments,omitempty"`
}
func (*Todo) CanonicalURL ¶
type User ¶
type User struct {
ID graphql.ID `graphql:"id" json:"id,omitempty"`
URL string `graphql:"url" json:"url,omitempty"`
Username string `graphql:"username" json:"username,omitempty"`
Firstname string `graphql:"first_name" json:"first_name,omitempty"`
Lastname string `graphql:"last_name" json:"last_name,omitempty"`
AvatarURL string `graphql:"avatar_url" json:"avatar_url,omitempty"`
CompletedTodosCount int `graphql:"completed_todos_count" json:"completed_todos_count,omitempty"`
BestStreak int `graphql:"best_streak" json:"best_streak,omitempty"`
Streaking bool `graphql:"streaking" json:"streaking,omitempty"`
Todos []Todo `graphql:"todos" json:"todos,omitempty"`
Products []Product `graphql:"products" json:"products,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.