Documentation ¶
Index ¶
- Constants
- func Init()
- type NotiSliceResolver
- func (nsr *NotiSliceResolver) Quoted(ctx context.Context) (*[]*QuotedNotiResolver, error)
- func (nsr *NotiSliceResolver) Replied(ctx context.Context) (*[]*RepliedNotiResolver, error)
- func (nsr *NotiSliceResolver) SliceInfo(ctx context.Context) (*SliceInfoResolver, error)
- func (nsr *NotiSliceResolver) System(ctx context.Context) (*[]*SystemNotiResolver, error)
- type PostResolver
- func (pr *PostResolver) Anonymous(ctx context.Context) (bool, error)
- func (pr *PostResolver) Author(ctx context.Context) (string, error)
- func (pr *PostResolver) Blocked(ctx context.Context) (bool, error)
- func (pr *PostResolver) Content(ctx context.Context) (string, error)
- func (pr *PostResolver) CreateTime(ctx context.Context) (graphql.Time, error)
- func (pr *PostResolver) ID(ctx context.Context) (string, error)
- func (pr *PostResolver) QuoteCount(ctx context.Context) (int32, error)
- func (pr *PostResolver) Quotes(ctx context.Context) (*[]*PostResolver, error)
- type PostSliceResolver
- type QuotedNotiResolver
- func (n *QuotedNotiResolver) EventTime(ctx context.Context) (graphql.Time, error)
- func (n *QuotedNotiResolver) HasRead(ctx context.Context) (bool, error)
- func (n *QuotedNotiResolver) ID(ctx context.Context) (string, error)
- func (n *QuotedNotiResolver) Post(ctx context.Context) (*PostResolver, error)
- func (n *QuotedNotiResolver) QuotedPost(ctx context.Context) (*PostResolver, error)
- func (n *QuotedNotiResolver) Quoter(ctx context.Context) (string, error)
- func (n *QuotedNotiResolver) Thread(ctx context.Context) (*ThreadResolver, error)
- func (n *QuotedNotiResolver) Type(ctx context.Context) (string, error)
- type RepliedNotiResolver
- func (n *RepliedNotiResolver) EventTime(ctx context.Context) (graphql.Time, error)
- func (n *RepliedNotiResolver) HasRead(ctx context.Context) (bool, error)
- func (n *RepliedNotiResolver) ID(ctx context.Context) (string, error)
- func (n *RepliedNotiResolver) Repliers(ctx context.Context) ([]string, error)
- func (n *RepliedNotiResolver) Thread(ctx context.Context) (*ThreadResolver, error)
- func (n *RepliedNotiResolver) Type(ctx context.Context) (string, error)
- type Resolver
- func (r *Resolver) AddSubbedTags(ctx context.Context, args struct{ ... }) (*UserResolver, error)
- func (r *Resolver) Auth(ctx context.Context, args struct{ ... }) (bool, error)
- func (r *Resolver) BanUser(ctx context.Context, args struct{ ... }) error
- func (r *Resolver) BlockPost(ctx context.Context, args struct{ ... }) error
- func (r *Resolver) BlockThread(ctx context.Context, args struct{ ... }) error
- func (r *Resolver) DelSubbedTags(ctx context.Context, args struct{ ... }) (*UserResolver, error)
- func (r *Resolver) EditTags(ctx context.Context, args struct{ ... }) error
- func (r *Resolver) LockThread(ctx context.Context, args struct{ ... }) error
- func (r *Resolver) Notification(ctx context.Context, args struct{ ... }) (*NotiSliceResolver, error)
- func (r *Resolver) Post(ctx context.Context, args struct{ ... }) (*PostResolver, error)
- func (r *Resolver) Profile(ctx context.Context) (*UserResolver, error)
- func (r *Resolver) PubPost(ctx context.Context, args struct{ ... }) (*PostResolver, error)
- func (r *Resolver) PubThread(ctx context.Context, args struct{ ... }) (*ThreadResolver, error)
- func (r *Resolver) SetName(ctx context.Context, args struct{ ... }) (*UserResolver, error)
- func (r *Resolver) SyncTags(ctx context.Context, args struct{ ... }) (*UserResolver, error)
- func (r *Resolver) Tags(ctx context.Context) (*TagResolver, error)
- func (r *Resolver) Thread(ctx context.Context, args struct{ ... }) (*ThreadResolver, error)
- func (r *Resolver) ThreadSlice(ctx context.Context, args struct{ ... }) (*ThreadSliceResolver, error)
- func (r *Resolver) UnreadNotiCount(ctx context.Context) (*UnreadResolver, error)
- type SliceInfoResolver
- type SliceQuery
- type SystemNotiResolver
- func (n *SystemNotiResolver) Content(ctx context.Context) (string, error)
- func (n *SystemNotiResolver) EventTime(ctx context.Context) (graphql.Time, error)
- func (n *SystemNotiResolver) HasRead(ctx context.Context) (bool, error)
- func (n *SystemNotiResolver) ID(ctx context.Context) (string, error)
- func (n *SystemNotiResolver) Title(ctx context.Context) (string, error)
- func (n *SystemNotiResolver) Type(ctx context.Context) (string, error)
- type TagResolver
- type TagTreeNodeResolver
- type ThreadResolver
- func (tr *ThreadResolver) Anonymous(ctx context.Context) (bool, error)
- func (tr *ThreadResolver) Author(ctx context.Context) (string, error)
- func (tr *ThreadResolver) Content(ctx context.Context) (string, error)
- func (tr *ThreadResolver) CreateTime(ctx context.Context) (graphql.Time, error)
- func (tr *ThreadResolver) ID(ctx context.Context) (string, error)
- func (tr *ThreadResolver) MainTag(ctx context.Context) (string, error)
- func (tr *ThreadResolver) Replies(ctx context.Context, args struct{ ... }) (*PostSliceResolver, error)
- func (tr *ThreadResolver) ReplyCount(ctx context.Context) (int32, error)
- func (tr *ThreadResolver) SubTags(ctx context.Context) (*[]string, error)
- func (tr *ThreadResolver) Title(ctx context.Context) (*string, error)
- type ThreadSliceResolver
- type UnreadResolver
- type UserResolver
Constants ¶
const Schema = `` /* 6130-byte string literal not displayed */
Schema for api
Variables ¶
This section is empty.
Functions ¶
Types ¶
type NotiSliceResolver ¶
type NotiSliceResolver struct {
// contains filtered or unexported fields
}
NotiSliceResolver ...
func (*NotiSliceResolver) Quoted ¶
func (nsr *NotiSliceResolver) Quoted(ctx context.Context) ( *[]*QuotedNotiResolver, error, )
Quoted ...
func (*NotiSliceResolver) Replied ¶
func (nsr *NotiSliceResolver) Replied(ctx context.Context) ( *[]*RepliedNotiResolver, error, )
Replied ...
func (*NotiSliceResolver) SliceInfo ¶
func (nsr *NotiSliceResolver) SliceInfo(ctx context.Context) (*SliceInfoResolver, error)
SliceInfo ...
func (*NotiSliceResolver) System ¶
func (nsr *NotiSliceResolver) System(ctx context.Context) ( *[]*SystemNotiResolver, error, )
System ...
type PostResolver ¶
PostResolver ...
func (*PostResolver) Anonymous ¶
func (pr *PostResolver) Anonymous(ctx context.Context) (bool, error)
Anonymous ...
func (*PostResolver) Author ¶
func (pr *PostResolver) Author(ctx context.Context) (string, error)
Author ...
func (*PostResolver) Blocked ¶
func (pr *PostResolver) Blocked(ctx context.Context) (bool, error)
Blocked ...
func (*PostResolver) Content ¶
func (pr *PostResolver) Content(ctx context.Context) (string, error)
Content ...
func (*PostResolver) CreateTime ¶
CreateTime ...
func (*PostResolver) QuoteCount ¶
func (pr *PostResolver) QuoteCount(ctx context.Context) (int32, error)
QuoteCount ...
func (*PostResolver) Quotes ¶
func (pr *PostResolver) Quotes(ctx context.Context) (*[]*PostResolver, error)
Quotes ...
type PostSliceResolver ¶
type PostSliceResolver struct {
// contains filtered or unexported fields
}
PostSliceResolver ...
func (*PostSliceResolver) Posts ¶
func (psr *PostSliceResolver) Posts(ctx context.Context) ([]*PostResolver, error)
Posts ...
func (*PostSliceResolver) SliceInfo ¶
func (psr *PostSliceResolver) SliceInfo(ctx context.Context) (*SliceInfoResolver, error)
SliceInfo ...
type QuotedNotiResolver ¶
type QuotedNotiResolver struct {
// contains filtered or unexported fields
}
QuotedNotiResolver ...
func (*QuotedNotiResolver) Post ¶
func (n *QuotedNotiResolver) Post(ctx context.Context) (*PostResolver, error)
Post ...
func (*QuotedNotiResolver) QuotedPost ¶
func (n *QuotedNotiResolver) QuotedPost(ctx context.Context) (*PostResolver, error)
QuotedPost ...
func (*QuotedNotiResolver) Quoter ¶
func (n *QuotedNotiResolver) Quoter(ctx context.Context) (string, error)
Quoter ...
func (*QuotedNotiResolver) Thread ¶
func (n *QuotedNotiResolver) Thread(ctx context.Context) (*ThreadResolver, error)
Thread ...
type RepliedNotiResolver ¶
type RepliedNotiResolver struct {
// contains filtered or unexported fields
}
RepliedNotiResolver ...
func (*RepliedNotiResolver) Repliers ¶
func (n *RepliedNotiResolver) Repliers(ctx context.Context) ([]string, error)
Repliers ...
func (*RepliedNotiResolver) Thread ¶
func (n *RepliedNotiResolver) Thread(ctx context.Context) (*ThreadResolver, error)
Thread ...
type Resolver ¶
type Resolver struct{}
Resolver for graphql
func (*Resolver) AddSubbedTags ¶
func (r *Resolver) AddSubbedTags( ctx context.Context, args struct{ Tags []string }, ) (*UserResolver, error)
AddSubbedTags ...
func (*Resolver) BlockThread ¶
BlockThread ...
func (*Resolver) DelSubbedTags ¶
func (r *Resolver) DelSubbedTags( ctx context.Context, args struct{ Tags []string }, ) (*UserResolver, error)
DelSubbedTags ...
func (*Resolver) EditTags ¶
func (r *Resolver) EditTags( ctx context.Context, args struct { ThreadID string MainTag string SubTags []string }, ) error
EditTags ...
func (*Resolver) LockThread ¶
LockThread ...
func (*Resolver) Notification ¶
func (r *Resolver) Notification(ctx context.Context, args struct { Type string Query *SliceQuery }) (*NotiSliceResolver, error)
Notification resolve query 'notification'
func (*Resolver) Profile ¶
func (r *Resolver) Profile(ctx context.Context) (*UserResolver, error)
Profile resolve query 'profile'
func (*Resolver) PubPost ¶
func (r *Resolver) PubPost( ctx context.Context, args struct{ Post *model.PostInput }, ) ( *PostResolver, error, )
PubPost ...
func (*Resolver) PubThread ¶
func (r *Resolver) PubThread( ctx context.Context, args struct{ Thread *model.ThreadInput }, ) ( *ThreadResolver, error, )
PubThread ...
func (*Resolver) SetName ¶
func (r *Resolver) SetName( ctx context.Context, args struct{ Name string }, ) (*UserResolver, error)
SetName ...
func (*Resolver) SyncTags ¶
func (r *Resolver) SyncTags( ctx context.Context, args struct{ Tags []*string }, ) (*UserResolver, error)
SyncTags ...
func (*Resolver) Thread ¶
func (r *Resolver) Thread( ctx context.Context, args struct{ ID string }, ) (*ThreadResolver, error)
Thread ...
func (*Resolver) ThreadSlice ¶
func (r *Resolver) ThreadSlice(ctx context.Context, args struct { Tags *[]string Query *SliceQuery }) ( *ThreadSliceResolver, error, )
ThreadSlice ...
func (*Resolver) UnreadNotiCount ¶
func (r *Resolver) UnreadNotiCount(ctx context.Context) (*UnreadResolver, error)
UnreadNotiCount ...
type SliceInfoResolver ¶
SliceInfoResolver ...
func (*SliceInfoResolver) FirstCursor ¶
func (si *SliceInfoResolver) FirstCursor(ctx context.Context) (string, error)
FirstCursor ...
func (*SliceInfoResolver) LastCursor ¶
func (si *SliceInfoResolver) LastCursor(ctx context.Context) (string, error)
LastCursor ...
type SliceQuery ¶
SliceQuery for api, different from model.SliceQuery
func (*SliceQuery) Parse ¶
func (sq *SliceQuery) Parse(reverse bool) (*model.SliceQuery, error)
Parse to model.SliceQuery
type SystemNotiResolver ¶
type SystemNotiResolver struct {
// contains filtered or unexported fields
}
SystemNotiResolver ...
func (*SystemNotiResolver) Content ¶
func (n *SystemNotiResolver) Content(ctx context.Context) (string, error)
Content ...
type TagResolver ¶
type TagResolver struct{}
TagResolver ...
func (*TagResolver) MainTags ¶
func (tr *TagResolver) MainTags(ctx context.Context) ([]string, error)
MainTags ...
func (*TagResolver) Recommended ¶
func (tr *TagResolver) Recommended(ctx context.Context) ([]string, error)
Recommended ...
func (*TagResolver) Tree ¶
func (tr *TagResolver) Tree( ctx context.Context, args struct{ Query *string }, ) (*[]*TagTreeNodeResolver, error)
Tree ...
type TagTreeNodeResolver ¶
type TagTreeNodeResolver struct {
// contains filtered or unexported fields
}
TagTreeNodeResolver ...
type ThreadResolver ¶
ThreadResolver ...
func (*ThreadResolver) Anonymous ¶
func (tr *ThreadResolver) Anonymous(ctx context.Context) (bool, error)
Anonymous ...
func (*ThreadResolver) Author ¶
func (tr *ThreadResolver) Author(ctx context.Context) (string, error)
Author ...
func (*ThreadResolver) Content ¶
func (tr *ThreadResolver) Content(ctx context.Context) (string, error)
Content ...
func (*ThreadResolver) CreateTime ¶
CreateTime ...
func (*ThreadResolver) ID ¶
func (tr *ThreadResolver) ID(ctx context.Context) (string, error)
ID ...
func (*ThreadResolver) MainTag ¶
func (tr *ThreadResolver) MainTag(ctx context.Context) (string, error)
MainTag ...
func (*ThreadResolver) Replies ¶
func (tr *ThreadResolver) Replies(ctx context.Context, args struct { Query *SliceQuery }) ( *PostSliceResolver, error, )
Replies ...
func (*ThreadResolver) ReplyCount ¶
func (tr *ThreadResolver) ReplyCount(ctx context.Context) (int32, error)
ReplyCount ...
type ThreadSliceResolver ¶
type ThreadSliceResolver struct {
// contains filtered or unexported fields
}
ThreadSliceResolver ...
func (*ThreadSliceResolver) SliceInfo ¶
func (tsr *ThreadSliceResolver) SliceInfo(ctx context.Context) (*SliceInfoResolver, error)
SliceInfo ...
func (*ThreadSliceResolver) Threads ¶
func (tsr *ThreadSliceResolver) Threads(ctx context.Context) ([]*ThreadResolver, error)
Threads ...
type UnreadResolver ¶
type UnreadResolver struct{}
UnreadResolver ...
func (*UnreadResolver) Quoted ¶
func (ur *UnreadResolver) Quoted(ctx context.Context) (int32, error)
Quoted ...