Documentation ¶
Overview ¶
Package graphapi is the graph api package
Index ¶
- Constants
- Variables
- func CreateEvent(c *ent.Client, m ent.Mutation, v ent.Value)
- func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
- func TrackedEvent(m ent.Mutation) bool
- func WithEvents(c *ent.Client)
- func WithTransactions(h *handler.Server, c *ent.Client)
- type ComplexityRoot
- type Config
- type CreateGroupInputResolver
- type CreateOauthProviderInputResolver
- type CreateOrganizationInputResolver
- type DirectiveRoot
- type Dummy
- type EntitlementCreatePayload
- type EntitlementDeletePayload
- type EntitlementUpdatePayload
- type GroupCreatePayload
- type GroupDeletePayload
- type GroupMembershipCreatePayload
- type GroupMembershipDeletePayload
- type GroupMembershipUpdatePayload
- type GroupSettingCreatePayload
- type GroupSettingDeletePayload
- type GroupSettingUpdatePayload
- type GroupUpdatePayload
- type Handler
- type IntegrationCreatePayload
- type IntegrationDeletePayload
- type IntegrationUpdatePayload
- type InviteCreatePayload
- type InviteDeletePayload
- type InviteUpdatePayload
- type MutationResolver
- type OauthProviderCreatePayload
- type OauthProviderDeletePayload
- type OauthProviderResolver
- type OauthProviderUpdatePayload
- type OauthProviderWhereInputResolver
- type OhAuthTooTokenCreatePayload
- type OhAuthTooTokenDeletePayload
- type OhAuthTooTokenUpdatePayload
- type OrgMembershipCreatePayload
- type OrgMembershipDeletePayload
- type OrgMembershipUpdatePayload
- type OrganizationCreatePayload
- type OrganizationDeletePayload
- type OrganizationSettingCreatePayload
- type OrganizationSettingDeletePayload
- type OrganizationSettingUpdatePayload
- type OrganizationUpdatePayload
- type PermissionDeniedError
- type PersonalAccessTokenCreatePayload
- type PersonalAccessTokenDeletePayload
- type PersonalAccessTokenUpdatePayload
- type QueryResolver
- type Resolver
- func (r *Resolver) CreateGroupInput() CreateGroupInputResolver
- func (r *Resolver) CreateOauthProviderInput() CreateOauthProviderInputResolver
- func (r *Resolver) CreateOrganizationInput() CreateOrganizationInputResolver
- func (r *Resolver) Handler(withPlayground bool) *Handler
- func (r *Resolver) Mutation() MutationResolver
- func (r *Resolver) OauthProvider() OauthProviderResolver
- func (r *Resolver) OauthProviderWhereInput() OauthProviderWhereInputResolver
- func (r *Resolver) Query() QueryResolver
- func (r *Resolver) Subscription() SubscriptionResolver
- func (r *Resolver) UpdateGroupInput() UpdateGroupInputResolver
- func (r *Resolver) UpdateOauthProviderInput() UpdateOauthProviderInputResolver
- func (r *Resolver) UpdateOrganizationInput() UpdateOrganizationInputResolver
- func (r *Resolver) UpdateTFASettingsInput() UpdateTFASettingsInputResolver
- func (r Resolver) WithLogger(l *zap.SugaredLogger) *Resolver
- type ResolverRoot
- type SubscriberCreatePayload
- type SubscriberDeletePayload
- type SubscriberUpdatePayload
- type Subscription
- type SubscriptionResolver
- type TFASettingsCreatePayload
- type TFASettingsUpdatePayload
- type UpdateGroupInputResolver
- type UpdateOauthProviderInputResolver
- type UpdateOrganizationInputResolver
- type UpdateTFASettingsInputResolver
- type UserCreatePayload
- type UserDeletePayload
- type UserSettingUpdatePayload
- type UserUpdatePayload
Constants ¶
const ( ActionGet = "get" ActionUpdate = "update" ActionDelete = "delete" ActionCreate = "create" )
Variables ¶
var ( // ErrInternalServerError is returned when an internal error occurs. ErrInternalServerError = errors.New("internal server error") // ErrPermissionDenied is returned when the user is not authorized to perform the requested query or mutation ErrPermissionDenied = errors.New("you are not authorized to perform this action") // ErrCascadeDelete is returned when an error occurs while performing cascade deletes on associated objects ErrCascadeDelete = errors.New("error deleting associated objects") )
Functions ¶
func CreateEvent ¶ added in v0.4.2
CreateEvent creates an event for the mutation with the properties
func NewExecutableSchema ¶
func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
func TrackedEvent ¶ added in v0.4.2
trackedEvent returns true if the mutation should be a tracked event for now, lets just track high level create and delete events TODO: make these configuratable by integration
func WithEvents ¶ added in v0.4.2
Types ¶
type ComplexityRoot ¶
type ComplexityRoot struct { Dummy struct { Done func(childComplexity int) int ID func(childComplexity int) int Text func(childComplexity int) int } Entitlement struct { Cancelled func(childComplexity int) int CreatedAt func(childComplexity int) int CreatedBy func(childComplexity int) int DeletedAt func(childComplexity int) int DeletedBy func(childComplexity int) int Expires func(childComplexity int) int ExpiresAt func(childComplexity int) int ExternalCustomerID func(childComplexity int) int ExternalSubscriptionID func(childComplexity int) int ID func(childComplexity int) int Owner func(childComplexity int) int Tier func(childComplexity int) int UpdatedAt func(childComplexity int) int UpdatedBy func(childComplexity int) int } EntitlementConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } EntitlementCreatePayload struct { Entitlement func(childComplexity int) int } EntitlementDeletePayload struct { DeletedID func(childComplexity int) int } EntitlementEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } EntitlementUpdatePayload struct { Entitlement func(childComplexity int) int } Group struct { CreatedAt func(childComplexity int) int CreatedBy func(childComplexity int) int DeletedAt func(childComplexity int) int DeletedBy func(childComplexity int) int Description func(childComplexity int) int DisplayName func(childComplexity int) int GravatarLogoURL func(childComplexity int) int ID func(childComplexity int) int LogoURL func(childComplexity int) int Members func(childComplexity int) int Name func(childComplexity int) int Owner func(childComplexity int) int Setting func(childComplexity int) int UpdatedAt func(childComplexity int) int UpdatedBy func(childComplexity int) int Users func(childComplexity int) int } GroupConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } GroupCreatePayload struct { Group func(childComplexity int) int } GroupDeletePayload struct { DeletedID func(childComplexity int) int } GroupEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } GroupMembership struct { CreatedAt func(childComplexity int) int CreatedBy func(childComplexity int) int DeletedAt func(childComplexity int) int DeletedBy func(childComplexity int) int Group func(childComplexity int) int GroupID func(childComplexity int) int ID func(childComplexity int) int Role func(childComplexity int) int UpdatedAt func(childComplexity int) int UpdatedBy func(childComplexity int) int User func(childComplexity int) int UserID func(childComplexity int) int } GroupMembershipConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } GroupMembershipCreatePayload struct { GroupMembership func(childComplexity int) int } GroupMembershipDeletePayload struct { DeletedID func(childComplexity int) int } GroupMembershipEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } GroupMembershipUpdatePayload struct { GroupMembership func(childComplexity int) int } GroupSetting struct { CreatedAt func(childComplexity int) int CreatedBy func(childComplexity int) int DeletedAt func(childComplexity int) int DeletedBy func(childComplexity int) int Group func(childComplexity int) int GroupID func(childComplexity int) int ID func(childComplexity int) int JoinPolicy func(childComplexity int) int SyncToGithub func(childComplexity int) int SyncToSlack func(childComplexity int) int Tags func(childComplexity int) int UpdatedAt func(childComplexity int) int UpdatedBy func(childComplexity int) int Visibility func(childComplexity int) int } GroupSettingConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } GroupSettingCreatePayload struct { GroupSetting func(childComplexity int) int } GroupSettingDeletePayload struct { DeletedID func(childComplexity int) int } GroupSettingEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } GroupSettingUpdatePayload struct { GroupSetting func(childComplexity int) int } GroupUpdatePayload struct { Group func(childComplexity int) int } Integration struct { CreatedAt func(childComplexity int) int CreatedBy func(childComplexity int) int DeletedAt func(childComplexity int) int DeletedBy func(childComplexity int) int Description func(childComplexity int) int ID func(childComplexity int) int Kind func(childComplexity int) int Name func(childComplexity int) int Owner func(childComplexity int) int OwnerID func(childComplexity int) int SecretName func(childComplexity int) int UpdatedAt func(childComplexity int) int UpdatedBy func(childComplexity int) int } IntegrationConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } IntegrationCreatePayload struct { Integration func(childComplexity int) int } IntegrationDeletePayload struct { DeletedID func(childComplexity int) int } IntegrationEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } IntegrationUpdatePayload struct { Integration func(childComplexity int) int } Invite struct { CreatedAt func(childComplexity int) int CreatedBy func(childComplexity int) int DeletedAt func(childComplexity int) int DeletedBy func(childComplexity int) int Expires func(childComplexity int) int ID func(childComplexity int) int Owner func(childComplexity int) int OwnerID func(childComplexity int) int Recipient func(childComplexity int) int RequestorID func(childComplexity int) int Role func(childComplexity int) int SendAttempts func(childComplexity int) int Status func(childComplexity int) int UpdatedAt func(childComplexity int) int UpdatedBy func(childComplexity int) int } InviteConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } InviteCreatePayload struct { Invite func(childComplexity int) int } InviteDeletePayload struct { DeletedID func(childComplexity int) int } InviteEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } InviteUpdatePayload struct { Invite func(childComplexity int) int } Mutation struct { CreateEntitlement func(childComplexity int, input generated.CreateEntitlementInput) int CreateGroup func(childComplexity int, input generated.CreateGroupInput) int CreateGroupMembership func(childComplexity int, input generated.CreateGroupMembershipInput) int CreateIntegration func(childComplexity int, input generated.CreateIntegrationInput) int CreateInvite func(childComplexity int, input generated.CreateInviteInput) int CreateOauthProvider func(childComplexity int, input generated.CreateOauthProviderInput) int CreateOhAuthTooToken func(childComplexity int, input generated.CreateOhAuthTooTokenInput) int CreateOrgMembership func(childComplexity int, input generated.CreateOrgMembershipInput) int CreateOrganization func(childComplexity int, input generated.CreateOrganizationInput) int CreatePersonalAccessToken func(childComplexity int, input generated.CreatePersonalAccessTokenInput) int CreateSubscriber func(childComplexity int, input generated.CreateSubscriberInput) int CreateTFASettings func(childComplexity int, input generated.CreateTFASettingsInput) int CreateUser func(childComplexity int, input generated.CreateUserInput) int DeleteEntitlement func(childComplexity int, id string) int DeleteGroup func(childComplexity int, id string) int DeleteGroupMembership func(childComplexity int, id string) int DeleteIntegration func(childComplexity int, id string) int DeleteInvite func(childComplexity int, id string) int DeleteOauthProvider func(childComplexity int, id string) int DeleteOhAuthTooToken func(childComplexity int, id string) int DeleteOrgMembership func(childComplexity int, id string) int DeleteOrganization func(childComplexity int, id string) int DeletePersonalAccessToken func(childComplexity int, id string) int DeleteSubscriber func(childComplexity int, id string) int DeleteUser func(childComplexity int, id string) int PostMessageTo func(childComplexity int, subscriber string, content string) int UpdateEntitlement func(childComplexity int, id string, input generated.UpdateEntitlementInput) int UpdateGroup func(childComplexity int, id string, input generated.UpdateGroupInput) int UpdateGroupMembership func(childComplexity int, id string, input generated.UpdateGroupMembershipInput) int UpdateGroupSetting func(childComplexity int, id string, input generated.UpdateGroupSettingInput) int UpdateIntegration func(childComplexity int, id string, input generated.UpdateIntegrationInput) int UpdateInvite func(childComplexity int, id string, input generated.UpdateInviteInput) int UpdateOauthProvider func(childComplexity int, id string, input generated.UpdateOauthProviderInput) int UpdateOhAuthTooToken func(childComplexity int, id string, input generated.UpdateOhAuthTooTokenInput) int UpdateOrgMembership func(childComplexity int, id string, input generated.UpdateOrgMembershipInput) int UpdateOrganization func(childComplexity int, id string, input generated.UpdateOrganizationInput) int UpdateOrganizationSetting func(childComplexity int, id string, input generated.UpdateOrganizationSettingInput) int UpdatePersonalAccessToken func(childComplexity int, id string, input generated.UpdatePersonalAccessTokenInput) int UpdateSubscriber func(childComplexity int, id string, input generated.UpdateSubscriberInput) int UpdateTFASettings func(childComplexity int, input generated.UpdateTFASettingsInput) int UpdateUser func(childComplexity int, id string, input generated.UpdateUserInput) int UpdateUserSetting func(childComplexity int, id string, input generated.UpdateUserSettingInput) int } OauthProvider struct { AuthStyle func(childComplexity int) int AuthURL func(childComplexity int) int ClientID func(childComplexity int) int ClientSecret func(childComplexity int) int CreatedAt func(childComplexity int) int CreatedBy func(childComplexity int) int DeletedAt func(childComplexity int) int DeletedBy func(childComplexity int) int ID func(childComplexity int) int InfoURL func(childComplexity int) int Name func(childComplexity int) int Owner func(childComplexity int) int RedirectURL func(childComplexity int) int Scopes func(childComplexity int) int TokenURL func(childComplexity int) int UpdatedAt func(childComplexity int) int UpdatedBy func(childComplexity int) int } OauthProviderConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } OauthProviderCreatePayload struct { OauthProvider func(childComplexity int) int } OauthProviderDeletePayload struct { DeletedID func(childComplexity int) int } OauthProviderEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } OauthProviderUpdatePayload struct { OauthProvider func(childComplexity int) int } OhAuthTooToken struct { ClaimsEmail func(childComplexity int) int ClaimsEmailVerified func(childComplexity int) int ClaimsGroups func(childComplexity int) int ClaimsPreferredUsername func(childComplexity int) int ClaimsUserID func(childComplexity int) int ClaimsUsername func(childComplexity int) int ClientID func(childComplexity int) int ConnectorData func(childComplexity int) int ConnectorID func(childComplexity int) int ID func(childComplexity int) int LastUsed func(childComplexity int) int Nonce func(childComplexity int) int Scopes func(childComplexity int) int } OhAuthTooTokenConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } OhAuthTooTokenCreatePayload struct { OhAuthTooToken func(childComplexity int) int } OhAuthTooTokenDeletePayload struct { DeletedID func(childComplexity int) int } OhAuthTooTokenEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } OhAuthTooTokenUpdatePayload struct { OhAuthTooToken func(childComplexity int) int } OrgMembership struct { CreatedAt func(childComplexity int) int CreatedBy func(childComplexity int) int DeletedAt func(childComplexity int) int DeletedBy func(childComplexity int) int ID func(childComplexity int) int Organization func(childComplexity int) int OrganizationID func(childComplexity int) int Role func(childComplexity int) int UpdatedAt func(childComplexity int) int UpdatedBy func(childComplexity int) int User func(childComplexity int) int UserID func(childComplexity int) int } OrgMembershipConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } OrgMembershipCreatePayload struct { OrgMembership func(childComplexity int) int } OrgMembershipDeletePayload struct { DeletedID func(childComplexity int) int } OrgMembershipEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } OrgMembershipUpdatePayload struct { OrgMembership func(childComplexity int) int } Organization struct { AvatarRemoteURL func(childComplexity int) int Children func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.OrganizationOrder, where *generated.OrganizationWhereInput) int CreatedAt func(childComplexity int) int CreatedBy func(childComplexity int) int DedicatedDb func(childComplexity int) int DeletedAt func(childComplexity int) int DeletedBy func(childComplexity int) int Description func(childComplexity int) int DisplayName func(childComplexity int) int Entitlements func(childComplexity int) int Groups func(childComplexity int) int ID func(childComplexity int) int Integrations func(childComplexity int) int Invites func(childComplexity int) int Members func(childComplexity int) int Name func(childComplexity int) int Oauthprovider func(childComplexity int) int Parent func(childComplexity int) int PersonalAccessTokens func(childComplexity int) int PersonalOrg func(childComplexity int) int Setting func(childComplexity int) int Subscribers func(childComplexity int) int UpdatedAt func(childComplexity int) int UpdatedBy func(childComplexity int) int Users func(childComplexity int) int } OrganizationConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } OrganizationCreatePayload struct { Organization func(childComplexity int) int } OrganizationDeletePayload struct { DeletedID func(childComplexity int) int } OrganizationEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } OrganizationSetting struct { BillingAddress func(childComplexity int) int BillingContact func(childComplexity int) int BillingEmail func(childComplexity int) int BillingPhone func(childComplexity int) int CreatedAt func(childComplexity int) int CreatedBy func(childComplexity int) int DeletedAt func(childComplexity int) int DeletedBy func(childComplexity int) int Domains func(childComplexity int) int GeoLocation func(childComplexity int) int ID func(childComplexity int) int Organization func(childComplexity int) int OrganizationID func(childComplexity int) int Tags func(childComplexity int) int TaxIdentifier func(childComplexity int) int UpdatedAt func(childComplexity int) int UpdatedBy func(childComplexity int) int } OrganizationSettingConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } OrganizationSettingCreatePayload struct { OrganizationSetting func(childComplexity int) int } OrganizationSettingDeletePayload struct { DeletedID func(childComplexity int) int } OrganizationSettingEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } OrganizationSettingUpdatePayload struct { OrganizationSetting func(childComplexity int) int } OrganizationUpdatePayload struct { Organization func(childComplexity int) int } PageInfo struct { EndCursor func(childComplexity int) int HasNextPage func(childComplexity int) int HasPreviousPage func(childComplexity int) int StartCursor func(childComplexity int) int } PersonalAccessToken struct { CreatedAt func(childComplexity int) int CreatedBy func(childComplexity int) int DeletedAt func(childComplexity int) int DeletedBy func(childComplexity int) int Description func(childComplexity int) int ExpiresAt func(childComplexity int) int ID func(childComplexity int) int LastUsedAt func(childComplexity int) int Name func(childComplexity int) int Organizations func(childComplexity int) int Owner func(childComplexity int) int Scopes func(childComplexity int) int Token func(childComplexity int) int UpdatedAt func(childComplexity int) int UpdatedBy func(childComplexity int) int } PersonalAccessTokenConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } PersonalAccessTokenCreatePayload struct { PersonalAccessToken func(childComplexity int) int } PersonalAccessTokenDeletePayload struct { DeletedID func(childComplexity int) int } PersonalAccessTokenEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } PersonalAccessTokenUpdatePayload struct { PersonalAccessToken func(childComplexity int) int } Query struct { Entitlement func(childComplexity int, id string) int Entitlements func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.EntitlementWhereInput) int Group func(childComplexity int, id string) int GroupMembership func(childComplexity int, id string) int GroupMemberships func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.GroupMembershipWhereInput) int GroupSetting func(childComplexity int, id string) int GroupSettings func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.GroupSettingWhereInput) int Groups func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.GroupOrder, where *generated.GroupWhereInput) int Integration func(childComplexity int, id string) int Integrations func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.IntegrationOrder, where *generated.IntegrationWhereInput) int Invite func(childComplexity int, id string) int Invites func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.InviteWhereInput) int Node func(childComplexity int, id string) int Nodes func(childComplexity int, ids []string) int OauthProvider func(childComplexity int, id string) int OauthProviders func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.OauthProviderWhereInput) int OhAuthTooToken func(childComplexity int, id string) int OhAuthTooTokens func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.OhAuthTooTokenWhereInput) int OrgMembership func(childComplexity int, id string) int OrgMemberships func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.OrgMembershipWhereInput) int Organization func(childComplexity int, id string) int OrganizationSetting func(childComplexity int, id string) int OrganizationSettings func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.OrganizationSettingWhereInput) int Organizations func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.OrganizationOrder, where *generated.OrganizationWhereInput) int PersonalAccessToken func(childComplexity int, id string) int PersonalAccessTokens func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.PersonalAccessTokenWhereInput) int Subscriber func(childComplexity int, id string) int Subscribers func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.SubscriberWhereInput) int TfaSettings func(childComplexity int, id *string) int TfaSettingsSlice func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.TFASettingsWhereInput) int User func(childComplexity int, id string) int UserSetting func(childComplexity int, id string) int UserSettings func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.UserSettingWhereInput) int Users func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.UserOrder, where *generated.UserWhereInput) int } Subscriber struct { Active func(childComplexity int) int CreatedAt func(childComplexity int) int CreatedBy func(childComplexity int) int DeletedAt func(childComplexity int) int DeletedBy func(childComplexity int) int Email func(childComplexity int) int ID func(childComplexity int) int Owner func(childComplexity int) int OwnerID func(childComplexity int) int PhoneNumber func(childComplexity int) int UpdatedAt func(childComplexity int) int UpdatedBy func(childComplexity int) int VerifiedEmail func(childComplexity int) int VerifiedPhone func(childComplexity int) int } SubscriberConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } SubscriberCreatePayload struct { Subscriber func(childComplexity int) int } SubscriberDeletePayload struct { DeletedID func(childComplexity int) int } SubscriberEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } SubscriberUpdatePayload struct { Subscriber func(childComplexity int) int } Subscription struct { Subscribe func(childComplexity int, subscriber string) int } TFASettings struct { CreatedAt func(childComplexity int) int CreatedBy func(childComplexity int) int DeletedAt func(childComplexity int) int DeletedBy func(childComplexity int) int ID func(childComplexity int) int Owner func(childComplexity int) int RecoveryCodes func(childComplexity int) int TfaSecret func(childComplexity int) int TotpAllowed func(childComplexity int) int UpdatedAt func(childComplexity int) int UpdatedBy func(childComplexity int) int Verified func(childComplexity int) int } TFASettingsConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } TFASettingsCreatePayload struct { TfaSettings func(childComplexity int) int } TFASettingsEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } TFASettingsUpdatePayload struct { TfaSettings func(childComplexity int) int } User struct { AuthProvider func(childComplexity int) int AvatarLocalFile func(childComplexity int) int AvatarRemoteURL func(childComplexity int) int AvatarUpdatedAt func(childComplexity int) int CreatedAt func(childComplexity int) int CreatedBy func(childComplexity int) int DeletedAt func(childComplexity int) int DeletedBy func(childComplexity int) int DisplayName func(childComplexity int) int Email func(childComplexity int) int FirstName func(childComplexity int) int GroupMemberships func(childComplexity int) int Groups func(childComplexity int) int ID func(childComplexity int) int LastName func(childComplexity int) int LastSeen func(childComplexity int) int OrgMemberships func(childComplexity int) int Organizations func(childComplexity int) int PersonalAccessTokens func(childComplexity int) int Setting func(childComplexity int) int Sub func(childComplexity int) int TfaSettings func(childComplexity int) int UpdatedAt func(childComplexity int) int UpdatedBy func(childComplexity int) int } UserConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } UserCreatePayload struct { User func(childComplexity int) int } UserDeletePayload struct { DeletedID func(childComplexity int) int } UserEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } UserSetting struct { CreatedAt func(childComplexity int) int CreatedBy func(childComplexity int) int DefaultOrg func(childComplexity int) int DeletedAt func(childComplexity int) int DeletedBy func(childComplexity int) int EmailConfirmed func(childComplexity int) int ID func(childComplexity int) int IsTfaEnabled func(childComplexity int) int IsWebauthnAllowed func(childComplexity int) int Locked func(childComplexity int) int SilencedAt func(childComplexity int) int Status func(childComplexity int) int SuspendedAt func(childComplexity int) int Tags func(childComplexity int) int UpdatedAt func(childComplexity int) int UpdatedBy func(childComplexity int) int User func(childComplexity int) int UserID func(childComplexity int) int } UserSettingConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } UserSettingEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } UserSettingUpdatePayload struct { UserSetting func(childComplexity int) int } UserUpdatePayload struct { User func(childComplexity int) int } }
type Config ¶
type Config struct { Schema *ast.Schema Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type CreateGroupInputResolver ¶ added in v0.2.5
type CreateGroupInputResolver interface {
CreateGroupSettings(ctx context.Context, obj *generated.CreateGroupInput, data *generated.CreateGroupSettingInput) error
}
type CreateOrganizationInputResolver ¶ added in v0.2.5
type CreateOrganizationInputResolver interface {
CreateOrgSettings(ctx context.Context, obj *generated.CreateOrganizationInput, data *generated.CreateOrganizationSettingInput) error
}
type DirectiveRoot ¶
type DirectiveRoot struct { }
type EntitlementCreatePayload ¶
type EntitlementCreatePayload struct { // Created entitlement Entitlement *generated.Entitlement `json:"entitlement"` }
Return response for createEntitlement mutation
type EntitlementDeletePayload ¶
type EntitlementDeletePayload struct { // Deleted entitlement ID DeletedID string `json:"deletedID"` }
Return response for deleteEntitlement mutation
type EntitlementUpdatePayload ¶
type EntitlementUpdatePayload struct { // Updated entitlement Entitlement *generated.Entitlement `json:"entitlement"` }
Return response for updateEntitlement mutation
type GroupCreatePayload ¶
Return response for createGroup mutation
type GroupDeletePayload ¶
type GroupDeletePayload struct { // Deleted group ID DeletedID string `json:"deletedID"` }
Return response for deleteGroup mutation
type GroupMembershipCreatePayload ¶ added in v0.2.4
type GroupMembershipCreatePayload struct { // Created groupMembership GroupMembership *generated.GroupMembership `json:"groupMembership"` }
Return response for createGroupMembership mutation
type GroupMembershipDeletePayload ¶ added in v0.2.4
type GroupMembershipDeletePayload struct { // Deleted groupMembership ID DeletedID string `json:"deletedID"` }
Return response for deleteGroupMembership mutation
type GroupMembershipUpdatePayload ¶ added in v0.2.4
type GroupMembershipUpdatePayload struct { // Updated groupMembership GroupMembership *generated.GroupMembership `json:"groupMembership"` }
Return response for updateGroupMembership mutation
type GroupSettingCreatePayload ¶
type GroupSettingCreatePayload struct { // Created groupSetting GroupSetting *generated.GroupSetting `json:"groupSetting"` }
Return response for createGroupSetting mutation
type GroupSettingDeletePayload ¶
type GroupSettingDeletePayload struct { // Deleted groupSetting ID DeletedID string `json:"deletedID"` }
Return response for deleteGroupSetting mutation
type GroupSettingUpdatePayload ¶
type GroupSettingUpdatePayload struct { // Updated groupSetting GroupSetting *generated.GroupSetting `json:"groupSetting"` }
Return response for updateGroupSetting mutation
type GroupUpdatePayload ¶
Return response for updateGroup mutation
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler is an http handler wrapping a Resolver
func (*Handler) Handler ¶
func (h *Handler) Handler() http.HandlerFunc
Handler returns the http.HandlerFunc for the GraphAPI
type IntegrationCreatePayload ¶
type IntegrationCreatePayload struct { // Created integration Integration *generated.Integration `json:"integration"` }
Return response for createIntegration mutation
type IntegrationDeletePayload ¶
type IntegrationDeletePayload struct { // Deleted integration ID DeletedID string `json:"deletedID"` }
Return response for deleteIntegration mutation
type IntegrationUpdatePayload ¶
type IntegrationUpdatePayload struct { // Updated integration Integration *generated.Integration `json:"integration"` }
Return response for updateIntegration mutation
type InviteCreatePayload ¶ added in v0.2.6
Return response for createInvite mutation
type InviteDeletePayload ¶ added in v0.2.6
type InviteDeletePayload struct { // Deleted invite ID DeletedID string `json:"deletedID"` }
Return response for deleteInvite mutation
type InviteUpdatePayload ¶ added in v0.2.6
Return response for updateInvite mutation
type MutationResolver ¶
type MutationResolver interface { CreateEntitlement(ctx context.Context, input generated.CreateEntitlementInput) (*EntitlementCreatePayload, error) UpdateEntitlement(ctx context.Context, id string, input generated.UpdateEntitlementInput) (*EntitlementUpdatePayload, error) DeleteEntitlement(ctx context.Context, id string) (*EntitlementDeletePayload, error) CreateGroup(ctx context.Context, input generated.CreateGroupInput) (*GroupCreatePayload, error) UpdateGroup(ctx context.Context, id string, input generated.UpdateGroupInput) (*GroupUpdatePayload, error) DeleteGroup(ctx context.Context, id string) (*GroupDeletePayload, error) CreateGroupMembership(ctx context.Context, input generated.CreateGroupMembershipInput) (*GroupMembershipCreatePayload, error) UpdateGroupMembership(ctx context.Context, id string, input generated.UpdateGroupMembershipInput) (*GroupMembershipUpdatePayload, error) DeleteGroupMembership(ctx context.Context, id string) (*GroupMembershipDeletePayload, error) UpdateGroupSetting(ctx context.Context, id string, input generated.UpdateGroupSettingInput) (*GroupSettingUpdatePayload, error) CreateIntegration(ctx context.Context, input generated.CreateIntegrationInput) (*IntegrationCreatePayload, error) UpdateIntegration(ctx context.Context, id string, input generated.UpdateIntegrationInput) (*IntegrationUpdatePayload, error) DeleteIntegration(ctx context.Context, id string) (*IntegrationDeletePayload, error) CreateInvite(ctx context.Context, input generated.CreateInviteInput) (*InviteCreatePayload, error) UpdateInvite(ctx context.Context, id string, input generated.UpdateInviteInput) (*InviteUpdatePayload, error) DeleteInvite(ctx context.Context, id string) (*InviteDeletePayload, error) CreateOauthProvider(ctx context.Context, input generated.CreateOauthProviderInput) (*OauthProviderCreatePayload, error) UpdateOauthProvider(ctx context.Context, id string, input generated.UpdateOauthProviderInput) (*OauthProviderUpdatePayload, error) DeleteOauthProvider(ctx context.Context, id string) (*OauthProviderDeletePayload, error) CreateOhAuthTooToken(ctx context.Context, input generated.CreateOhAuthTooTokenInput) (*OhAuthTooTokenCreatePayload, error) UpdateOhAuthTooToken(ctx context.Context, id string, input generated.UpdateOhAuthTooTokenInput) (*OhAuthTooTokenUpdatePayload, error) DeleteOhAuthTooToken(ctx context.Context, id string) (*OhAuthTooTokenDeletePayload, error) CreateOrganization(ctx context.Context, input generated.CreateOrganizationInput) (*OrganizationCreatePayload, error) UpdateOrganization(ctx context.Context, id string, input generated.UpdateOrganizationInput) (*OrganizationUpdatePayload, error) DeleteOrganization(ctx context.Context, id string) (*OrganizationDeletePayload, error) UpdateOrganizationSetting(ctx context.Context, id string, input generated.UpdateOrganizationSettingInput) (*OrganizationSettingUpdatePayload, error) CreateOrgMembership(ctx context.Context, input generated.CreateOrgMembershipInput) (*OrgMembershipCreatePayload, error) UpdateOrgMembership(ctx context.Context, id string, input generated.UpdateOrgMembershipInput) (*OrgMembershipUpdatePayload, error) DeleteOrgMembership(ctx context.Context, id string) (*OrgMembershipDeletePayload, error) CreatePersonalAccessToken(ctx context.Context, input generated.CreatePersonalAccessTokenInput) (*PersonalAccessTokenCreatePayload, error) UpdatePersonalAccessToken(ctx context.Context, id string, input generated.UpdatePersonalAccessTokenInput) (*PersonalAccessTokenUpdatePayload, error) DeletePersonalAccessToken(ctx context.Context, id string) (*PersonalAccessTokenDeletePayload, error) CreateSubscriber(ctx context.Context, input generated.CreateSubscriberInput) (*SubscriberCreatePayload, error) UpdateSubscriber(ctx context.Context, id string, input generated.UpdateSubscriberInput) (*SubscriberUpdatePayload, error) DeleteSubscriber(ctx context.Context, id string) (*SubscriberDeletePayload, error) CreateTFASettings(ctx context.Context, input generated.CreateTFASettingsInput) (*TFASettingsCreatePayload, error) UpdateTFASettings(ctx context.Context, input generated.UpdateTFASettingsInput) (*TFASettingsUpdatePayload, error) CreateUser(ctx context.Context, input generated.CreateUserInput) (*UserCreatePayload, error) UpdateUser(ctx context.Context, id string, input generated.UpdateUserInput) (*UserUpdatePayload, error) DeleteUser(ctx context.Context, id string) (*UserDeletePayload, error) UpdateUserSetting(ctx context.Context, id string, input generated.UpdateUserSettingInput) (*UserSettingUpdatePayload, error) PostMessageTo(ctx context.Context, subscriber string, content string) (string, error) }
type OauthProviderCreatePayload ¶
type OauthProviderCreatePayload struct { // Created oauthProvider OauthProvider *generated.OauthProvider `json:"oauthProvider"` }
Return response for createOauthProvider mutation
type OauthProviderDeletePayload ¶
type OauthProviderDeletePayload struct { // Deleted oauthProvider ID DeletedID string `json:"deletedID"` }
Return response for deleteOauthProvider mutation
type OauthProviderResolver ¶
type OauthProviderUpdatePayload ¶
type OauthProviderUpdatePayload struct { // Updated oauthProvider OauthProvider *generated.OauthProvider `json:"oauthProvider"` }
Return response for updateOauthProvider mutation
type OauthProviderWhereInputResolver ¶
type OauthProviderWhereInputResolver interface { AuthStyle(ctx context.Context, obj *generated.OauthProviderWhereInput, data *int) error AuthStyleNeq(ctx context.Context, obj *generated.OauthProviderWhereInput, data *int) error AuthStyleIn(ctx context.Context, obj *generated.OauthProviderWhereInput, data []int) error AuthStyleNotIn(ctx context.Context, obj *generated.OauthProviderWhereInput, data []int) error AuthStyleGt(ctx context.Context, obj *generated.OauthProviderWhereInput, data *int) error AuthStyleGte(ctx context.Context, obj *generated.OauthProviderWhereInput, data *int) error AuthStyleLt(ctx context.Context, obj *generated.OauthProviderWhereInput, data *int) error AuthStyleLte(ctx context.Context, obj *generated.OauthProviderWhereInput, data *int) error }
type OhAuthTooTokenCreatePayload ¶
type OhAuthTooTokenCreatePayload struct { // Created ohAuthTooToken OhAuthTooToken *generated.OhAuthTooToken `json:"ohAuthTooToken"` }
Return response for createOhAuthTooToken mutation
type OhAuthTooTokenDeletePayload ¶
type OhAuthTooTokenDeletePayload struct { // Deleted ohAuthTooToken ID DeletedID string `json:"deletedID"` }
Return response for deleteOhAuthTooToken mutation
type OhAuthTooTokenUpdatePayload ¶
type OhAuthTooTokenUpdatePayload struct { // Updated ohAuthTooToken OhAuthTooToken *generated.OhAuthTooToken `json:"ohAuthTooToken"` }
Return response for updateOhAuthTooToken mutation
type OrgMembershipCreatePayload ¶ added in v0.2.4
type OrgMembershipCreatePayload struct { // Created orgMembership OrgMembership *generated.OrgMembership `json:"orgMembership"` }
Return response for createOrgMembership mutation
type OrgMembershipDeletePayload ¶ added in v0.2.4
type OrgMembershipDeletePayload struct { // Deleted orgMembership ID DeletedID string `json:"deletedID"` }
Return response for deleteOrgMembership mutation
type OrgMembershipUpdatePayload ¶ added in v0.2.4
type OrgMembershipUpdatePayload struct { // Updated orgMembership OrgMembership *generated.OrgMembership `json:"orgMembership"` }
Return response for updateOrgMembership mutation
type OrganizationCreatePayload ¶
type OrganizationCreatePayload struct { // Created organization Organization *generated.Organization `json:"organization"` }
Return response for createOrganization mutation
type OrganizationDeletePayload ¶
type OrganizationDeletePayload struct { // Deleted organization ID DeletedID string `json:"deletedID"` }
Return response for deleteOrganization mutation
type OrganizationSettingCreatePayload ¶
type OrganizationSettingCreatePayload struct { // Created organizationSetting OrganizationSetting *generated.OrganizationSetting `json:"organizationSetting"` }
Return response for createOrganizationSetting mutation
type OrganizationSettingDeletePayload ¶
type OrganizationSettingDeletePayload struct { // Deleted organizationSetting ID DeletedID string `json:"deletedID"` }
Return response for deleteOrganizationSetting mutation
type OrganizationSettingUpdatePayload ¶
type OrganizationSettingUpdatePayload struct { // Updated organizationSetting OrganizationSetting *generated.OrganizationSetting `json:"organizationSetting"` }
Return response for updateOrganizationSetting mutation
type OrganizationUpdatePayload ¶
type OrganizationUpdatePayload struct { // Updated organization Organization *generated.Organization `json:"organization"` }
Return response for updateOrganization mutation
type PermissionDeniedError ¶
PermissionDeniedError is returned when user is not authorized to perform the requested query or mutation
func (*PermissionDeniedError) Error ¶
func (e *PermissionDeniedError) Error() string
Error returns the PermissionDeniedError in string format
type PersonalAccessTokenCreatePayload ¶
type PersonalAccessTokenCreatePayload struct { // Created personalAccessToken PersonalAccessToken *generated.PersonalAccessToken `json:"personalAccessToken"` }
Return response for createPersonalAccessToken mutation
type PersonalAccessTokenDeletePayload ¶
type PersonalAccessTokenDeletePayload struct { // Deleted personalAccessToken ID DeletedID string `json:"deletedID"` }
Return response for deletePersonalAccessToken mutation
type PersonalAccessTokenUpdatePayload ¶
type PersonalAccessTokenUpdatePayload struct { // Updated personalAccessToken PersonalAccessToken *generated.PersonalAccessToken `json:"personalAccessToken"` }
Return response for updatePersonalAccessToken mutation
type QueryResolver ¶
type QueryResolver interface { Node(ctx context.Context, id string) (generated.Noder, error) Nodes(ctx context.Context, ids []string) ([]generated.Noder, error) Entitlements(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.EntitlementWhereInput) (*generated.EntitlementConnection, error) Groups(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.GroupOrder, where *generated.GroupWhereInput) (*generated.GroupConnection, error) GroupMemberships(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.GroupMembershipWhereInput) (*generated.GroupMembershipConnection, error) GroupSettings(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.GroupSettingWhereInput) (*generated.GroupSettingConnection, error) Integrations(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.IntegrationOrder, where *generated.IntegrationWhereInput) (*generated.IntegrationConnection, error) Invites(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.InviteWhereInput) (*generated.InviteConnection, error) OauthProviders(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.OauthProviderWhereInput) (*generated.OauthProviderConnection, error) OhAuthTooTokens(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.OhAuthTooTokenWhereInput) (*generated.OhAuthTooTokenConnection, error) OrgMemberships(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.OrgMembershipWhereInput) (*generated.OrgMembershipConnection, error) Organizations(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.OrganizationOrder, where *generated.OrganizationWhereInput) (*generated.OrganizationConnection, error) OrganizationSettings(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.OrganizationSettingWhereInput) (*generated.OrganizationSettingConnection, error) PersonalAccessTokens(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.PersonalAccessTokenWhereInput) (*generated.PersonalAccessTokenConnection, error) Subscribers(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.SubscriberWhereInput) (*generated.SubscriberConnection, error) TfaSettingsSlice(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.TFASettingsWhereInput) (*generated.TFASettingsConnection, error) Users(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.UserOrder, where *generated.UserWhereInput) (*generated.UserConnection, error) UserSettings(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.UserSettingWhereInput) (*generated.UserSettingConnection, error) Entitlement(ctx context.Context, id string) (*generated.Entitlement, error) Group(ctx context.Context, id string) (*generated.Group, error) GroupMembership(ctx context.Context, id string) (*generated.GroupMembership, error) GroupSetting(ctx context.Context, id string) (*generated.GroupSetting, error) Integration(ctx context.Context, id string) (*generated.Integration, error) Invite(ctx context.Context, id string) (*generated.Invite, error) OauthProvider(ctx context.Context, id string) (*generated.OauthProvider, error) OhAuthTooToken(ctx context.Context, id string) (*generated.OhAuthTooToken, error) Organization(ctx context.Context, id string) (*generated.Organization, error) OrganizationSetting(ctx context.Context, id string) (*generated.OrganizationSetting, error) OrgMembership(ctx context.Context, id string) (*generated.OrgMembership, error) PersonalAccessToken(ctx context.Context, id string) (*generated.PersonalAccessToken, error) Subscriber(ctx context.Context, id string) (*generated.Subscriber, error) TfaSettings(ctx context.Context, id *string) (*generated.TFASettings, error) User(ctx context.Context, id string) (*generated.User, error) UserSetting(ctx context.Context, id string) (*generated.UserSetting, error) }
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
Resolver provides a graph response resolver
func NewResolver ¶
NewResolver returns a resolver configured with the given ent client
func (*Resolver) CreateGroupInput ¶ added in v0.2.5
func (r *Resolver) CreateGroupInput() CreateGroupInputResolver
CreateGroupInput returns CreateGroupInputResolver implementation.
func (*Resolver) CreateOauthProviderInput ¶
func (r *Resolver) CreateOauthProviderInput() CreateOauthProviderInputResolver
CreateOauthProviderInput returns CreateOauthProviderInputResolver implementation.
func (*Resolver) CreateOrganizationInput ¶ added in v0.2.5
func (r *Resolver) CreateOrganizationInput() CreateOrganizationInputResolver
CreateOrganizationInput returns CreateOrganizationInputResolver implementation.
func (*Resolver) Mutation ¶
func (r *Resolver) Mutation() MutationResolver
Mutation returns MutationResolver implementation.
func (*Resolver) OauthProvider ¶
func (r *Resolver) OauthProvider() OauthProviderResolver
OauthProvider returns OauthProviderResolver implementation.
func (*Resolver) OauthProviderWhereInput ¶
func (r *Resolver) OauthProviderWhereInput() OauthProviderWhereInputResolver
OauthProviderWhereInput returns OauthProviderWhereInputResolver implementation.
func (*Resolver) Query ¶
func (r *Resolver) Query() QueryResolver
Query returns QueryResolver implementation.
func (*Resolver) Subscription ¶ added in v0.3.2
func (r *Resolver) Subscription() SubscriptionResolver
Subscription returns SubscriptionResolver implementation.
func (*Resolver) UpdateGroupInput ¶ added in v0.2.5
func (r *Resolver) UpdateGroupInput() UpdateGroupInputResolver
UpdateGroupInput returns UpdateGroupInputResolver implementation.
func (*Resolver) UpdateOauthProviderInput ¶
func (r *Resolver) UpdateOauthProviderInput() UpdateOauthProviderInputResolver
UpdateOauthProviderInput returns UpdateOauthProviderInputResolver implementation.
func (*Resolver) UpdateOrganizationInput ¶ added in v0.2.5
func (r *Resolver) UpdateOrganizationInput() UpdateOrganizationInputResolver
UpdateOrganizationInput returns UpdateOrganizationInputResolver implementation.
func (*Resolver) UpdateTFASettingsInput ¶ added in v0.3.6
func (r *Resolver) UpdateTFASettingsInput() UpdateTFASettingsInputResolver
UpdateTFASettingsInput returns UpdateTFASettingsInputResolver implementation.
func (Resolver) WithLogger ¶
func (r Resolver) WithLogger(l *zap.SugaredLogger) *Resolver
type ResolverRoot ¶
type ResolverRoot interface { Mutation() MutationResolver OauthProvider() OauthProviderResolver Query() QueryResolver Subscription() SubscriptionResolver CreateGroupInput() CreateGroupInputResolver CreateOauthProviderInput() CreateOauthProviderInputResolver CreateOrganizationInput() CreateOrganizationInputResolver OauthProviderWhereInput() OauthProviderWhereInputResolver UpdateGroupInput() UpdateGroupInputResolver UpdateOauthProviderInput() UpdateOauthProviderInputResolver UpdateOrganizationInput() UpdateOrganizationInputResolver UpdateTFASettingsInput() UpdateTFASettingsInputResolver }
type SubscriberCreatePayload ¶ added in v0.3.6
type SubscriberCreatePayload struct { // Created subscriber Subscriber *generated.Subscriber `json:"subscriber"` }
Return response for createSubscriber mutation
type SubscriberDeletePayload ¶ added in v0.3.6
type SubscriberDeletePayload struct { // Deleted subscriber ID DeletedID string `json:"deletedID"` }
Return response for deleteSubscriber mutation
type SubscriberUpdatePayload ¶ added in v0.3.6
type SubscriberUpdatePayload struct { // Updated subscriber Subscriber *generated.Subscriber `json:"subscriber"` }
Return response for updateSubscriber mutation
type Subscription ¶ added in v0.3.2
type Subscription struct { }
type SubscriptionResolver ¶ added in v0.3.2
type TFASettingsCreatePayload ¶ added in v0.3.6
type TFASettingsCreatePayload struct { // Created tfaSettings TfaSettings *generated.TFASettings `json:"tfaSettings"` }
Return response for createTFASettings mutation
type TFASettingsUpdatePayload ¶ added in v0.3.6
type TFASettingsUpdatePayload struct { // Updated tfaSettings TfaSettings *generated.TFASettings `json:"tfaSettings"` }
Return response for updateTFASettings mutation
type UpdateGroupInputResolver ¶ added in v0.2.5
type UpdateGroupInputResolver interface { AddGroupMembers(ctx context.Context, obj *generated.UpdateGroupInput, data []*generated.CreateGroupMembershipInput) error UpdateGroupSettings(ctx context.Context, obj *generated.UpdateGroupInput, data *generated.UpdateGroupSettingInput) error }
type UpdateOrganizationInputResolver ¶ added in v0.2.5
type UpdateOrganizationInputResolver interface { AddOrgMembers(ctx context.Context, obj *generated.UpdateOrganizationInput, data []*generated.CreateOrgMembershipInput) error UpdateOrgSettings(ctx context.Context, obj *generated.UpdateOrganizationInput, data *generated.UpdateOrganizationSettingInput) error }
type UpdateTFASettingsInputResolver ¶ added in v0.3.6
type UserCreatePayload ¶
Return response for createUser mutation
type UserDeletePayload ¶
type UserDeletePayload struct { // Deleted user ID DeletedID string `json:"deletedID"` }
Return response for deleteUser mutation
type UserSettingUpdatePayload ¶
type UserSettingUpdatePayload struct { // Updated userSetting UserSetting *generated.UserSetting `json:"userSetting"` }
Return response for updateUserSetting mutation
type UserUpdatePayload ¶
Return response for updateUser mutation
Source Files ¶
- analytics.go
- doc.go
- ent.resolvers.go
- entitlement.resolvers.go
- errors.go
- gen_models.go
- gen_server.go
- group.resolvers.go
- groupextended.resolvers.go
- groupmembership.resolvers.go
- groupsetting.resolvers.go
- helpers.go
- integration.resolvers.go
- invite.resolvers.go
- oauthprovider.resolvers.go
- ohauthtootoken.resolvers.go
- organization.resolvers.go
- organizationsetting.resolvers.go
- orgextended.resolvers.go
- orgmembership.resolvers.go
- personalaccesstoken.resolvers.go
- resolver.go
- subs.resolvers.go
- subscriber.resolvers.go
- tfasettings.resolvers.go
- user.resolvers.go
- usersetting.resolvers.go