Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewExecutableSchema ¶
func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
Types ¶
type ComplexityRoot ¶
type ComplexityRoot struct { AccessToken struct { DateUpdated func(childComplexity int) int Duration func(childComplexity int) int JWT func(childComplexity int) int MaxParticipants func(childComplexity int) int SID func(childComplexity int) int Status func(childComplexity int) int Type func(childComplexity int) int UniqueName func(childComplexity int) int } Action struct { ActionType func(childComplexity int) int AllowAnonymous func(childComplexity int) int Handling func(childComplexity int) int ID func(childComplexity int) int Icon func(childComplexity int) int Name func(childComplexity int) int SequenceNumber func(childComplexity int) int } CalendarEvent struct { AnyoneCanAddSelf func(childComplexity int) int Attachments func(childComplexity int) int Attendees func(childComplexity int) int AttendeesOmitted func(childComplexity int) int ColorId func(childComplexity int) int Description func(childComplexity int) int End func(childComplexity int) int EndTimeUnspecified func(childComplexity int) int Etag func(childComplexity int) int GuestsCanInviteOthers func(childComplexity int) int GuestsCanModify func(childComplexity int) int GuestsCanSeeOtherGuests func(childComplexity int) int HangoutLink func(childComplexity int) int HtmlLink func(childComplexity int) int ICalUID func(childComplexity int) int Id func(childComplexity int) int Kind func(childComplexity int) int Location func(childComplexity int) int Locked func(childComplexity int) int OriginalStartTime func(childComplexity int) int PrivateCopy func(childComplexity int) int Recurrence func(childComplexity int) int RecurringEventId func(childComplexity int) int Sequence func(childComplexity int) int Start func(childComplexity int) int Status func(childComplexity int) int Summary func(childComplexity int) int Transparency func(childComplexity int) int Updated func(childComplexity int) int Visibility func(childComplexity int) int } Context struct { Flavour func(childComplexity int) int LocationID func(childComplexity int) int OrganizationID func(childComplexity int) int Timestamp func(childComplexity int) int UserID func(childComplexity int) int } Event struct { Context func(childComplexity int) int ID func(childComplexity int) int Name func(childComplexity int) int Payload func(childComplexity int) int } EventAttachment struct { FileId func(childComplexity int) int FileUrl func(childComplexity int) int IconLink func(childComplexity int) int MimeType func(childComplexity int) int Title func(childComplexity int) int } EventAttendee struct { AdditionalGuests func(childComplexity int) int Comment func(childComplexity int) int DisplayName func(childComplexity int) int Email func(childComplexity int) int Id func(childComplexity int) int Optional func(childComplexity int) int Organizer func(childComplexity int) int Resource func(childComplexity int) int ResponseStatus func(childComplexity int) int Self func(childComplexity int) int } EventDateTime struct { Date func(childComplexity int) int DateTime func(childComplexity int) int TimeZone func(childComplexity int) int } Feed struct { Actions func(childComplexity int) int FeatureImage func(childComplexity int) int Flavour func(childComplexity int) int ID func(childComplexity int) int IsAnonymous func(childComplexity int) int Items func(childComplexity int) int Nudges func(childComplexity int) int SequenceNumber func(childComplexity int) int UID func(childComplexity int) int } Feedback struct { Answer func(childComplexity int) int Question func(childComplexity int) int } FilterParams struct { Labels func(childComplexity int) int } FirebaseAPNSConfig struct { Headers func(childComplexity int) int } FirebaseAndroidConfig struct { CollapseKey func(childComplexity int) int Data func(childComplexity int) int Priority func(childComplexity int) int RestrictedPackageName func(childComplexity int) int } FirebaseSimpleNotification struct { Body func(childComplexity int) int Data func(childComplexity int) int ImageURL func(childComplexity int) int Title func(childComplexity int) int } FirebaseWebpushConfig struct { Data func(childComplexity int) int Headers func(childComplexity int) int } GhostCMSAuthor struct { Facebook func(childComplexity int) int ID func(childComplexity int) int Location func(childComplexity int) int Name func(childComplexity int) int ProfileImage func(childComplexity int) int Slug func(childComplexity int) int Twitter func(childComplexity int) int URL func(childComplexity int) int Website func(childComplexity int) int } GhostCMSPost struct { CommentID func(childComplexity int) int CreatedAt func(childComplexity int) int Excerpt func(childComplexity int) int FeatureImage func(childComplexity int) int HTML func(childComplexity int) int ID func(childComplexity int) int PublishedAt func(childComplexity int) int ReadingTime func(childComplexity int) int Slug func(childComplexity int) int Tags func(childComplexity int) int Title func(childComplexity int) int URL func(childComplexity int) int UUID func(childComplexity int) int UpdatedAt func(childComplexity int) int } GhostCMSTag struct { Description func(childComplexity int) int ID func(childComplexity int) int Name func(childComplexity int) int Slug func(childComplexity int) int URL func(childComplexity int) int Visibility func(childComplexity int) int } Item struct { Actions func(childComplexity int) int Author func(childComplexity int) int Conversations func(childComplexity int) int Expiry func(childComplexity int) int Groups func(childComplexity int) int ID func(childComplexity int) int Icon func(childComplexity int) int Label func(childComplexity int) int Links func(childComplexity int) int NotificationChannels func(childComplexity int) int Persistent func(childComplexity int) int SequenceNumber func(childComplexity int) int Status func(childComplexity int) int Summary func(childComplexity int) int Tagline func(childComplexity int) int Text func(childComplexity int) int TextType func(childComplexity int) int Timestamp func(childComplexity int) int Users func(childComplexity int) int Visibility func(childComplexity int) int } Link struct { Description func(childComplexity int) int ID func(childComplexity int) int LinkType func(childComplexity int) int Thumbnail func(childComplexity int) int Title func(childComplexity int) int URL func(childComplexity int) int } Msg struct { ID func(childComplexity int) int PostedByName func(childComplexity int) int PostedByUID func(childComplexity int) int ReplyTo func(childComplexity int) int SequenceNumber func(childComplexity int) int Text func(childComplexity int) int Timestamp func(childComplexity int) int } Mutation struct { DeleteMessage func(childComplexity int, flavour feedlib.Flavour, itemID string, messageID string) int HideFeedItem func(childComplexity int, flavour feedlib.Flavour, itemID string) int HideNudge func(childComplexity int, flavour feedlib.Flavour, nudgeID string) int PhoneNumberVerificationCode func(childComplexity int, to string, code string, marketingMessage string) int PinFeedItem func(childComplexity int, flavour feedlib.Flavour, itemID string) int PostMessage func(childComplexity int, flavour feedlib.Flavour, itemID string, message feedlib.Message) int ProcessEvent func(childComplexity int, flavour feedlib.Flavour, event feedlib.Event) int RecordNPSResponse func(childComplexity int, input dto.NPSInput) int ResolveFeedItem func(childComplexity int, flavour feedlib.Flavour, itemID string) int Send func(childComplexity int, to string, message string) int SendFCMByPhoneOrEmail func(childComplexity int, phoneNumber *string, email *string, data map[string]interface{}, notification firebasetools.FirebaseSimpleNotificationInput, android *firebasetools.FirebaseAndroidConfigInput, ios *firebasetools.FirebaseAPNSConfigInput, web *firebasetools.FirebaseWebpushConfigInput) int SendNotification func(childComplexity int, registrationTokens []string, data map[string]interface{}, notification firebasetools.FirebaseSimpleNotificationInput, android *firebasetools.FirebaseAndroidConfigInput, ios *firebasetools.FirebaseAPNSConfigInput, web *firebasetools.FirebaseWebpushConfigInput) int SendToMany func(childComplexity int, message string, to []string) int ShowFeedItem func(childComplexity int, flavour feedlib.Flavour, itemID string) int ShowNudge func(childComplexity int, flavour feedlib.Flavour, nudgeID string) int SimpleEmail func(childComplexity int, subject string, text string, to []string) int UnpinFeedItem func(childComplexity int, flavour feedlib.Flavour, itemID string) int UnresolveFeedItem func(childComplexity int, flavour feedlib.Flavour, itemID string) int Upload func(childComplexity int, input profileutils.UploadInput) int VerifyEmailOtp func(childComplexity int, email string, otp string) int VerifyOtp func(childComplexity int, msisdn string, otp string) int } NPSResponse struct { Email func(childComplexity int) int Feedback func(childComplexity int) int ID func(childComplexity int) int MSISDN func(childComplexity int) int Name func(childComplexity int) int Score func(childComplexity int) int SladeCode func(childComplexity int) int } NotificationBody struct { DeleteMessage func(childComplexity int) int HideMessage func(childComplexity int) int PublishMessage func(childComplexity int) int ResolveMessage func(childComplexity int) int ShowMessage func(childComplexity int) int UnresolveMessage func(childComplexity int) int } Nudge struct { Actions func(childComplexity int) int Expiry func(childComplexity int) int Groups func(childComplexity int) int ID func(childComplexity int) int Links func(childComplexity int) int NotificationBody func(childComplexity int) int NotificationChannels func(childComplexity int) int SequenceNumber func(childComplexity int) int Status func(childComplexity int) int Text func(childComplexity int) int Title func(childComplexity int) int Users func(childComplexity int) int Visibility func(childComplexity int) int } Payload struct { Data func(childComplexity int) int } Query struct { EmailVerificationOtp func(childComplexity int, email string) int FindUploadByID func(childComplexity int, id string) int GenerateAndEmailOtp func(childComplexity int, msisdn string, email *string, appID *string) int GenerateOtp func(childComplexity int, msisdn string, appID *string) int GenerateRetryOtp func(childComplexity int, msisdn string, retryStep int, appID *string) int GetFaqsContent func(childComplexity int, flavour feedlib.Flavour) int GetFeed func(childComplexity int, flavour feedlib.Flavour, isAnonymous bool, persistent feedlib.BooleanFilter, status *feedlib.Status, visibility *feedlib.Visibility, expired *feedlib.BooleanFilter, filterParams *helpers.FilterParams) int GetLibraryContent func(childComplexity int) int Labels func(childComplexity int, flavour feedlib.Flavour) int ListNPSResponse func(childComplexity int) int Notifications func(childComplexity int, registrationToken string, newerThan time.Time, limit int) int TwilioAccessToken func(childComplexity int) int UnreadPersistentItems func(childComplexity int, flavour feedlib.Flavour) int } Recipient struct { Cost func(childComplexity int) int MessageID func(childComplexity int) int Number func(childComplexity int) int Status func(childComplexity int) int } Sms struct { Recipients func(childComplexity int) int } SavedNotification struct { APNSConfig func(childComplexity int) int AndroidConfig func(childComplexity int) int Data func(childComplexity int) int ID func(childComplexity int) int MessageID func(childComplexity int) int Notification func(childComplexity int) int RegistrationToken func(childComplexity int) int Timestamp func(childComplexity int) int WebpushConfig func(childComplexity int) int } SendMessageResponse struct { SMSMessageData func(childComplexity int) int } Upload struct { Base64data func(childComplexity int) int ContentType func(childComplexity int) int Creation func(childComplexity int) int Hash func(childComplexity int) int ID func(childComplexity int) int Language func(childComplexity int) int Size func(childComplexity int) int Title func(childComplexity int) int URL func(childComplexity int) int } }
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type MutationResolver ¶
type MutationResolver interface { SendNotification(ctx context.Context, registrationTokens []string, data map[string]interface{}, notification firebasetools.FirebaseSimpleNotificationInput, android *firebasetools.FirebaseAndroidConfigInput, ios *firebasetools.FirebaseAPNSConfigInput, web *firebasetools.FirebaseWebpushConfigInput) (bool, error) SendFCMByPhoneOrEmail(ctx context.Context, phoneNumber *string, email *string, data map[string]interface{}, notification firebasetools.FirebaseSimpleNotificationInput, android *firebasetools.FirebaseAndroidConfigInput, ios *firebasetools.FirebaseAPNSConfigInput, web *firebasetools.FirebaseWebpushConfigInput) (bool, error) ResolveFeedItem(ctx context.Context, flavour feedlib.Flavour, itemID string) (*feedlib.Item, error) UnresolveFeedItem(ctx context.Context, flavour feedlib.Flavour, itemID string) (*feedlib.Item, error) PinFeedItem(ctx context.Context, flavour feedlib.Flavour, itemID string) (*feedlib.Item, error) UnpinFeedItem(ctx context.Context, flavour feedlib.Flavour, itemID string) (*feedlib.Item, error) HideFeedItem(ctx context.Context, flavour feedlib.Flavour, itemID string) (*feedlib.Item, error) ShowFeedItem(ctx context.Context, flavour feedlib.Flavour, itemID string) (*feedlib.Item, error) HideNudge(ctx context.Context, flavour feedlib.Flavour, nudgeID string) (*feedlib.Nudge, error) ShowNudge(ctx context.Context, flavour feedlib.Flavour, nudgeID string) (*feedlib.Nudge, error) PostMessage(ctx context.Context, flavour feedlib.Flavour, itemID string, message feedlib.Message) (*feedlib.Message, error) DeleteMessage(ctx context.Context, flavour feedlib.Flavour, itemID string, messageID string) (bool, error) ProcessEvent(ctx context.Context, flavour feedlib.Flavour, event feedlib.Event) (bool, error) SimpleEmail(ctx context.Context, subject string, text string, to []string) (string, error) VerifyOtp(ctx context.Context, msisdn string, otp string) (bool, error) VerifyEmailOtp(ctx context.Context, email string, otp string) (bool, error) Send(ctx context.Context, to string, message string) (*dto.SendMessageResponse, error) SendToMany(ctx context.Context, message string, to []string) (*dto.SendMessageResponse, error) RecordNPSResponse(ctx context.Context, input dto.NPSInput) (bool, error) Upload(ctx context.Context, input profileutils.UploadInput) (*profileutils.Upload, error) PhoneNumberVerificationCode(ctx context.Context, to string, code string, marketingMessage string) (bool, error) }
type QueryResolver ¶
type QueryResolver interface { GetLibraryContent(ctx context.Context) ([]*domain.GhostCMSPost, error) GetFaqsContent(ctx context.Context, flavour feedlib.Flavour) ([]*domain.GhostCMSPost, error) Notifications(ctx context.Context, registrationToken string, newerThan time.Time, limit int) ([]*dto.SavedNotification, error) GetFeed(ctx context.Context, flavour feedlib.Flavour, isAnonymous bool, persistent feedlib.BooleanFilter, status *feedlib.Status, visibility *feedlib.Visibility, expired *feedlib.BooleanFilter, filterParams *helpers.FilterParams) (*domain.Feed, error) Labels(ctx context.Context, flavour feedlib.Flavour) ([]string, error) UnreadPersistentItems(ctx context.Context, flavour feedlib.Flavour) (int, error) GenerateOtp(ctx context.Context, msisdn string, appID *string) (string, error) GenerateAndEmailOtp(ctx context.Context, msisdn string, email *string, appID *string) (string, error) GenerateRetryOtp(ctx context.Context, msisdn string, retryStep int, appID *string) (string, error) EmailVerificationOtp(ctx context.Context, email string) (string, error) ListNPSResponse(ctx context.Context) ([]*dto.NPSResponse, error) TwilioAccessToken(ctx context.Context) (*dto.AccessToken, error) FindUploadByID(ctx context.Context, id string) (*profileutils.Upload, error) }
type ResolverRoot ¶
type ResolverRoot interface { Mutation() MutationResolver Query() QueryResolver }
Click to show internal directories.
Click to hide internal directories.