generated

package
v0.0.0-...-d5841c9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

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 {
	FacebookCard struct {
		Description func(childComplexity int) int
		Image       func(childComplexity int) int
		Title       func(childComplexity int) int
		Type        func(childComplexity int) int
		URL         func(childComplexity int) int
	}

	Image struct {
		Alt         func(childComplexity int) int
		Caption     func(childComplexity int) int
		Description func(childComplexity int) int
		ID          func(childComplexity int) int
		Sizes       func(childComplexity int) int
		Slug        func(childComplexity int) int
		URL         func(childComplexity int) int
	}

	InitialSetupResponse struct {
		AccessToken  func(childComplexity int) int
		RefreshToken func(childComplexity int) int
		Staff        func(childComplexity int) int
	}

	Member struct {
		CreatedAt       func(childComplexity int) int
		Email           func(childComplexity int) int
		ID              func(childComplexity int) int
		IsEmailVerified func(childComplexity int) int
		Name            func(childComplexity int) int
		Password        func(childComplexity int) int
		Subscription    func(childComplexity int) int
		UpdatedAt       func(childComplexity int) int
	}

	MemberSubscription struct {
		CreatedAt   func(childComplexity int) int
		Description func(childComplexity int) int
		ID          func(childComplexity int) int
		Price       func(childComplexity int) int
		Title       func(childComplexity int) int
		UpdatedAt   func(childComplexity int) int
	}

	Mutation struct {
		InitialSetup               func(childComplexity int, input model.InitialSetupInput) int
		StaffAcceptInvite          func(childComplexity int, input model.StaffAcceptInviteInput) int
		StaffChangePassword        func(childComplexity int, input model.StaffChangePasswordInput) int
		StaffDelete                func(childComplexity int, input model.StaffDeleteInput) int
		StaffForgotPassword        func(childComplexity int, input model.StaffForgotPasswordInput) int
		StaffInvite                func(childComplexity int, input model.StaffInviteInput) int
		StaffLogin                 func(childComplexity int, input model.StaffLoginInput) int
		StaffLogout                func(childComplexity int) int
		StaffRefreshToken          func(childComplexity int, input model.StaffRefreshTokenInput) int
		StaffResetPassword         func(childComplexity int, input model.StaffResetPasswordInput) int
		StaffUpdate                func(childComplexity int, input model.StaffUpdateInput) int
		UpdateFacebookCardSettings func(childComplexity int, input model.UpdateFacebookCardSettingsInput) int
		UpdatePage                 func(childComplexity int, input model.UpdatePageInput) int
		UpdatePageStatus           func(childComplexity int, input model.UpdatePageStatusInput) int
		UpdatePost                 func(childComplexity int, input model.UpdatePostInput) int
		UpdatePostStatus           func(childComplexity int, input model.UpdatePostStatusInput) int
		UpdateSEOSettings          func(childComplexity int, input model.UpdateSEOSettingsInput) int
		UpdateSiteSettings         func(childComplexity int, input model.UpdateSiteSettingsInput) int
		UpdateTwitterCardSettings  func(childComplexity int, input model.UpdateTwitterCardSettingsInput) int
	}

	Page struct {
		Content       func(childComplexity int) int
		CreatedAt     func(childComplexity int) int
		Excerpt       func(childComplexity int) int
		FeaturedImage func(childComplexity int) int
		ID            func(childComplexity int) int
		PublishedAt   func(childComplexity int) int
		Seo           func(childComplexity int) int
		Slug          func(childComplexity int) int
		Title         func(childComplexity int) int
		UpdatedAt     func(childComplexity int) int
	}

	Post struct {
		Content       func(childComplexity int) int
		CreatedAt     func(childComplexity int) int
		Excerpt       func(childComplexity int) int
		FeaturedImage func(childComplexity int) int
		ID            func(childComplexity int) int
		IsFeatured    func(childComplexity int) int
		PostAccess    func(childComplexity int) int
		PublishedAt   func(childComplexity int) int
		Seo           func(childComplexity int) int
		Slug          func(childComplexity int) int
		Title         func(childComplexity int) int
		UpdatedAt     func(childComplexity int) int
	}

	Query struct {
		GetPage     func(childComplexity int, slug string) int
		GetPageByID func(childComplexity int, id string) int
		GetPost     func(childComplexity int, slug string) int
		GetPostByID func(childComplexity int, id string) int
		GetPosts    func(childComplexity int, page *int, perPage *int) int
		IsSiteSetup func(childComplexity int) int
		Settings    func(childComplexity int) int
	}

	SEO struct {
		Description func(childComplexity int) int
		Image       func(childComplexity int) int
		Title       func(childComplexity int) int
	}

	SiteSettings struct {
		BaseURL         func(childComplexity int) int
		CreatedAt       func(childComplexity int) int
		FacebookCard    func(childComplexity int) int
		ID              func(childComplexity int) int
		Seo             func(childComplexity int) int
		SiteDescription func(childComplexity int) int
		SiteName        func(childComplexity int) int
		SocialProfiles  func(childComplexity int) int
		Timezone        func(childComplexity int) int
		TwitterCard     func(childComplexity int) int
		UpdatedAt       func(childComplexity int) int
	}

	Size struct {
		Height func(childComplexity int) int
		URL    func(childComplexity int) int
		Width  func(childComplexity int) int
	}

	Sizes struct {
		Full        func(childComplexity int) int
		Large       func(childComplexity int) int
		Medium      func(childComplexity int) int
		MediumLarge func(childComplexity int) int
		Thumbnail   func(childComplexity int) int
	}

	SocialProfiles struct {
		Facebook func(childComplexity int) int
		Twitter  func(childComplexity int) int
	}

	Staff struct {
		CreatedAt     func(childComplexity int) int
		Email         func(childComplexity int) int
		EmailVerified func(childComplexity int) int
		ID            func(childComplexity int) int
		Name          func(childComplexity int) int
		Role          func(childComplexity int) int
		UpdatedAt     func(childComplexity int) int
	}

	StaffLoginResponse struct {
		AccessToken  func(childComplexity int) int
		RefreshToken func(childComplexity int) int
		Staff        func(childComplexity int) int
	}

	StaffRefreshTokenResponse struct {
		AccessToken  func(childComplexity int) int
		RefreshToken func(childComplexity int) int
	}

	Tag struct {
		CreatedAt   func(childComplexity int) int
		Description func(childComplexity int) int
		ID          func(childComplexity int) int
		Image       func(childComplexity int) int
		Slug        func(childComplexity int) int
		Title       func(childComplexity int) int
		UpdatedAt   func(childComplexity int) int
	}

	TwitterCard struct {
		Card        func(childComplexity int) int
		Creator     func(childComplexity int) int
		Description func(childComplexity int) int
		Image       func(childComplexity int) int
		Site        func(childComplexity int) int
		Title       func(childComplexity int) int
	}
}

type Config

type Config struct {
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type DirectiveRoot

type DirectiveRoot struct {
	HasStaffRole func(ctx context.Context, obj interface{}, next graphql.Resolver, role models.StaffRole) (res interface{}, err error)
	IsSignedIn   func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error)
}

type MutationResolver

type MutationResolver interface {
	InitialSetup(ctx context.Context, input model.InitialSetupInput) (*model.InitialSetupResponse, error)
	UpdatePageStatus(ctx context.Context, input model.UpdatePageStatusInput) (*model.Page, error)
	UpdatePage(ctx context.Context, input model.UpdatePageInput) (*model.Page, error)
	UpdatePostStatus(ctx context.Context, input model.UpdatePostStatusInput) (*model.Post, error)
	UpdatePost(ctx context.Context, input model.UpdatePostInput) (*model.Post, error)
	UpdateSEOSettings(ctx context.Context, input model.UpdateSEOSettingsInput) (*model.SiteSettings, error)
	UpdateSiteSettings(ctx context.Context, input model.UpdateSiteSettingsInput) (*model.SiteSettings, error)
	UpdateTwitterCardSettings(ctx context.Context, input model.UpdateTwitterCardSettingsInput) (*model.SiteSettings, error)
	UpdateFacebookCardSettings(ctx context.Context, input model.UpdateFacebookCardSettingsInput) (*model.SiteSettings, error)
	StaffLogin(ctx context.Context, input model.StaffLoginInput) (*model.StaffLoginResponse, error)
	StaffInvite(ctx context.Context, input model.StaffInviteInput) (*models.StaffMember, error)
	StaffAcceptInvite(ctx context.Context, input model.StaffAcceptInviteInput) (*models.StaffMember, error)
	StaffUpdate(ctx context.Context, input model.StaffUpdateInput) (*models.StaffMember, error)
	StaffDelete(ctx context.Context, input model.StaffDeleteInput) (*models.StaffMember, error)
	StaffChangePassword(ctx context.Context, input model.StaffChangePasswordInput) (*models.StaffMember, error)
	StaffResetPassword(ctx context.Context, input model.StaffResetPasswordInput) (*models.StaffMember, error)
	StaffForgotPassword(ctx context.Context, input model.StaffForgotPasswordInput) (*models.StaffMember, error)
	StaffLogout(ctx context.Context) (bool, error)
	StaffRefreshToken(ctx context.Context, input model.StaffRefreshTokenInput) (*model.StaffLoginResponse, error)
}

type QueryResolver

type QueryResolver interface {
	IsSiteSetup(ctx context.Context) (bool, error)
	GetPage(ctx context.Context, slug string) (*model.Page, error)
	GetPageByID(ctx context.Context, id string) (*model.Page, error)
	GetPosts(ctx context.Context, page *int, perPage *int) ([]*model.Post, error)
	GetPost(ctx context.Context, slug string) (*model.Post, error)
	GetPostByID(ctx context.Context, id string) (*model.Post, error)
	Settings(ctx context.Context) (*model.SiteSettings, error)
}

type ResolverRoot

type ResolverRoot interface {
	Mutation() MutationResolver
	Query() QueryResolver
	Staff() StaffResolver
}

type StaffResolver

type StaffResolver interface {
	Role(ctx context.Context, obj *models.StaffMember) (models.StaffRole, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL