Documentation ¶
Index ¶
- Constants
- func BanStructureToModel(s structures.Ban) *model.Ban
- func FilterImages(images []*model.Image, formats []model.ImageFormat) []*model.Image
- func GetFields(ctx context.Context) map[string]Field
- func GetNestedPreloads(ctx *graphql.OperationContext, fields []graphql.CollectedField) map[string]Field
- func ReportStructureToModel(s structures.Report) *model.Report
- type ErrorGQL
- type Field
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func BanStructureToModel ¶
func FilterImages ¶
func GetNestedPreloads ¶
func GetNestedPreloads(ctx *graphql.OperationContext, fields []graphql.CollectedField) map[string]Field
func ReportStructureToModel ¶
Types ¶
type ErrorGQL ¶
type ErrorGQL string
const ( ErrAccessDenied ErrorGQL = "access denied" ErrUnknownEmote ErrorGQL = "unknown emote" ErrUnknownUser ErrorGQL = "unknown user" ErrUnknownRole ErrorGQL = "unknown role" ErrUnknownReport ErrorGQL = "unknown report" ErrBadObjectID ErrorGQL = "bad object id" ErrInternalServerError ErrorGQL = "internal server error" ErrBadInt ErrorGQL = "bad int" ErrDontBeSilly ErrorGQL = "don't be silly" )
Click to show internal directories.
Click to hide internal directories.