Versions in this module Expand all Collapse all v0 v0.0.4 Dec 21, 2023 Changes in this version + func NewExecutableSchema(cfg Config) graphql.ExecutableSchema + type ChannelResolver interface + MessagesConnection func(ctx context.Context, obj *model.Channel, last int, before string) (*model.ChannelMessagesConnection, error) + Publishers func(ctx context.Context, obj *model.Channel) ([]model.Role, error) + Readers func(ctx context.Context, obj *model.Channel) ([]model.Role, error) + type ComplexityRoot struct + AppBadgesConnection struct{ ... } + AppBadgesEdge struct{ ... } + Author struct{ ... } + Badge struct{ ... } + Channel struct{ ... } + ChannelMessagesConnection struct{ ... } + ChannelMessagesEdge struct{ ... } + Instance struct{ ... } + InstanceAuthorsConnection struct{ ... } + InstanceAuthorsEdge struct{ ... } + InstanceChannelsConnection struct{ ... } + InstanceChannelsEdge struct{ ... } + InstanceLikesConnection struct{ ... } + InstanceLikesEdge struct{ ... } + Invite struct{ ... } + Message struct{ ... } + Mutation struct{ ... } + Notice struct{ ... } + Notification struct{ ... } + PageInfo struct{ ... } + Query struct{ ... } + Subscription struct{ ... } + User struct{ ... } + UserBadgesConnection struct{ ... } + UserBadgesEdge struct{ ... } + UserInstancesConnection struct{ ... } + UserInstancesEdge struct{ ... } + UserNotificationsConnection struct{ ... } + UserNotificationsEdge struct{ ... } + type Config struct + Complexity ComplexityRoot + Directives DirectiveRoot + Resolvers ResolverRoot + Schema *ast.Schema + type DirectiveRoot struct + Auth func(ctx context.Context, obj interface{}, next graphql.Resolver, ...) (res interface{}, err error) + Constraint func(ctx context.Context, obj interface{}, next graphql.Resolver, min float64, ...) (res interface{}, err error) + type InstanceResolver interface + Author func(ctx context.Context, obj *model.Instance) (*model.Author, error) + AuthorsConnection func(ctx context.Context, obj *model.Instance, roles []model.Role, first int, ...) (*model.InstanceAuthorsConnection, error) + ChannelsConnection func(ctx context.Context, obj *model.Instance, first int, after string) (*model.InstanceChannelsConnection, error) + LikesConnection func(ctx context.Context, obj *model.Instance, first int, after string) (*model.InstanceLikesConnection, error) + ReadAccess func(ctx context.Context, obj *model.Instance) (model.Access, error) + type InviteResolver interface + Author func(ctx context.Context, obj *model.Invite) (*model.Author, error) + type MessageResolver interface + Author func(ctx context.Context, obj *model.Message) (*model.Author, error) + ImageUrls func(ctx context.Context, obj *model.Message) ([]string, error) + RepliedMessage func(ctx context.Context, obj *model.Message) (*model.Message, error) + type MutationResolver interface + AddBadge func(ctx context.Context, input model.BadgeInput) (*model.Badge, error) + AddChannel func(ctx context.Context, input model.ChannelInput) (*model.InstanceChannelsEdge, error) + AddInstance func(ctx context.Context, input model.InstanceInput) (*model.UserInstancesEdge, error) + AddInvite func(ctx context.Context, input model.InviteInput) (*model.Invite, error) + AddLike func(ctx context.Context, instanceID uuid.UUID) (*model.InstanceLikesEdge, error) + AddMessage func(ctx context.Context, input model.MessageInput) (*model.ChannelMessagesEdge, error) + AddRole func(ctx context.Context, authorID uuid.UUID, role model.Role, banReason *string) (*model.Author, error) + AssignBadge func(ctx context.Context, userID uuid.UUID, badgeID uuid.UUID) (*model.Badge, error) + PinInstance func(ctx context.Context, instanceID uuid.UUID, input model.InstancePinInput) (*model.UserInstancesEdge, error) + RedeemInvite func(ctx context.Context, code string) (*model.Invite, error) + RemoveBadge func(ctx context.Context, badgeID uuid.UUID) (*model.Badge, error) + RemoveChannel func(ctx context.Context, channelID uuid.UUID) (*model.InstanceChannelsEdge, error) + RemoveInstance func(ctx context.Context, instanceID uuid.UUID) (*model.UserInstancesEdge, error) + RemoveInvite func(ctx context.Context, inviteID uuid.UUID) (*model.Invite, error) + RemoveLike func(ctx context.Context, instanceID uuid.UUID) (*model.InstanceLikesEdge, error) + RemoveMessage func(ctx context.Context, messageID uuid.UUID) (*model.ChannelMessagesEdge, error) + RemoveRole func(ctx context.Context, authorID uuid.UUID, role model.Role) (*model.Author, error) + ReorderChannel func(ctx context.Context, channelID uuid.UUID, input model.ChannelReorderInput) (*model.InstanceChannelsEdge, error) + ReorderInstance func(ctx context.Context, instanceID uuid.UUID, input model.InstanceReorderInput) (*model.UserInstancesEdge, error) + UnassignBadge func(ctx context.Context, userID uuid.UUID, badgeID uuid.UUID) (*model.Badge, error) + UpdateBadge func(ctx context.Context, badgeID uuid.UUID, input model.BadgeInput) (*model.Badge, error) + UpdateChannel func(ctx context.Context, channelID uuid.UUID, input model.ChannelInput) (*model.InstanceChannelsEdge, error) + UpdateInstance func(ctx context.Context, instanceID uuid.UUID, input model.InstanceInput) (*model.UserInstancesEdge, error) + UpdateUser func(ctx context.Context, input model.UserInput) (*model.User, error) + type NotificationResolver interface + Author func(ctx context.Context, obj *model.Notification) (*model.Author, error) + Kind func(ctx context.Context, obj *model.Notification) (model.NotificationKind, error) + type QueryResolver interface + Author func(ctx context.Context, id uuid.UUID) (*model.Author, error) + Badges func(ctx context.Context, first int, after string) (*model.AppBadgesConnection, error) + Channel func(ctx context.Context, id uuid.UUID) (*model.Channel, error) + CheckInvite func(ctx context.Context, code string) (*model.Invite, error) + Instance func(ctx context.Context, id uuid.UUID) (*model.UserInstancesEdge, error) + InstanceUserListByIds func(ctx context.Context, instanceID uuid.UUID, instanceUserIds []uuid.UUID) ([]*model.Author, error) + Invite func(ctx context.Context, instanceID uuid.UUID) (*model.Invite, error) + User func(ctx context.Context) (*model.User, error) + UserBadges func(ctx context.Context, userID uuid.UUID, first int, after string) (*model.UserBadgesConnection, error) + type ResolverRoot interface + Channel func() ChannelResolver + Instance func() InstanceResolver + Invite func() InviteResolver + Message func() MessageResolver + Mutation func() MutationResolver + Notification func() NotificationResolver + Query func() QueryResolver + Subscription func() SubscriptionResolver + User func() UserResolver + type SubscriptionResolver interface + Stream func(ctx context.Context, instanceID uuid.UUID) (<-chan *model.Notice, error) + type UserResolver interface + InstancesConnection func(ctx context.Context, obj *model.User, first int, after string) (*model.UserInstancesConnection, error) + NotificationsConnection func(ctx context.Context, obj *model.User, last int, before string) (*model.UserNotificationsConnection, error)