Versions in this module Expand all Collapse all v0 v0.1.2 May 2, 2025 v0.1.1 Apr 22, 2025 Changes in this version + func NewExecutableSchema(cfg Config) graphql.ExecutableSchema + type CategoryResolver interface + Childrens func(ctx context.Context, obj *models.Category) ([]*models.Category, error) + type ComplexityRoot struct + Account struct{ ... } + AccountConnection struct{ ... } + AccountCreatePayload struct{ ... } + AccountEdge struct{ ... } + AccountPayload struct{ ... } + AdFormat struct{ ... } + AdFormatConnection struct{ ... } + AdFormatEdge struct{ ... } + AdFormatPayload struct{ ... } + Application struct{ ... } + ApplicationConnection struct{ ... } + ApplicationEdge struct{ ... } + ApplicationPayload struct{ ... } + AuthClient struct{ ... } + AuthClientConnection struct{ ... } + AuthClientEdge struct{ ... } + AuthClientPayload struct{ ... } + Browser struct{ ... } + BrowserConnection struct{ ... } + BrowserEdge struct{ ... } + BrowserPayload struct{ ... } + Category struct{ ... } + CategoryConnection struct{ ... } + CategoryEdge struct{ ... } + CategoryPayload struct{ ... } + Continent struct{ ... } + Coordinates struct{ ... } + Country struct{ ... } + DeviceMaker struct{ ... } + DeviceMakerConnection struct{ ... } + DeviceMakerEdge struct{ ... } + DeviceMakerPayload struct{ ... } + DeviceModel struct{ ... } + DeviceModelConnection struct{ ... } + DeviceModelEdge struct{ ... } + DeviceModelPayload struct{ ... } + DeviceType struct{ ... } + DirectAccessToken struct{ ... } + DirectAccessTokenConnection struct{ ... } + DirectAccessTokenEdge struct{ ... } + DirectAccessTokenPayload struct{ ... } + HistoryAction struct{ ... } + HistoryActionConnection struct{ ... } + HistoryActionEdge struct{ ... } + HistoryActionPayload struct{ ... } + Lang struct{ ... } + Member struct{ ... } + MemberConnection struct{ ... } + MemberEdge struct{ ... } + MemberPayload struct{ ... } + Mutation struct{ ... } + OS struct{ ... } + OSConnection struct{ ... } + OSEdge struct{ ... } + OSPayload struct{ ... } + Option struct{ ... } + OptionConnection struct{ ... } + OptionEdge struct{ ... } + OptionPayload struct{ ... } + PageInfo struct{ ... } + Profile struct{ ... } + ProfileMessanger struct{ ... } + Query struct{ ... } + RBACPermission struct{ ... } + RBACRole struct{ ... } + RBACRoleConnection struct{ ... } + RBACRoleEdge struct{ ... } + RBACRolePayload struct{ ... } + RTBSource struct{ ... } + RTBSourceConnection struct{ ... } + RTBSourceEdge struct{ ... } + RTBSourcePayload struct{ ... } + SessionToken struct{ ... } + SocialAccount struct{ ... } + SocialAccountConnection struct{ ... } + SocialAccountEdge struct{ ... } + SocialAccountPayload struct{ ... } + SocialAccountSession struct{ ... } + StatisticAdItem struct{ ... } + StatisticAdItemConnection struct{ ... } + StatisticItemKey struct{ ... } + StatusResponse struct{ ... } + TimeZone struct{ ... } + TrafficRouter struct{ ... } + TrafficRouterConnection struct{ ... } + TrafficRouterEdge struct{ ... } + TrafficRouterPayload struct{ ... } + User struct{ ... } + UserConnection struct{ ... } + UserEdge struct{ ... } + UserPayload struct{ ... } + Zone struct{ ... } + ZoneConnection struct{ ... } + ZoneEdge struct{ ... } + ZonePayload struct{ ... } + type Config struct + Complexity ComplexityRoot + Directives DirectiveRoot + Resolvers ResolverRoot + Schema *ast.Schema + type DeviceModelResolver interface + Versions func(ctx context.Context, obj *models.DeviceModel, ...) ([]*models.DeviceModel, error) + type DirectiveRoot struct + Acl func(ctx context.Context, obj any, next graphql.Resolver, permissions []string) (res any, err error) + Auth func(ctx context.Context, obj any, next graphql.Resolver) (res any, err error) + HasPermissions func(ctx context.Context, obj any, next graphql.Resolver, permissions []string) (res any, err error) + Length func(ctx context.Context, obj any, next graphql.Resolver, min int, max int, ...) (res any, err error) + Notempty func(ctx context.Context, obj any, next graphql.Resolver, trim bool, ornil bool) (res any, err error) + Range func(ctx context.Context, obj any, next graphql.Resolver, min float64, max float64, ...) (res any, err error) + Regex func(ctx context.Context, obj any, next graphql.Resolver, pattern string, trim bool, ...) (res any, err error) + SkipNoPermissions func(ctx context.Context, obj any, next graphql.Resolver, permissions []string) (res any, err error) + type MutationResolver interface + ActivateZone func(ctx context.Context, id uint64, msg *string) (*models.ZonePayload, error) + ApproveAccount func(ctx context.Context, id uint64, msg string) (*models1.AccountPayload, error) + ApproveAccountMember func(ctx context.Context, memberID uint64, msg string) (*models1.MemberPayload, error) + ApproveApplication func(ctx context.Context, id uint64, msg *string) (*models.ApplicationPayload, error) + ApproveRTBSource func(ctx context.Context, id uint64, msg *string) (*models.RTBSourcePayload, error) + ApproveUser func(ctx context.Context, id uint64, msg *string) (*models1.UserPayload, error) + ApproveZone func(ctx context.Context, id uint64, msg *string) (*models.ZonePayload, error) + CreateApplication func(ctx context.Context, input models.ApplicationCreateInput) (*models.ApplicationPayload, error) + CreateAuthClient func(ctx context.Context, input models1.AuthClientInput) (*models1.AuthClientPayload, error) + CreateBrowser func(ctx context.Context, input models.BrowserCreateInput) (*models.BrowserPayload, error) + CreateCategory func(ctx context.Context, input models.CategoryInput) (*models.CategoryPayload, error) + CreateDeviceMaker func(ctx context.Context, input models.DeviceMakerCreateInput) (*models.DeviceMakerPayload, error) + CreateDeviceModel func(ctx context.Context, input models.DeviceModelCreateInput) (*models.DeviceModelPayload, error) + CreateFormat func(ctx context.Context, input models.AdFormatInput) (*models.AdFormatPayload, error) + CreateOs func(ctx context.Context, input models.OSCreateInput) (*models.OSPayload, error) + CreateRTBSource func(ctx context.Context, input models.RTBSourceCreateInput) (*models.RTBSourcePayload, error) + CreateRole func(ctx context.Context, input models1.RBACRoleInput) (*models1.RBACRolePayload, error) + CreateTrafficRouter func(ctx context.Context, input models.TrafficRouterCreateInput) (*models.TrafficRouterPayload, error) + CreateUser func(ctx context.Context, input models1.UserInput) (*models1.UserPayload, error) + CreateZone func(ctx context.Context, input models.ZoneInput) (*models.ZonePayload, error) + DeactivateZone func(ctx context.Context, id uint64, msg *string) (*models.ZonePayload, error) + DeleteApplication func(ctx context.Context, id uint64, msg *string) (*models.ApplicationPayload, error) + DeleteAuthClient func(ctx context.Context, id string, msg *string) (*models1.AuthClientPayload, error) + DeleteBrowser func(ctx context.Context, id uint64, msg *string) (*models.BrowserPayload, error) + DeleteCategory func(ctx context.Context, id uint64, msg *string) (*models.CategoryPayload, error) + DeleteDeviceMaker func(ctx context.Context, id uint64, msg *string) (*models.DeviceMakerPayload, error) + DeleteDeviceModel func(ctx context.Context, id uint64, msg *string) (*models.DeviceModelPayload, error) + DeleteFormat func(ctx context.Context, id uint64, codename string, msg *string) (*models.AdFormatPayload, error) + DeleteOs func(ctx context.Context, id uint64, msg *string) (*models.OSPayload, error) + DeleteRTBSource func(ctx context.Context, id uint64, msg *string) (*models.RTBSourcePayload, error) + DeleteRole func(ctx context.Context, id uint64, msg *string) (*models1.RBACRolePayload, error) + DeleteTrafficRouter func(ctx context.Context, id uint64) (*models.TrafficRouterPayload, error) + DeleteZone func(ctx context.Context, id uint64, msg *string) (*models.ZonePayload, error) + DisconnectSocialAccount func(ctx context.Context, id uint64) (*models1.SocialAccountPayload, error) + GenerateDirectAccessToken func(ctx context.Context, userID *uint64, description string, expiresAt *time.Time) (*models1.DirectAccessTokenPayload, error) + InviteAccountMember func(ctx context.Context, accountID uint64, member models1.InviteMemberInput) (*models1.MemberPayload, error) + Login func(ctx context.Context, login string, password string) (*models1.SessionToken, error) + Logout func(ctx context.Context) (bool, error) + PauseApplication func(ctx context.Context, id uint64, msg *string) (*models.ApplicationPayload, error) + PauseRTBSource func(ctx context.Context, id uint64) (*models.RTBSourcePayload, error) + PauseTrafficRouter func(ctx context.Context, id uint64, msg string) (*models.TrafficRouterPayload, error) + Poke func(ctx context.Context) (string, error) + RegisterAccount func(ctx context.Context, input models1.AccountCreateInput) (*models1.AccountCreatePayload, error) + RejectAccount func(ctx context.Context, id uint64, msg string) (*models1.AccountPayload, error) + RejectAccountMember func(ctx context.Context, memberID uint64, msg string) (*models1.MemberPayload, error) + RejectApplication func(ctx context.Context, id uint64, msg *string) (*models.ApplicationPayload, error) + RejectRTBSource func(ctx context.Context, id uint64, msg *string) (*models.RTBSourcePayload, error) + RejectUser func(ctx context.Context, id uint64, msg *string) (*models1.UserPayload, error) + RejectZone func(ctx context.Context, id uint64, msg *string) (*models.ZonePayload, error) + RemoveAccountMember func(ctx context.Context, memberID uint64) (*models1.MemberPayload, error) + ResetUserPassword func(ctx context.Context, email string) (*models1.StatusResponse, error) + RevokeDirectAccessToken func(ctx context.Context, filter models1.DirectAccessTokenListFilter) (*models1.StatusResponse, error) + RunApplication func(ctx context.Context, id uint64, msg *string) (*models.ApplicationPayload, error) + RunRTBSource func(ctx context.Context, id uint64) (*models.RTBSourcePayload, error) + RunTrafficRouter func(ctx context.Context, id uint64, msg string) (*models.TrafficRouterPayload, error) + SetOption func(ctx context.Context, name string, value *types.NullableJSON, ...) (*models1.OptionPayload, error) + SwitchAccount func(ctx context.Context, id uint64) (*models1.SessionToken, error) + UpdateAccount func(ctx context.Context, id uint64, input models1.AccountInput) (*models1.AccountPayload, error) + UpdateAccountMember func(ctx context.Context, memberID uint64, member models1.MemberInput) (*models1.MemberPayload, error) + UpdateApplication func(ctx context.Context, id uint64, input models.ApplicationUpdateInput) (*models.ApplicationPayload, error) + UpdateAuthClient func(ctx context.Context, id string, input models1.AuthClientInput) (*models1.AuthClientPayload, error) + UpdateBrowser func(ctx context.Context, id uint64, input models.BrowserUpdateInput) (*models.BrowserPayload, error) + UpdateCategory func(ctx context.Context, id uint64, input models.CategoryInput) (*models.CategoryPayload, error) + UpdateDeviceMaker func(ctx context.Context, id uint64, input models.DeviceMakerUpdateInput) (*models.DeviceMakerPayload, error) + UpdateDeviceModel func(ctx context.Context, id uint64, input models.DeviceModelUpdateInput) (*models.DeviceModelPayload, error) + UpdateFormat func(ctx context.Context, id uint64, input models.AdFormatInput) (*models.AdFormatPayload, error) + UpdateOs func(ctx context.Context, id uint64, input models.OSUpdateInput) (*models.OSPayload, error) + UpdateRTBSource func(ctx context.Context, id uint64, input models.RTBSourceUpdateInput) (*models.RTBSourcePayload, error) + UpdateRole func(ctx context.Context, id uint64, input models1.RBACRoleInput) (*models1.RBACRolePayload, error) + UpdateTrafficRouter func(ctx context.Context, id uint64, input models.TrafficRouterUpdateInput) (*models.TrafficRouterPayload, error) + UpdateUser func(ctx context.Context, id uint64, input models1.UserInput) (*models1.UserPayload, error) + UpdateUserPassword func(ctx context.Context, token string, email string, password string) (*models1.StatusResponse, error) + UpdateZone func(ctx context.Context, id uint64, input models.ZoneInput) (*models.ZonePayload, error) + type OSResolver interface + Versions func(ctx context.Context, obj *models.Os) ([]*models.Os, error) + type QueryResolver interface + Account func(ctx context.Context, id uint64) (*models1.AccountPayload, error) + Application func(ctx context.Context, id uint64) (*models.ApplicationPayload, error) + AuthClient func(ctx context.Context, id string) (*models1.AuthClientPayload, error) + Browser func(ctx context.Context, id uint64) (*models.BrowserPayload, error) + Category func(ctx context.Context, id uint64) (*models.CategoryPayload, error) + CheckPermission func(ctx context.Context, name string, key *string, targetID *string, idKey *string) (*string, error) + Continents func(ctx context.Context) ([]*models.Continent, error) + Countries func(ctx context.Context) ([]*models.Country, error) + CurrentAccount func(ctx context.Context) (*models1.AccountPayload, error) + CurrentSession func(ctx context.Context) (*models1.SessionToken, error) + CurrentSocialAccounts func(ctx context.Context, filter *models1.SocialAccountListFilter, ...) (...) + CurrentUser func(ctx context.Context) (*models1.UserPayload, error) + DeviceMaker func(ctx context.Context, id uint64, codename string) (*models.DeviceMakerPayload, error) + DeviceModel func(ctx context.Context, id uint64, codename string) (*models.DeviceModelPayload, error) + Format func(ctx context.Context, id uint64, codename string) (*models.AdFormatPayload, error) + GetDirectAccessToken func(ctx context.Context, id uint64) (*models1.DirectAccessTokenPayload, error) + Languages func(ctx context.Context, filter *models.LangListFilter) ([]*models.Lang, error) + ListAccountRolesAndPermissions func(ctx context.Context, accountID uint64, order *models1.RBACRoleListOrder) (*connectors.CollectionConnection[models1.RBACRole, models1.RBACRoleEdge], ...) + ListAccounts func(ctx context.Context, filter *models1.AccountListFilter, ...) (*connectors.CollectionConnection[models1.Account, models1.AccountEdge], error) + ListApplications func(ctx context.Context, filter *models.ApplicationListFilter, ...) (*connectors.CollectionConnection[models.Application, models.ApplicationEdge], ...) + ListAuthClients func(ctx context.Context, filter *models1.AuthClientListFilter, ...) (*connectors.CollectionConnection[models1.AuthClient, models1.AuthClientEdge], ...) + ListBrowsers func(ctx context.Context, filter *models.BrowserListFilter, ...) (*connectors.CollectionConnection[models.Browser, models.BrowserEdge], error) + ListCategories func(ctx context.Context, filter *models.CategoryListFilter, ...) (*connectors.CollectionConnection[models.Category, models.CategoryEdge], error) + ListDeviceMakers func(ctx context.Context, filter *models.DeviceMakerListFilter, ...) (*connectors.CollectionConnection[models.DeviceMaker, models.DeviceMakerEdge], ...) + ListDeviceModels func(ctx context.Context, filter *models.DeviceModelListFilter, ...) (*connectors.CollectionConnection[models.DeviceModel, models.DeviceModelEdge], ...) + ListDeviceTypes func(ctx context.Context) ([]*models.DeviceType, error) + ListDirectAccessTokens func(ctx context.Context, filter *models1.DirectAccessTokenListFilter, ...) (...) + ListFormats func(ctx context.Context, filter *models.AdFormatListFilter, ...) (*connectors.CollectionConnection[models.AdFormat, models.AdFormatEdge], error) + ListHistory func(ctx context.Context, filter *models1.HistoryActionListFilter, ...) (...) + ListMembers func(ctx context.Context, filter *models1.MemberListFilter, ...) (*connectors.CollectionConnection[models1.Member, models1.MemberEdge], error) + ListMyPermissions func(ctx context.Context, patterns []string) ([]*models1.RBACPermission, error) + ListOptions func(ctx context.Context, filter *models1.OptionListFilter, ...) (*connectors.CollectionConnection[models1.Option, models1.OptionEdge], error) + ListOs func(ctx context.Context, filter *models.OSListFilter, order []*models.OSListOrder, ...) (*connectors.CollectionConnection[models.Os, models.OSEdge], error) + ListPermissions func(ctx context.Context, patterns []string) ([]*models1.RBACPermission, error) + ListRTBSources func(ctx context.Context, filter *models.RTBSourceListFilter, ...) (*connectors.CollectionConnection[models.RTBSource, models.RTBSourceEdge], ...) + ListRoles func(ctx context.Context, filter *models1.RBACRoleListFilter, ...) (*connectors.CollectionConnection[models1.RBACRole, models1.RBACRoleEdge], ...) + ListSocialAccounts func(ctx context.Context, filter *models1.SocialAccountListFilter, ...) (...) + ListTrafficRouters func(ctx context.Context, filter *models.TrafficRouterListFilter, ...) (...) + ListUsers func(ctx context.Context, filter *models1.UserListFilter, ...) (*connectors.CollectionConnection[models1.User, models1.UserEdge], error) + ListZones func(ctx context.Context, filter *models.ZoneListFilter, ...) (*connectors.CollectionConnection[models.Zone, models.ZoneEdge], error) + Option func(ctx context.Context, name string, typeArg models1.OptionType, targetID uint64) (*models1.OptionPayload, error) + Os func(ctx context.Context, id uint64) (*models.OSPayload, error) + RTBSource func(ctx context.Context, id uint64) (*models.RTBSourcePayload, error) + Role func(ctx context.Context, id uint64) (*models1.RBACRolePayload, error) + ServiceVersion func(ctx context.Context) (string, error) + SocialAccount func(ctx context.Context, id uint64) (*models1.SocialAccountPayload, error) + StatisticAdList func(ctx context.Context, filter *models.StatisticAdListFilter, ...) (*connectors.CollectionConnection[models.StatisticAdItem, struct{}], error) + TrafficRouter func(ctx context.Context, id uint64) (*models.TrafficRouterPayload, error) + User func(ctx context.Context, id uint64, username string) (*models1.UserPayload, error) + Zone func(ctx context.Context, id uint64) (*models.ZonePayload, error) + type RTBSourceResolver interface + Account func(ctx context.Context, obj *models.RTBSource) (*models1.Account, error) + Applications func(ctx context.Context, obj *models.RTBSource) ([]*models.Application, error) + Browsers func(ctx context.Context, obj *models.RTBSource) ([]*models.Browser, error) + Categories func(ctx context.Context, obj *models.RTBSource) ([]*models.Category, error) + Countries func(ctx context.Context, obj *models.RTBSource) ([]*models.Country, error) + DeviceTypes func(ctx context.Context, obj *models.RTBSource) ([]*models.DeviceType, error) + Devices func(ctx context.Context, obj *models.RTBSource) ([]*models.DeviceModel, error) + Formats func(ctx context.Context, obj *models.RTBSource) ([]*models.AdFormat, error) + Languages func(ctx context.Context, obj *models.RTBSource) ([]*models.Lang, error) + Os func(ctx context.Context, obj *models.RTBSource) ([]*models.Os, error) + Zones func(ctx context.Context, obj *models.RTBSource) ([]*models.Zone, error) + type ResolverRoot interface + Category func() CategoryResolver + DeviceModel func() DeviceModelResolver + Mutation func() MutationResolver + OS func() OSResolver + Query func() QueryResolver + RTBSource func() RTBSourceResolver + StatisticItemKey func() StatisticItemKeyResolver + TrafficRouter func() TrafficRouterResolver + type StatisticItemKeyResolver interface + Text func(ctx context.Context, obj *models.StatisticItemKey) (string, error) + type TrafficRouterResolver interface + Account func(ctx context.Context, obj *models.TrafficRouter) (*models1.Account, error) + Applications func(ctx context.Context, obj *models.TrafficRouter) ([]*models.Application, error) + Browsers func(ctx context.Context, obj *models.TrafficRouter) ([]*models.Browser, error) + Categories func(ctx context.Context, obj *models.TrafficRouter) ([]*models.Category, error) + Countries func(ctx context.Context, obj *models.TrafficRouter) ([]*models.Country, error) + DeviceTypes func(ctx context.Context, obj *models.TrafficRouter) ([]*models.DeviceType, error) + Devices func(ctx context.Context, obj *models.TrafficRouter) ([]*models.DeviceModel, error) + Formats func(ctx context.Context, obj *models.TrafficRouter) ([]*models.AdFormat, error) + Languages func(ctx context.Context, obj *models.TrafficRouter) ([]*models.Lang, error) + Os func(ctx context.Context, obj *models.TrafficRouter) ([]*models.Os, error) + RTBSources func(ctx context.Context, obj *models.TrafficRouter) ([]*models.RTBSource, error) + Zones func(ctx context.Context, obj *models.TrafficRouter) ([]*models.Zone, error)