Documentation ¶
Index ¶
- Constants
- func New(r types.Resolver) generated.QueryResolver
- type Resolver
- func (r *Resolver) Actor(ctx context.Context) (*model.User, error)
- func (r *Resolver) Announcement(ctx context.Context) (string, error)
- func (r *Resolver) Cosmetics(ctx context.Context, list []primitive.ObjectID) (*model.CosmeticsQuery, error)
- func (r *Resolver) Emote(ctx context.Context, id primitive.ObjectID) (*model.Emote, error)
- func (r *Resolver) EmoteSet(ctx context.Context, id primitive.ObjectID) (*model.EmoteSet, error)
- func (r *Resolver) EmoteSetsByID(ctx context.Context, ids []primitive.ObjectID) ([]*model.EmoteSet, error)
- func (r *Resolver) Emotes(ctx context.Context, queryValue string, pageArg *int, limitArg *int, ...) (*model.EmoteSearchResult, error)
- func (r *Resolver) EmotesByID(ctx context.Context, list []primitive.ObjectID) ([]*model.EmotePartial, error)
- func (r *Resolver) Inbox(ctx context.Context, userID primitive.ObjectID, afterIDArg *primitive.ObjectID, ...) ([]*model.InboxMessage, error)
- func (r *Resolver) ModRequests(ctx context.Context, afterIDArg *primitive.ObjectID, limitArg *int, ...) (*model.ModRequestMessageList, error)
- func (r *Resolver) NamedEmoteSet(ctx context.Context, name model.EmoteSetName) (*model.EmoteSet, error)
- func (r *Resolver) ProxiedEndpoint(ctx context.Context, id int, userID *primitive.ObjectID) (string, error)
- func (r *Resolver) Report(ctx context.Context, id primitive.ObjectID) (*model.Report, error)
- func (r *Resolver) Reports(ctx context.Context, statusArg *model.ReportStatus, limitArg *int, ...) ([]*model.Report, error)
- func (r *Resolver) Role(ctx context.Context, id primitive.ObjectID) (*model.Role, error)
- func (r *Resolver) Roles(ctx context.Context) ([]*model.Role, error)
- func (r *Resolver) User(ctx context.Context, id primitive.ObjectID) (*model.User, error)
- func (r *Resolver) UserByConnection(ctx context.Context, platform model.ConnectionPlatform, id string) (*model.User, error)
- func (r *Resolver) Users(ctx context.Context, queryArg string, pageArg *int, limitArg *int) ([]*model.UserPartial, error)
- func (r *Resolver) UsersByID(ctx context.Context, list []primitive.ObjectID) ([]*model.UserPartial, error)
- func (r *Resolver) Z() *zap.SugaredLogger
- type Sort
- type SortOrder
Constants ¶
View Source
const EMOTES_QUERY_LIMIT = 300
View Source
const INBOX_QUERY_LIMIT_MOST = 1000
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Resolver ¶
func (*Resolver) Announcement ¶
func (*Resolver) Cosmetics ¶
func (r *Resolver) Cosmetics(ctx context.Context, list []primitive.ObjectID) (*model.CosmeticsQuery, error)
Cosmetics implements generated.QueryResolver
func (*Resolver) EmoteSetsByID ¶
func (*Resolver) EmotesByID ¶
func (*Resolver) ModRequests ¶
func (r *Resolver) ModRequests(ctx context.Context, afterIDArg *primitive.ObjectID, limitArg *int, wish *string, country *string) (*model.ModRequestMessageList, error)
ModRequests implements generated.QueryResolver
func (*Resolver) NamedEmoteSet ¶
func (*Resolver) ProxiedEndpoint ¶
func (r *Resolver) ProxiedEndpoint(ctx context.Context, id int, userID *primitive.ObjectID) (string, error)
ProxyURL implements generated.QueryResolver
func (*Resolver) UserByConnection ¶
func (*Resolver) UsersByID ¶
func (r *Resolver) UsersByID(ctx context.Context, list []primitive.ObjectID) ([]*model.UserPartial, error)
EmotesByIDs implements generated.QueryResolver
func (*Resolver) Z ¶
func (r *Resolver) Z() *zap.SugaredLogger
Click to show internal directories.
Click to hide internal directories.