Documentation ¶
Index ¶
- func Initialize(ctx context.Context)
- type QueryResolver
- type TweetResolver
- func (t *TweetResolver) CreatedAt(ctx context.Context, obj *model.Tweet) (*library.Datetime, error)
- func (t *TweetResolver) ID(ctx context.Context, obj *model.Tweet) (string, error)
- func (t *TweetResolver) Images(ctx context.Context, obj *model.Tweet) (imgs []string, err error)
- func (t *TweetResolver) IsQuoteStatus(ctx context.Context, obj *model.Tweet) (bool, error)
- func (t *TweetResolver) QuotedStatus(ctx context.Context, obj *model.Tweet) (*model.Tweet, error)
- func (t *TweetResolver) ReplyTo(ctx context.Context, obj *model.Tweet) (tweet *model.Tweet, err error)
- func (t *TweetResolver) Replys(ctx context.Context, obj *model.Tweet) ([]*model.Tweet, error)
- func (t *TweetResolver) URL(ctx context.Context, obj *model.Tweet) (string, error)
- func (t *TweetResolver) Viewers(ctx context.Context, obj *model.Tweet) (us []*model.User, err error)
- type TwitterUserResolver
- type Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Initialize ¶
Types ¶
type QueryResolver ¶
type QueryResolver struct{}
func (*QueryResolver) TwitterStatues ¶
func (*QueryResolver) TwitterThreads ¶
type TweetResolver ¶
type TweetResolver struct{}
func (*TweetResolver) IsQuoteStatus ¶
func (*TweetResolver) QuotedStatus ¶
type TwitterUserResolver ¶
type TwitterUserResolver struct{}
func (*TwitterUserResolver) Description ¶
type Type ¶
type Type struct { TweetResolver *TweetResolver TwitterUserResolver *TwitterUserResolver }
var Instance *Type
Click to show internal directories.
Click to hide internal directories.