Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cmelgarejo/go-gql-server
/ functions
Functions
285 in github.com/cmelgarejo/go-gql-server
⨍
Functions
285
◇
Types & classes
46
↓ 26 callers
Function
MustGet
MustGet will return the env or panic if it is not present
pkg/utils/env.go:11
↓ 20 callers
Method
marshalOString2ᚖstring
(ctx context.Context, sel ast.SelectionSet, v *string)
internal/gql/generated.go:4330
↓ 13 callers
Method
String
()
internal/gql/models/generated.go:166
↓ 12 callers
Method
unmarshalOString2ᚖstring
(ctx context.Context, v interface{})
internal/gql/generated.go:4322
↓ 9 callers
Function
Panic
Panic Log
internal/logger/main.go:111
↓ 8 callers
Function
GetTableName
GetTableName gets the db normalized tablename
pkg/utils/consts/main.go:83
↓ 7 callers
Function
MissingArg
MissingArg is a standard error message
internal/logger/main.go:84
↓ 6 callers
Function
Info
Info Log
internal/logger/main.go:91
↓ 6 callers
Function
authError
(c *gin.Context, err error)
internal/handlers/auth/middleware/auth.go:14
↓ 6 callers
Method
marshalNString2string
(ctx context.Context, sel ast.SelectionSet, v string)
internal/gql/generated.go:3741
↓ 6 callers
Method
marshalOString2string
(ctx context.Context, sel ast.SelectionSet, v string)
internal/gql/generated.go:4318
↓ 5 callers
Method
HasPermission
HasPermission verifies if user has a specific permission
internal/orm/models/user.go:155
↓ 5 callers
Function
MustGetBool
MustGetBool will return the env as boolean or panic if it is not present
pkg/utils/env.go:21
↓ 5 callers
Method
SchemaVersionedEndpoint
SchemaVersionedEndpoint builds the schema endpoint string (schema + host + port + version)
pkg/utils/types.go:85
↓ 5 callers
Function
ToSnakeCase
ToSnakeCase converts camelcase str to snake_case
pkg/utils/main.go:14
↓ 5 callers
Method
VersionedEndpoint
VersionedEndpoint builds the endpoint `string (host + port + version)
pkg/utils/types.go:80
↓ 4 callers
Function
Debug
Expose some log functions: Debug Log
internal/logger/main.go:53
↓ 4 callers
Function
Error
Error Log
internal/logger/main.go:121
↓ 4 callers
Function
Errorfn
Errorfn Log errors of a [fn] with format
internal/logger/main.go:63
↓ 4 callers
Method
_User
(ctx context.Context, sel ast.SelectionSet, obj *models.User)
internal/gql/generated.go:3271
↓ 4 callers
Method
___Type
(ctx context.Context, sel ast.SelectionSet, obj *introspection.Type)
internal/gql/generated.go:3618
↓ 4 callers
Function
getCurrentUser
(ctx context.Context)
internal/gql/resolvers/main.go:35
↓ 4 callers
Method
marshalOUser2ᚖ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 callers
Method
marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType
(ctx context.Context, sel ast.SelectionSet, v *introspection.Type)
internal/gql/generated.go:4546
↓ 4 callers
Method
unmarshalOID2ᚕᚖstring
(ctx context.Context, v interface{})
internal/gql/generated.go:4188
↓ 4 callers
Method
unmarshalOInt2ᚖint
(ctx context.Context, v interface{})
internal/gql/generated.go:4243
↓ 3 callers
Function
DBUserToGQLUser
DBUserToGQLUser transforms [user] db input to gql type
internal/gql/resolvers/transformations/users.go:14
↓ 3 callers
Method
Mutation
()
internal/gql/generated.go:39
↓ 3 callers
Function
addProviderToContext
(c *gin.Context, value interface{})
internal/handlers/auth/main.go:11
↓ 3 callers
Method
marshalNBoolean2bool
(ctx context.Context, sel ast.SelectionSet, v bool)
internal/gql/generated.go:3690
↓ 3 callers
Method
marshalNUser2ᚖ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 callers
Method
marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType
(ctx context.Context, sel ast.SelectionSet, v *introspection.Type)
internal/gql/generated.go:4087
↓ 3 callers
Method
marshalOTime2ᚖtimeᚐTime
(ctx context.Context, sel ast.SelectionSet, v *time.Time)
internal/gql/generated.go:4353
↓ 3 callers
Method
unmarshalOBoolean2bool
(ctx context.Context, v interface{})
internal/gql/generated.go:4157
↓ 2 callers
Method
CreateUser
(ctx context.Context, input models.UserInput)
internal/gql/generated.go:99
↓ 2 callers
Function
Debugf
Debugf Log
internal/logger/main.go:58
↓ 2 callers
Method
DeleteUser
(ctx context.Context, id string)
internal/gql/generated.go:101
↓ 2 callers
Method
FindUserByJWT
FindUserByJWT finds the user that is related to the APIKey token
internal/orm/main.go:75
↓ 2 callers
Function
FormatPermissionTag
FormatPermissionTag returns a string formatted action:entity permission
pkg/utils/consts/main.go:88
↓ 2 callers
Function
GothUserToDBUser
GothUserToDBUser transforms [user] goth to db model
internal/gql/resolvers/transformations/users.go:98
↓ 2 callers
Function
GothUserToDBUserProfile
GothUserToDBUserProfile transforms [user] goth to db model
internal/gql/resolvers/transformations/users.go:123
↓ 2 callers
Method
MarshalGQL
(w io.Writer)
internal/gql/models/generated.go:183
↓ 2 callers
Function
Ping
Ping is simple keep-alive/ping handler
internal/handlers/ping.go:10
↓ 2 callers
Method
Query
()
internal/gql/generated.go:40
↓ 2 callers
Method
UpdateUser
(ctx context.Context, id string, input models.UserInput)
internal/gql/generated.go:100
↓ 2 callers
Method
Users
(ctx context.Context, id *string, filters []*models.QueryFilter, limit *int, offset *int, orderBy *string, sor
internal/gql/generated.go:104
↓ 2 callers
Function
Warnf
Warnf Log
internal/logger/main.go:106
↓ 2 callers
Method
_UserProfile
(ctx context.Context, sel ast.SelectionSet, obj *models.UserProfile)
internal/gql/generated.go:3332
↓ 2 callers
Method
_Users
(ctx context.Context, sel ast.SelectionSet, obj *models.Users)
internal/gql/generated.go:3391
↓ 2 callers
Method
___Schema
(ctx context.Context, sel ast.SelectionSet, obj *introspection.Schema)
internal/gql/generated.go:3577
↓ 2 callers
Function
addToContext
(c *gin.Context, key utils.ContextKey, value interface{})
internal/handlers/auth/middleware/main.go:185
↓ 2 callers
Method
field_Mutation_createUser_args
endregion ************************** generated!.gotpl ************************** region ***************************** args.gotpl ******************
internal/gql/generated.go:581
↓ 2 callers
Method
field_Mutation_deleteUser_args
(ctx context.Context, rawArgs map[string]interface{})
internal/gql/generated.go:595
↓ 2 callers
Method
field_Mutation_updateUser_args
(ctx context.Context, rawArgs map[string]interface{})
internal/gql/generated.go:609
↓ 2 callers
Method
field_Query_users_args
(ctx context.Context, rawArgs map[string]interface{})
internal/gql/generated.go:645
↓ 2 callers
Method
field_User_profiles_args
(ctx context.Context, rawArgs map[string]interface{})
internal/gql/generated.go:699
↓ 2 callers
Function
getValidHost
(host string)
pkg/utils/types.go:60
↓ 2 callers
Method
marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue
(ctx context.Context, sel ast.SelectionSet, v introspection.InputValue)
internal/gql/generated.go:4005
↓ 2 callers
Method
marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ
(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue)
internal/gql/generated.go:4009
↓ 2 callers
Method
marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType
(ctx context.Context, sel ast.SelectionSet, v introspection.Type)
internal/gql/generated.go:4046
↓ 2 callers
Method
marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ
(ctx context.Context, sel ast.SelectionSet, v []introspection.Type)
internal/gql/generated.go:4506
↓ 2 callers
Function
tokenFromCookie
(c *gin.Context, key string)
internal/handlers/auth/middleware/main.go:105
↓ 2 callers
Function
tokenFromParam
(c *gin.Context, key string)
internal/handlers/auth/middleware/main.go:113
↓ 2 callers
Function
tokenFromQuery
(c *gin.Context, key string)
internal/handlers/auth/middleware/main.go:97
↓ 2 callers
Method
unmarshalNID2string
(ctx context.Context, v interface{})
internal/gql/generated.go:3700
↓ 2 callers
Method
unmarshalNString2string
(ctx context.Context, v interface{})
internal/gql/generated.go:3737
↓ 2 callers
Method
unmarshalNUserInput2githubᚗcomᚋcmelgarejoᚋgoᚑgqlᚑserverᚋinternalᚋgqlᚋmodelsᚐUserInput
(ctx context.Context, v interface{})
internal/gql/generated.go:3816
↓ 2 callers
Method
unmarshalOID2ᚖstring
(ctx context.Context, v interface{})
internal/gql/generated.go:4220
↓ 2 callers
Function
updateMigration
(db *gorm.DB)
internal/orm/migration/main.go:14
↓ 2 callers
Function
userCreateUpdate
## Helper functions
internal/gql/resolvers/users.go:57
↓ 1 callers
Function
Auth
Auth routes
pkg/server/routes/auth.go:11
↓ 1 callers
Function
Begin
Begin login with the auth provider
internal/handlers/auth/handlers.go:24
↓ 1 callers
Function
Callback
Callback callback to complete auth provider flow
internal/handlers/auth/handlers.go:38
↓ 1 callers
Function
DBUserProfileToGQLUserProfile
DBUserProfileToGQLUserProfile transforms [user] db input to gql type
internal/gql/resolvers/transformations/users.go:39
↓ 1 callers
Function
Errorf
Errorf Log
internal/logger/main.go:126
↓ 1 callers
Method
Exec
(ctx context.Context)
internal/gql/generated.go:396
↓ 1 callers
Function
Factory
Factory creates a db connection with the selected dialect and connection string
internal/orm/main.go:40
↓ 1 callers
Function
Fatal
Fatal Log
internal/logger/main.go:131
↓ 1 callers
Method
FindUserByAPIKey
FindUserByAPIKey finds the user that is related to the API key
internal/orm/main.go:60
↓ 1 callers
Function
FormatPermissionDesc
FormatPermissionDesc returns a string with the description of the action:entity permission
pkg/utils/consts/main.go:94
↓ 1 callers
Function
GQLInputUserToDBUser
GQLInputUserToDBUser transforms [user] gql input to db model
internal/gql/resolvers/transformations/users.go:62
↓ 1 callers
Function
GraphQL
GraphQL routes
pkg/server/routes/graphql.go:13
↓ 1 callers
Function
GraphqlHandler
GraphqlHandler defines the GQLGen GraphQL server handler
internal/handlers/gql.go:21
↓ 1 callers
Function
InitalizeAuthProviders
InitalizeAuthProviders does just that, with Goth providers
pkg/server/init.go:13
↓ 1 callers
Method
IsValid
()
internal/gql/models/generated.go:89
↓ 1 callers
Method
IsValid
()
internal/gql/models/generated.go:158
↓ 1 callers
Method
ListenEndpoint
ListenEndpoint builds the endpoint string (host + port)
pkg/utils/types.go:68
↓ 1 callers
Function
Middleware
Middleware wraps the request with auth middleware
internal/handlers/auth/middleware/auth.go:22
↓ 1 callers
Function
Misc
Misc routes
pkg/server/routes/misc.go:12
↓ 1 callers
Function
MustGetInt32
MustGetInt32 will return the env as int32 or panic if it is not present
pkg/utils/env.go:36
↓ 1 callers
Function
NewExecutableSchema
region ************************** generated!.gotpl ************************** NewExecutableSchema creates an ExecutableSchema from the ResolverRoot
internal/gql/generated.go:24
↓ 1 callers
Function
NewLogger
NewLogger initializes the standard logger
internal/logger/main.go:27
↓ 1 callers
Function
ParseAPIKey
ParseAPIKey parse api key from gin context
internal/handlers/auth/middleware/main.go:159
↓ 1 callers
Function
ParseFilters
ParseFilters parses the filter and adds the where condition to the transaction
internal/orm/tools.go:14
↓ 1 callers
Function
ParseToken
ParseToken parse jwt token from gin context
internal/handlers/auth/middleware/main.go:122
↓ 1 callers
Function
PlaygroundHandler
PlaygroundHandler defines a handler to expose the Playground
internal/handlers/gql.go:57
↓ 1 callers
Function
RegisterRoutes
RegisterRoutes register the routes for the server
pkg/server/router.go:11
↓ 1 callers
Function
Run
Run spins up the server
pkg/server/main.go:11
↓ 1 callers
Function
Server
Server meh
cmd/gql-server/config/server.go:10
↓ 1 callers
Function
ServiceAutoMigration
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