MCPcopy Create free account

hub / github.com/cmelgarejo/go-gql-server / functions

Functions285 in github.com/cmelgarejo/go-gql-server

↓ 26 callersFunctionMustGet
MustGet will return the env or panic if it is not present
pkg/utils/env.go:11
↓ 20 callersMethodmarshalOString2ᚖstring
(ctx context.Context, sel ast.SelectionSet, v *string)
internal/gql/generated.go:4330
↓ 13 callersMethodString
()
internal/gql/models/generated.go:166
↓ 12 callersMethodunmarshalOString2ᚖstring
(ctx context.Context, v interface{})
internal/gql/generated.go:4322
↓ 9 callersFunctionPanic
Panic Log
internal/logger/main.go:111
↓ 8 callersFunctionGetTableName
GetTableName gets the db normalized tablename
pkg/utils/consts/main.go:83
↓ 7 callersFunctionMissingArg
MissingArg is a standard error message
internal/logger/main.go:84
↓ 6 callersFunctionInfo
Info Log
internal/logger/main.go:91
↓ 6 callersFunctionauthError
(c *gin.Context, err error)
internal/handlers/auth/middleware/auth.go:14
↓ 6 callersMethodmarshalNString2string
(ctx context.Context, sel ast.SelectionSet, v string)
internal/gql/generated.go:3741
↓ 6 callersMethodmarshalOString2string
(ctx context.Context, sel ast.SelectionSet, v string)
internal/gql/generated.go:4318
↓ 5 callersMethodHasPermission
HasPermission verifies if user has a specific permission
internal/orm/models/user.go:155
↓ 5 callersFunctionMustGetBool
MustGetBool will return the env as boolean or panic if it is not present
pkg/utils/env.go:21
↓ 5 callersMethodSchemaVersionedEndpoint
SchemaVersionedEndpoint builds the schema endpoint string (schema + host + port + version)
pkg/utils/types.go:85
↓ 5 callersFunctionToSnakeCase
ToSnakeCase converts camelcase str to snake_case
pkg/utils/main.go:14
↓ 5 callersMethodVersionedEndpoint
VersionedEndpoint builds the endpoint `string (host + port + version)
pkg/utils/types.go:80
↓ 4 callersFunctionDebug
Expose some log functions: Debug Log
internal/logger/main.go:53
↓ 4 callersFunctionError
Error Log
internal/logger/main.go:121
↓ 4 callersFunctionErrorfn
Errorfn Log errors of a [fn] with format
internal/logger/main.go:63
↓ 4 callersMethod_User
(ctx context.Context, sel ast.SelectionSet, obj *models.User)
internal/gql/generated.go:3271
↓ 4 callersMethod___Type
(ctx context.Context, sel ast.SelectionSet, obj *introspection.Type)
internal/gql/generated.go:3618
↓ 4 callersFunctiongetCurrentUser
(ctx context.Context)
internal/gql/resolvers/main.go:35
↓ 4 callersMethodmarshalOUser2ᚖgithubᚗcomᚋcmelgarejoᚋgoᚑgqlᚑserverᚋinternalᚋgqlᚋmodelsᚐUser
(ctx context.Context, sel ast.SelectionSet, v *models.User)
internal/gql/generated.go:4364
↓ 4 callersMethodmarshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType
(ctx context.Context, sel ast.SelectionSet, v *introspection.Type)
internal/gql/generated.go:4546
↓ 4 callersMethodunmarshalOID2ᚕᚖstring
(ctx context.Context, v interface{})
internal/gql/generated.go:4188
↓ 4 callersMethodunmarshalOInt2ᚖint
(ctx context.Context, v interface{})
internal/gql/generated.go:4243
↓ 3 callersFunctionDBUserToGQLUser
DBUserToGQLUser transforms [user] db input to gql type
internal/gql/resolvers/transformations/users.go:14
↓ 3 callersMethodMutation
()
internal/gql/generated.go:39
↓ 3 callersFunctionaddProviderToContext
(c *gin.Context, value interface{})
internal/handlers/auth/main.go:11
↓ 3 callersMethodmarshalNBoolean2bool
(ctx context.Context, sel ast.SelectionSet, v bool)
internal/gql/generated.go:3690
↓ 3 callersMethodmarshalNUser2ᚖgithubᚗcomᚋcmelgarejoᚋgoᚑgqlᚑserverᚋinternalᚋgqlᚋmodelsᚐUser
(ctx context.Context, sel ast.SelectionSet, v *models.User)
internal/gql/generated.go:3806
↓ 3 callersMethodmarshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType
(ctx context.Context, sel ast.SelectionSet, v *introspection.Type)
internal/gql/generated.go:4087
↓ 3 callersMethodmarshalOTime2ᚖtimeᚐTime
(ctx context.Context, sel ast.SelectionSet, v *time.Time)
internal/gql/generated.go:4353
↓ 3 callersMethodunmarshalOBoolean2bool
(ctx context.Context, v interface{})
internal/gql/generated.go:4157
↓ 2 callersMethodCreateUser
(ctx context.Context, input models.UserInput)
internal/gql/generated.go:99
↓ 2 callersFunctionDebugf
Debugf Log
internal/logger/main.go:58
↓ 2 callersMethodDeleteUser
(ctx context.Context, id string)
internal/gql/generated.go:101
↓ 2 callersMethodFindUserByJWT
FindUserByJWT finds the user that is related to the APIKey token
internal/orm/main.go:75
↓ 2 callersFunctionFormatPermissionTag
FormatPermissionTag returns a string formatted action:entity permission
pkg/utils/consts/main.go:88
↓ 2 callersFunctionGothUserToDBUser
GothUserToDBUser transforms [user] goth to db model
internal/gql/resolvers/transformations/users.go:98
↓ 2 callersFunctionGothUserToDBUserProfile
GothUserToDBUserProfile transforms [user] goth to db model
internal/gql/resolvers/transformations/users.go:123
↓ 2 callersMethodMarshalGQL
(w io.Writer)
internal/gql/models/generated.go:183
↓ 2 callersFunctionPing
Ping is simple keep-alive/ping handler
internal/handlers/ping.go:10
↓ 2 callersMethodQuery
()
internal/gql/generated.go:40
↓ 2 callersMethodUpdateUser
(ctx context.Context, id string, input models.UserInput)
internal/gql/generated.go:100
↓ 2 callersMethodUsers
(ctx context.Context, id *string, filters []*models.QueryFilter, limit *int, offset *int, orderBy *string, sor
internal/gql/generated.go:104
↓ 2 callersFunctionWarnf
Warnf Log
internal/logger/main.go:106
↓ 2 callersMethod_UserProfile
(ctx context.Context, sel ast.SelectionSet, obj *models.UserProfile)
internal/gql/generated.go:3332
↓ 2 callersMethod_Users
(ctx context.Context, sel ast.SelectionSet, obj *models.Users)
internal/gql/generated.go:3391
↓ 2 callersMethod___Schema
(ctx context.Context, sel ast.SelectionSet, obj *introspection.Schema)
internal/gql/generated.go:3577
↓ 2 callersFunctionaddToContext
(c *gin.Context, key utils.ContextKey, value interface{})
internal/handlers/auth/middleware/main.go:185
↓ 2 callersMethodfield_Mutation_createUser_args
endregion ************************** generated!.gotpl ************************** region ***************************** args.gotpl ******************
internal/gql/generated.go:581
↓ 2 callersMethodfield_Mutation_deleteUser_args
(ctx context.Context, rawArgs map[string]interface{})
internal/gql/generated.go:595
↓ 2 callersMethodfield_Mutation_updateUser_args
(ctx context.Context, rawArgs map[string]interface{})
internal/gql/generated.go:609
↓ 2 callersMethodfield_Query_users_args
(ctx context.Context, rawArgs map[string]interface{})
internal/gql/generated.go:645
↓ 2 callersMethodfield_User_profiles_args
(ctx context.Context, rawArgs map[string]interface{})
internal/gql/generated.go:699
↓ 2 callersFunctiongetValidHost
(host string)
pkg/utils/types.go:60
↓ 2 callersMethodmarshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue
(ctx context.Context, sel ast.SelectionSet, v introspection.InputValue)
internal/gql/generated.go:4005
↓ 2 callersMethodmarshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ
(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue)
internal/gql/generated.go:4009
↓ 2 callersMethodmarshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType
(ctx context.Context, sel ast.SelectionSet, v introspection.Type)
internal/gql/generated.go:4046
↓ 2 callersMethodmarshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ
(ctx context.Context, sel ast.SelectionSet, v []introspection.Type)
internal/gql/generated.go:4506
↓ 2 callersFunctiontokenFromCookie
(c *gin.Context, key string)
internal/handlers/auth/middleware/main.go:105
↓ 2 callersFunctiontokenFromParam
(c *gin.Context, key string)
internal/handlers/auth/middleware/main.go:113
↓ 2 callersFunctiontokenFromQuery
(c *gin.Context, key string)
internal/handlers/auth/middleware/main.go:97
↓ 2 callersMethodunmarshalNID2string
(ctx context.Context, v interface{})
internal/gql/generated.go:3700
↓ 2 callersMethodunmarshalNString2string
(ctx context.Context, v interface{})
internal/gql/generated.go:3737
↓ 2 callersMethodunmarshalNUserInput2githubᚗcomᚋcmelgarejoᚋgoᚑgqlᚑserverᚋinternalᚋgqlᚋmodelsᚐUserInput
(ctx context.Context, v interface{})
internal/gql/generated.go:3816
↓ 2 callersMethodunmarshalOID2ᚖstring
(ctx context.Context, v interface{})
internal/gql/generated.go:4220
↓ 2 callersFunctionupdateMigration
(db *gorm.DB)
internal/orm/migration/main.go:14
↓ 2 callersFunctionuserCreateUpdate
## Helper functions
internal/gql/resolvers/users.go:57
↓ 1 callersFunctionAuth
Auth routes
pkg/server/routes/auth.go:11
↓ 1 callersFunctionBegin
Begin login with the auth provider
internal/handlers/auth/handlers.go:24
↓ 1 callersFunctionCallback
Callback callback to complete auth provider flow
internal/handlers/auth/handlers.go:38
↓ 1 callersFunctionDBUserProfileToGQLUserProfile
DBUserProfileToGQLUserProfile transforms [user] db input to gql type
internal/gql/resolvers/transformations/users.go:39
↓ 1 callersFunctionErrorf
Errorf Log
internal/logger/main.go:126
↓ 1 callersMethodExec
(ctx context.Context)
internal/gql/generated.go:396
↓ 1 callersFunctionFactory
Factory creates a db connection with the selected dialect and connection string
internal/orm/main.go:40
↓ 1 callersFunctionFatal
Fatal Log
internal/logger/main.go:131
↓ 1 callersMethodFindUserByAPIKey
FindUserByAPIKey finds the user that is related to the API key
internal/orm/main.go:60
↓ 1 callersFunctionFormatPermissionDesc
FormatPermissionDesc returns a string with the description of the action:entity permission
pkg/utils/consts/main.go:94
↓ 1 callersFunctionGQLInputUserToDBUser
GQLInputUserToDBUser transforms [user] gql input to db model
internal/gql/resolvers/transformations/users.go:62
↓ 1 callersFunctionGraphQL
GraphQL routes
pkg/server/routes/graphql.go:13
↓ 1 callersFunctionGraphqlHandler
GraphqlHandler defines the GQLGen GraphQL server handler
internal/handlers/gql.go:21
↓ 1 callersFunctionInitalizeAuthProviders
InitalizeAuthProviders does just that, with Goth providers
pkg/server/init.go:13
↓ 1 callersMethodIsValid
()
internal/gql/models/generated.go:89
↓ 1 callersMethodIsValid
()
internal/gql/models/generated.go:158
↓ 1 callersMethodListenEndpoint
ListenEndpoint builds the endpoint string (host + port)
pkg/utils/types.go:68
↓ 1 callersFunctionMiddleware
Middleware wraps the request with auth middleware
internal/handlers/auth/middleware/auth.go:22
↓ 1 callersFunctionMisc
Misc routes
pkg/server/routes/misc.go:12
↓ 1 callersFunctionMustGetInt32
MustGetInt32 will return the env as int32 or panic if it is not present
pkg/utils/env.go:36
↓ 1 callersFunctionNewExecutableSchema
region ************************** generated!.gotpl ************************** NewExecutableSchema creates an ExecutableSchema from the ResolverRoot
internal/gql/generated.go:24
↓ 1 callersFunctionNewLogger
NewLogger initializes the standard logger
internal/logger/main.go:27
↓ 1 callersFunctionParseAPIKey
ParseAPIKey parse api key from gin context
internal/handlers/auth/middleware/main.go:159
↓ 1 callersFunctionParseFilters
ParseFilters parses the filter and adds the where condition to the transaction
internal/orm/tools.go:14
↓ 1 callersFunctionParseToken
ParseToken parse jwt token from gin context
internal/handlers/auth/middleware/main.go:122
↓ 1 callersFunctionPlaygroundHandler
PlaygroundHandler defines a handler to expose the Playground
internal/handlers/gql.go:57
↓ 1 callersFunctionRegisterRoutes
RegisterRoutes register the routes for the server
pkg/server/router.go:11
↓ 1 callersFunctionRun
Run spins up the server
pkg/server/main.go:11
↓ 1 callersFunctionServer
Server meh
cmd/gql-server/config/server.go:10
↓ 1 callersFunctionServiceAutoMigration
ServiceAutoMigration migrates all the tables and modifications to the connected source
internal/orm/migration/main.go:60
next →1–100 of 285, ranked by callers