├── .gitignore ├── README.md ├── go.mod ├── go.sum ├── gqlgen.yml ├── graph ├── generated │ └── generated.go ├── model │ └── models_gen.go ├── resolver.go ├── schema.graphql ├── schema.graphqls └── schema.resolvers.go ├── internal ├── auth │ └── middleware.go ├── links │ └── links.go ├── pkg │ └── db │ │ ├── migrations │ │ └── mysql │ │ │ ├── 000001_create_users_table.down.sql │ │ │ ├── 000001_create_users_table.up.sql │ │ │ ├── 000002_create_links_table.down.sql │ │ │ └── 000002_create_links_table.up.sql │ │ └── mysql │ │ └── mysql.go └── users │ ├── errors.go │ └── users.go ├── pkg └── jwt │ └── jwt.go └── server.go /.gitignore: -------------------------------------------------------------------------------- 1 | .idea -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/howtographql/graphql-golang/HEAD/README.md -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/howtographql/graphql-golang/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/howtographql/graphql-golang/HEAD/go.sum -------------------------------------------------------------------------------- /gqlgen.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/howtographql/graphql-golang/HEAD/gqlgen.yml -------------------------------------------------------------------------------- /graph/generated/generated.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/howtographql/graphql-golang/HEAD/graph/generated/generated.go -------------------------------------------------------------------------------- /graph/model/models_gen.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/howtographql/graphql-golang/HEAD/graph/model/models_gen.go -------------------------------------------------------------------------------- /graph/resolver.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/howtographql/graphql-golang/HEAD/graph/resolver.go -------------------------------------------------------------------------------- /graph/schema.graphql: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /graph/schema.graphqls: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/howtographql/graphql-golang/HEAD/graph/schema.graphqls -------------------------------------------------------------------------------- /graph/schema.resolvers.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/howtographql/graphql-golang/HEAD/graph/schema.resolvers.go -------------------------------------------------------------------------------- /internal/auth/middleware.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/howtographql/graphql-golang/HEAD/internal/auth/middleware.go -------------------------------------------------------------------------------- /internal/links/links.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/howtographql/graphql-golang/HEAD/internal/links/links.go -------------------------------------------------------------------------------- /internal/pkg/db/migrations/mysql/000001_create_users_table.down.sql: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /internal/pkg/db/migrations/mysql/000001_create_users_table.up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/howtographql/graphql-golang/HEAD/internal/pkg/db/migrations/mysql/000001_create_users_table.up.sql -------------------------------------------------------------------------------- /internal/pkg/db/migrations/mysql/000002_create_links_table.down.sql: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /internal/pkg/db/migrations/mysql/000002_create_links_table.up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/howtographql/graphql-golang/HEAD/internal/pkg/db/migrations/mysql/000002_create_links_table.up.sql -------------------------------------------------------------------------------- /internal/pkg/db/mysql/mysql.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/howtographql/graphql-golang/HEAD/internal/pkg/db/mysql/mysql.go -------------------------------------------------------------------------------- /internal/users/errors.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/howtographql/graphql-golang/HEAD/internal/users/errors.go -------------------------------------------------------------------------------- /internal/users/users.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/howtographql/graphql-golang/HEAD/internal/users/users.go -------------------------------------------------------------------------------- /pkg/jwt/jwt.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/howtographql/graphql-golang/HEAD/pkg/jwt/jwt.go -------------------------------------------------------------------------------- /server.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/howtographql/graphql-golang/HEAD/server.go --------------------------------------------------------------------------------