Compare commits
merge into: rpdata:master
rpdata:1.0
rpdata:1.1
rpdata:master
rpdata:module-madness
rpdata:module-madness-pointers
rpdata:thegreatrefactor
pull from: rpdata:module-madness
rpdata:1.0
rpdata:1.1
rpdata:master
rpdata:module-madness
rpdata:module-madness-pointers
rpdata:thegreatrefactor
2 Commits
master
...
module-mad
Author | SHA1 | Message | Date |
---|---|---|---|
Gisle Aune | 162ccf6bfb |
The great module madness continus, now with pointers.
|
6 years ago |
Gisle Aune | 7e3dc49635 |
Basic stuff, doesn't compile
|
6 years ago |
31 changed files with 423 additions and 510 deletions
-
10Dockerfile
-
250Gopkg.lock
-
43Gopkg.toml
-
34go.mod
-
90go.sum
-
6graph2/graph.go
-
2graph2/queries/changes.go
-
27graph2/queries/channel.go
-
69graph2/queries/chapter.go
-
76graph2/queries/character.go
-
57graph2/queries/comment.go
-
9graph2/queries/file.go
-
37graph2/queries/log.go
-
39graph2/queries/post.go
-
65graph2/queries/story.go
-
6graph2/queries/token.go
-
8graph2/types/change.go
-
16graph2/types/file.go
-
4graph2/types/log.go
-
9graph2/types/token.go
-
10internal/loader/channel.go
-
12models/changes/subscribe.go
-
6models/channel.go
-
6models/chapter.go
-
6models/character.go
-
6models/comment.go
-
6models/file.go
-
6models/log.go
-
6models/post.go
-
6models/story.go
-
6models/tag.go
@ -1,250 +0,0 @@ |
|||||
# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. |
|
||||
|
|
||||
|
|
||||
[[projects]] |
|
||||
name = "github.com/99designs/gqlgen" |
|
||||
packages = [ |
|
||||
".", |
|
||||
"cmd", |
|
||||
"codegen", |
|
||||
"codegen/templates", |
|
||||
"complexity", |
|
||||
"graphql", |
|
||||
"graphql/introspection", |
|
||||
"handler", |
|
||||
"internal/gopath" |
|
||||
] |
|
||||
revision = "636435b68700211441303f1a5ed92f3768ba5774" |
|
||||
version = "v0.5.1" |
|
||||
|
|
||||
[[projects]] |
|
||||
name = "github.com/agnivade/levenshtein" |
|
||||
packages = ["."] |
|
||||
revision = "3d21ba515fe27b856f230847e856431ae1724adc" |
|
||||
version = "v1.0.0" |
|
||||
|
|
||||
[[projects]] |
|
||||
name = "github.com/davecgh/go-spew" |
|
||||
packages = ["spew"] |
|
||||
revision = "8991bc29aa16c548c550c7ff78260e27b9ab7c73" |
|
||||
version = "v1.1.1" |
|
||||
|
|
||||
[[projects]] |
|
||||
name = "github.com/dgrijalva/jwt-go" |
|
||||
packages = ["."] |
|
||||
revision = "06ea1031745cb8b3dab3f6a236daf2b0aa468b7e" |
|
||||
version = "v3.2.0" |
|
||||
|
|
||||
[[projects]] |
|
||||
branch = "master" |
|
||||
name = "github.com/dustin/go-humanize" |
|
||||
packages = ["."] |
|
||||
revision = "bb3d318650d48840a39aa21a027c6630e198e626" |
|
||||
|
|
||||
[[projects]] |
|
||||
branch = "master" |
|
||||
name = "github.com/globalsign/mgo" |
|
||||
packages = [ |
|
||||
".", |
|
||||
"bson", |
|
||||
"internal/json", |
|
||||
"internal/sasl", |
|
||||
"internal/scram" |
|
||||
] |
|
||||
revision = "f76e4f9da92ecd56e3be26f5ba92580af1ef97b4" |
|
||||
|
|
||||
[[projects]] |
|
||||
name = "github.com/go-ini/ini" |
|
||||
packages = ["."] |
|
||||
revision = "ace140f73450505f33e8b8418216792275ae82a7" |
|
||||
version = "v1.35.0" |
|
||||
|
|
||||
[[projects]] |
|
||||
name = "github.com/go-sql-driver/mysql" |
|
||||
packages = ["."] |
|
||||
revision = "d523deb1b23d913de5bdada721a6071e71283618" |
|
||||
version = "v1.4.0" |
|
||||
|
|
||||
[[projects]] |
|
||||
name = "github.com/gorilla/websocket" |
|
||||
packages = ["."] |
|
||||
revision = "66b9c49e59c6c48f0ffce28c2d8b8a5678502c6d" |
|
||||
version = "v1.4.0" |
|
||||
|
|
||||
[[projects]] |
|
||||
name = "github.com/graph-gophers/dataloader" |
|
||||
packages = ["."] |
|
||||
revision = "78139374585c29dcb97b8f33089ed11959e4be59" |
|
||||
version = "v5" |
|
||||
|
|
||||
[[projects]] |
|
||||
name = "github.com/hashicorp/golang-lru" |
|
||||
packages = [ |
|
||||
".", |
|
||||
"simplelru" |
|
||||
] |
|
||||
revision = "20f1fb78b0740ba8c3cb143a61e86ba5c8669768" |
|
||||
version = "v0.5.0" |
|
||||
|
|
||||
[[projects]] |
|
||||
branch = "master" |
|
||||
name = "github.com/jmoiron/sqlx" |
|
||||
packages = [ |
|
||||
".", |
|
||||
"reflectx" |
|
||||
] |
|
||||
revision = "0dae4fefe7c0e190f7b5a78dac28a1c82cc8d849" |
|
||||
|
|
||||
[[projects]] |
|
||||
name = "github.com/minio/minio-go" |
|
||||
packages = [ |
|
||||
".", |
|
||||
"pkg/credentials", |
|
||||
"pkg/encrypt", |
|
||||
"pkg/s3signer", |
|
||||
"pkg/s3utils", |
|
||||
"pkg/set" |
|
||||
] |
|
||||
revision = "3d2d02921f0510e9d1f66ef77a265b8dddd36992" |
|
||||
version = "6.0.0" |
|
||||
|
|
||||
[[projects]] |
|
||||
branch = "master" |
|
||||
name = "github.com/mitchellh/go-homedir" |
|
||||
packages = ["."] |
|
||||
revision = "b8bc1bf767474819792c23f32d8286a45736f1c6" |
|
||||
|
|
||||
[[projects]] |
|
||||
name = "github.com/opentracing/opentracing-go" |
|
||||
packages = [ |
|
||||
".", |
|
||||
"log" |
|
||||
] |
|
||||
revision = "1949ddbfd147afd4d964a9f00b24eb291e0e7c38" |
|
||||
version = "v1.0.2" |
|
||||
|
|
||||
[[projects]] |
|
||||
name = "github.com/pkg/errors" |
|
||||
packages = ["."] |
|
||||
revision = "645ef00459ed84a119197bfb8d8205042c6df63d" |
|
||||
version = "v0.8.0" |
|
||||
|
|
||||
[[projects]] |
|
||||
name = "github.com/pmezard/go-difflib" |
|
||||
packages = ["difflib"] |
|
||||
revision = "792786c7400a136282c1664665ae0a8db921c6c2" |
|
||||
version = "v1.0.0" |
|
||||
|
|
||||
[[projects]] |
|
||||
name = "github.com/sirupsen/logrus" |
|
||||
packages = ["."] |
|
||||
revision = "c155da19408a8799da419ed3eeb0cb5db0ad5dbc" |
|
||||
version = "v1.0.5" |
|
||||
|
|
||||
[[projects]] |
|
||||
name = "github.com/stretchr/testify" |
|
||||
packages = ["assert"] |
|
||||
revision = "f35b8ab0b5a2cef36673838d662e249dd9c94686" |
|
||||
version = "v1.2.2" |
|
||||
|
|
||||
[[projects]] |
|
||||
name = "github.com/urfave/cli" |
|
||||
packages = ["."] |
|
||||
revision = "cfb38830724cc34fedffe9a2a29fb54fa9169cd1" |
|
||||
version = "v1.20.0" |
|
||||
|
|
||||
[[projects]] |
|
||||
branch = "master" |
|
||||
name = "github.com/vektah/gqlparser" |
|
||||
packages = [ |
|
||||
".", |
|
||||
"ast", |
|
||||
"gqlerror", |
|
||||
"lexer", |
|
||||
"parser", |
|
||||
"validator", |
|
||||
"validator/rules" |
|
||||
] |
|
||||
revision = "14e83ae06ec152e6d0afb9766a00e0c0918aa8fc" |
|
||||
|
|
||||
[[projects]] |
|
||||
branch = "master" |
|
||||
name = "golang.org/x/crypto" |
|
||||
packages = [ |
|
||||
"argon2", |
|
||||
"blake2b", |
|
||||
"ssh/terminal" |
|
||||
] |
|
||||
revision = "d6449816ce06963d9d136eee5a56fca5b0616e7e" |
|
||||
|
|
||||
[[projects]] |
|
||||
branch = "master" |
|
||||
name = "golang.org/x/net" |
|
||||
packages = [ |
|
||||
"context", |
|
||||
"idna", |
|
||||
"lex/httplex" |
|
||||
] |
|
||||
revision = "a35a21de978d84ffc92f010a153705b170b2f9d1" |
|
||||
|
|
||||
[[projects]] |
|
||||
branch = "master" |
|
||||
name = "golang.org/x/sys" |
|
||||
packages = [ |
|
||||
"unix", |
|
||||
"windows" |
|
||||
] |
|
||||
revision = "2f57af4873d00d535c5c9028850aa2152e6a5566" |
|
||||
|
|
||||
[[projects]] |
|
||||
name = "golang.org/x/text" |
|
||||
packages = [ |
|
||||
"collate", |
|
||||
"collate/build", |
|
||||
"internal/colltab", |
|
||||
"internal/gen", |
|
||||
"internal/tag", |
|
||||
"internal/triegen", |
|
||||
"internal/ucd", |
|
||||
"language", |
|
||||
"secure/bidirule", |
|
||||
"transform", |
|
||||
"unicode/bidi", |
|
||||
"unicode/cldr", |
|
||||
"unicode/norm", |
|
||||
"unicode/rangetable" |
|
||||
] |
|
||||
revision = "f21a4dfb5e38f5895301dc265a8def02365cc3d0" |
|
||||
version = "v0.3.0" |
|
||||
|
|
||||
[[projects]] |
|
||||
branch = "master" |
|
||||
name = "golang.org/x/tools" |
|
||||
packages = [ |
|
||||
"go/ast/astutil", |
|
||||
"go/buildutil", |
|
||||
"go/internal/cgo", |
|
||||
"go/loader", |
|
||||
"imports", |
|
||||
"internal/fastwalk" |
|
||||
] |
|
||||
revision = "677d2ff680c188ddb7dcd2bfa6bc7d3f2f2f75b2" |
|
||||
|
|
||||
[[projects]] |
|
||||
name = "google.golang.org/appengine" |
|
||||
packages = ["cloudsql"] |
|
||||
revision = "b1f26356af11148e710935ed1ac8a7f5702c7612" |
|
||||
version = "v1.1.0" |
|
||||
|
|
||||
[[projects]] |
|
||||
name = "gopkg.in/yaml.v2" |
|
||||
packages = ["."] |
|
||||
revision = "5420a8b6744d3b0345ab293f6fcba19c978f1183" |
|
||||
version = "v2.2.1" |
|
||||
|
|
||||
[solve-meta] |
|
||||
analyzer-name = "dep" |
|
||||
analyzer-version = 1 |
|
||||
inputs-digest = "eb8fc099a909f5d8f756b24fbcb6cc2856e132bd3ed16b8fe512f22fabb99596" |
|
||||
solver-name = "gps-cdcl" |
|
||||
solver-version = 1 |
|
@ -1,43 +0,0 @@ |
|||||
# Gopkg.toml example |
|
||||
# |
|
||||
# Refer to https://golang.github.io/dep/docs/Gopkg.toml.html |
|
||||
# for detailed Gopkg.toml documentation. |
|
||||
# |
|
||||
# required = ["github.com/user/thing/cmd/thing"] |
|
||||
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"] |
|
||||
# |
|
||||
# [[constraint]] |
|
||||
# name = "github.com/user/project" |
|
||||
# version = "1.0.0" |
|
||||
# |
|
||||
# [[constraint]] |
|
||||
# name = "github.com/user/project2" |
|
||||
# branch = "dev" |
|
||||
# source = "github.com/myfork/project2" |
|
||||
# |
|
||||
# [[override]] |
|
||||
# name = "github.com/x/y" |
|
||||
# version = "2.4.0" |
|
||||
# |
|
||||
# [prune] |
|
||||
# non-go = false |
|
||||
# go-tests = true |
|
||||
# unused-packages = true |
|
||||
|
|
||||
required = [ "github.com/99designs/gqlgen" ] |
|
||||
|
|
||||
[[constraint]] |
|
||||
branch = "master" |
|
||||
name = "github.com/globalsign/mgo" |
|
||||
|
|
||||
[[constraint]] |
|
||||
name = "github.com/minio/minio-go" |
|
||||
version = "6.0.0" |
|
||||
|
|
||||
[prune] |
|
||||
go-tests = true |
|
||||
unused-packages = true |
|
||||
|
|
||||
[[constraint]] |
|
||||
name = "github.com/stretchr/testify" |
|
||||
version = "1.2.2" |
|
@ -0,0 +1,34 @@ |
|||||
|
module git.aiterp.net/rpdata/api |
||||
|
|
||||
|
go 1.12 |
||||
|
|
||||
|
require ( |
||||
|
github.com/99designs/gqlgen v0.8.0 |
||||
|
github.com/agnivade/levenshtein v1.0.1 |
||||
|
github.com/davecgh/go-spew v1.1.1 |
||||
|
github.com/dgrijalva/jwt-go v3.2.0+incompatible |
||||
|
github.com/dustin/go-humanize v0.0.0-20171111073723-bb3d318650d4 |
||||
|
github.com/globalsign/mgo v0.0.0-20180403085842-f76e4f9da92e |
||||
|
github.com/go-ini/ini v1.35.0 |
||||
|
github.com/go-sql-driver/mysql v1.4.0 |
||||
|
github.com/gorilla/websocket v1.4.0 |
||||
|
github.com/graph-gophers/dataloader v0.0.0-20180104184831-78139374585c |
||||
|
github.com/hashicorp/golang-lru v0.5.0 |
||||
|
github.com/jmoiron/sqlx v0.0.0-20180614180643-0dae4fefe7c0 |
||||
|
github.com/minio/minio-go v0.0.0-20180409193742-3d2d02921f05 |
||||
|
github.com/mitchellh/go-homedir v0.0.0-20161203194507-b8bc1bf76747 |
||||
|
github.com/opentracing/opentracing-go v1.0.2 |
||||
|
github.com/pkg/errors v0.8.1 |
||||
|
github.com/pmezard/go-difflib v1.0.0 |
||||
|
github.com/sirupsen/logrus v1.0.5 |
||||
|
github.com/stretchr/testify v1.3.0 |
||||
|
github.com/urfave/cli v1.20.0 |
||||
|
github.com/vektah/gqlparser v1.1.0 |
||||
|
golang.org/x/crypto v0.0.0-20180411161317-d6449816ce06 |
||||
|
golang.org/x/net v0.0.0-20180416171110-a35a21de978d |
||||
|
golang.org/x/sys v0.0.0-20180416112224-2f57af4873d0 |
||||
|
golang.org/x/text v0.3.0 |
||||
|
golang.org/x/tools v0.0.0-20190125232054-d66bd3c5d5a6 |
||||
|
google.golang.org/appengine v1.1.0 |
||||
|
gopkg.in/yaml.v2 v2.2.2 |
||||
|
) |
@ -0,0 +1,90 @@ |
|||||
|
github.com/99designs/gqlgen v0.5.1 h1:cRsbpZgX83PrXb0/hj5EkNdmaVN4l/Eii81Z8LCexgY= |
||||
|
github.com/99designs/gqlgen v0.5.1/go.mod h1:KSQDfLlTTGmzlRgLGm6HeKKKo598l5E2svEM6Nz2Jnw= |
||||
|
github.com/99designs/gqlgen v0.8.0 h1:ZBteuSgeeFwn+mztjDqQZQdVa9pqslmPnDeCovcnc0Y= |
||||
|
github.com/99designs/gqlgen v0.8.0/go.mod h1:st7qHA6ssU3uRZkmv+wzrzgX4srvIqEIdE5iuRW8GhE= |
||||
|
github.com/99designs/gqlgen v0.8.3 h1:I6bMglXNKkn4KlvkSMzqZw53e1N2FF9Gud4NmsOxqiA= |
||||
|
github.com/99designs/gqlgen v0.8.3/go.mod h1:aLyJw9xUgdJxZ8EqNQxo2pGFhXXJ/hq8t7J4yn8TgI4= |
||||
|
github.com/agnivade/levenshtein v1.0.0 h1:q+77q31bLT5jhN3BHKA1276nUEdbz7XjDa0o5dRKcZ0= |
||||
|
github.com/agnivade/levenshtein v1.0.0/go.mod h1:CURSv5d9Uaml+FovSIICkLbAUZ9S4RqaHDIsdSBg7lM= |
||||
|
github.com/agnivade/levenshtein v1.0.1 h1:3oJU7J3FGFmyhn8KHjmVaZCN5hxTr7GxgRue+sxIXdQ= |
||||
|
github.com/agnivade/levenshtein v1.0.1/go.mod h1:CURSv5d9Uaml+FovSIICkLbAUZ9S4RqaHDIsdSBg7lM= |
||||
|
github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883/go.mod h1:rCTlJbsFo29Kk6CurOXKm700vrz8f0KW0JNfpkRJY/8= |
||||
|
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= |
||||
|
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= |
||||
|
github.com/dgrijalva/jwt-go v3.2.0+incompatible h1:7qlOGliEKZXTDg6OTjfoBKDXWrumCAMpl/TFQ4/5kLM= |
||||
|
github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= |
||||
|
github.com/dustin/go-humanize v0.0.0-20171111073723-bb3d318650d4/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= |
||||
|
github.com/globalsign/mgo v0.0.0-20180403085842-f76e4f9da92e h1:hmrbHva/wKD6X4M7pgHVbg/KfVV1wwgr1NEkQaVD3rU= |
||||
|
github.com/globalsign/mgo v0.0.0-20180403085842-f76e4f9da92e/go.mod h1:xkRDCp4j0OGD1HRkm4kmhM+pmpv3AKq5SU7GMg4oO/Q= |
||||
|
github.com/go-chi/chi v3.3.2+incompatible/go.mod h1:eB3wogJHnLi3x/kFX2A+IbTBlXxmMeXJVKy9tTv1XzQ= |
||||
|
github.com/go-ini/ini v1.35.0 h1:D/my3+xOfqZMkJpciRcyqU7XMBUgiZa9qXjZIa8uv2k= |
||||
|
github.com/go-ini/ini v1.35.0/go.mod h1:ByCAeIL28uOIIG0E3PJtZPDL8WnHpFKFOtgjp+3Ies8= |
||||
|
github.com/go-sql-driver/mysql v1.4.0 h1:7LxgVwFb2hIQtMm87NdgAVfXjnt4OePseqT1tKx+opk= |
||||
|
github.com/go-sql-driver/mysql v1.4.0/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= |
||||
|
github.com/gogo/protobuf v1.0.0/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= |
||||
|
github.com/gorilla/context v0.0.0-20160226214623-1ea25387ff6f/go.mod h1:kBGZzfjB9CEq2AlWe17Uuf7NDRt0dE0s8S51q0aT7Yg= |
||||
|
github.com/gorilla/mux v1.6.1/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= |
||||
|
github.com/gorilla/websocket v1.2.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= |
||||
|
github.com/gorilla/websocket v1.4.0 h1:WDFjx/TMzVgy9VdMMQi2K2Emtwi2QcUQsztZ/zLaH/Q= |
||||
|
github.com/gorilla/websocket v1.4.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= |
||||
|
github.com/graph-gophers/dataloader v0.0.0-20180104184831-78139374585c h1:94S+uoVVMpQAEOrqGjCDyUdML4dJDkh6aC4MYmXECg4= |
||||
|
github.com/graph-gophers/dataloader v0.0.0-20180104184831-78139374585c/go.mod h1:jk4jk0c5ZISbKaMe8WsVopGB5/15GvGHMdMdPtwlRp4= |
||||
|
github.com/hashicorp/golang-lru v0.5.0 h1:CL2msUPvZTLb5O648aiLNJw3hnBxN2+1Jq8rCOH9wdo= |
||||
|
github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= |
||||
|
github.com/jmoiron/sqlx v0.0.0-20180614180643-0dae4fefe7c0 h1:5B0uxl2lzNRVkJVg+uGHxWtRt4C0Wjc6kJKo5XYx8xE= |
||||
|
github.com/jmoiron/sqlx v0.0.0-20180614180643-0dae4fefe7c0/go.mod h1:IiEW3SEiiErVyFdH8NTuWjSifiEQKUoyK3LNqr2kCHU= |
||||
|
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= |
||||
|
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= |
||||
|
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= |
||||
|
github.com/minio/minio-go v0.0.0-20180409193742-3d2d02921f05 h1:YEyFCqmHcmbcTLqZ7yEAg7VIUat6PuDzGbIctZy888k= |
||||
|
github.com/minio/minio-go v0.0.0-20180409193742-3d2d02921f05/go.mod h1:7guKYtitv8dktvNUGrhzmNlA5wrAABTQXCoesZdFQO8= |
||||
|
github.com/mitchellh/go-homedir v0.0.0-20161203194507-b8bc1bf76747 h1:eQox4Rh4ewJF+mqYPxCkmBAirRnPaHEB26UkNuPyjlk= |
||||
|
github.com/mitchellh/go-homedir v0.0.0-20161203194507-b8bc1bf76747/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= |
||||
|
github.com/mitchellh/mapstructure v0.0.0-20180203102830-a4e142e9c047/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= |
||||
|
github.com/opentracing/basictracer-go v1.0.0/go.mod h1:QfBfYuafItcjQuMwinw9GhYKwFXS9KnPs5lxoYwgW74= |
||||
|
github.com/opentracing/opentracing-go v1.0.2 h1:3jA2P6O1F9UOrWVpwrIo17pu01KWvNWg4X946/Y5Zwg= |
||||
|
github.com/opentracing/opentracing-go v1.0.2/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= |
||||
|
github.com/pkg/errors v0.8.0 h1:WdK/asTD0HN+q6hsWO3/vpuAkAr+tw6aNJNDFFf0+qw= |
||||
|
github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= |
||||
|
github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I= |
||||
|
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= |
||||
|
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= |
||||
|
github.com/rs/cors v1.6.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU= |
||||
|
github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= |
||||
|
github.com/shurcooL/httpfs v0.0.0-20171119174359-809beceb2371/go.mod h1:ZY1cvUeJuFPAdZ/B6v7RHavJWZn2YPVFQ1OSXhCGOkg= |
||||
|
github.com/shurcooL/vfsgen v0.0.0-20180121065927-ffb13db8def0/go.mod h1:TrYk7fJVaAttu97ZZKrO9UbRa8izdowaMIZcxYMbVaw= |
||||
|
github.com/sirupsen/logrus v1.0.5/go.mod h1:pMByvHTf9Beacp5x1UXfOR9xyW/9antXMhjMPG0dEzc= |
||||
|
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= |
||||
|
github.com/stretchr/testify v1.2.1/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= |
||||
|
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= |
||||
|
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= |
||||
|
github.com/urfave/cli v1.20.0 h1:fDqGv3UG/4jbVl/QkFwEdddtEDjh/5Ov6X+0B/3bPaw= |
||||
|
github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= |
||||
|
github.com/vektah/dataloaden v0.2.0/go.mod h1:vxM6NuRlgiR0M6wbVTJeKp9vQIs81ZMfCYO+4yq/jbE= |
||||
|
github.com/vektah/gqlparser v0.0.0-20180831041411-14e83ae06ec1 h1:FYOXUtr3sYR9shto7Q/aQ1B0Onyk77aws9wGOORiz+I= |
||||
|
github.com/vektah/gqlparser v0.0.0-20180831041411-14e83ae06ec1/go.mod h1:K4QdSSpS2XiHHwzb18kWh3iBljB8rLC8okGXsnQy3Nc= |
||||
|
github.com/vektah/gqlparser v1.1.0 h1:3668p2gUlO+PiS81x957Rpr3/FPRWG6cxgCXAvTS1hw= |
||||
|
github.com/vektah/gqlparser v1.1.0/go.mod h1:1ycwN7Ij5njmMkPPAOaRFY4rET2Enx7IkVv3vaXspKw= |
||||
|
github.com/vektah/gqlparser v1.1.2 h1:ZsyLGn7/7jDNI+y4SEhI4yAxRChlv15pUHMjijT+e68= |
||||
|
github.com/vektah/gqlparser v1.1.2/go.mod h1:1ycwN7Ij5njmMkPPAOaRFY4rET2Enx7IkVv3vaXspKw= |
||||
|
golang.org/x/crypto v0.0.0-20180411161317-d6449816ce06 h1:EOqG0JqGlLr+punVB69jvWCv/ErZKGlC7PMdyHfv+Bc= |
||||
|
golang.org/x/crypto v0.0.0-20180411161317-d6449816ce06/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= |
||||
|
golang.org/x/net v0.0.0-20180404174746-b3c676e531a6/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= |
||||
|
golang.org/x/net v0.0.0-20180416171110-a35a21de978d h1:O2P57H5Cc+d+DJos+iweraI9rmzMYwV+45vkZdDY0Oo= |
||||
|
golang.org/x/net v0.0.0-20180416171110-a35a21de978d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= |
||||
|
golang.org/x/sys v0.0.0-20180416112224-2f57af4873d0/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= |
||||
|
golang.org/x/text v0.3.0 h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg= |
||||
|
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= |
||||
|
golang.org/x/tools v0.0.0-20180911133044-677d2ff680c1 h1:dzEuQYa6+a3gROnSlgly5ERUm4SZKJt+dh+4iSbO+bI= |
||||
|
golang.org/x/tools v0.0.0-20180911133044-677d2ff680c1/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= |
||||
|
golang.org/x/tools v0.0.0-20190125232054-d66bd3c5d5a6 h1:iZgcI2DDp6zW5v9Z/5+f0NuqoxNdmzg4hivjk2WLXpY= |
||||
|
golang.org/x/tools v0.0.0-20190125232054-d66bd3c5d5a6/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= |
||||
|
google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= |
||||
|
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= |
||||
|
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= |
||||
|
gopkg.in/yaml.v2 v2.2.1 h1:mUhvW9EsL+naU5Q3cakzfE91YhliOondGd6ZrsDBHQE= |
||||
|
gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= |
||||
|
gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw= |
||||
|
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= |
||||
|
sourcegraph.com/sourcegraph/appdash v0.0.0-20180110180208-2cc67fd64755/go.mod h1:hI742Nqp5OhwiqlzhgfbWU4mW4yO10fP+LoT9WOswdU= |
||||
|
sourcegraph.com/sourcegraph/appdash-data v0.0.0-20151005221446-73f23eafcf67/go.mod h1:L5q+DGLGOQFpo1snNEkLOJT2d1YTW66rWNzatr3He1k= |
@ -1,16 +0,0 @@ |
|||||
package types |
|
||||
|
|
||||
import ( |
|
||||
"context" |
|
||||
|
|
||||
"git.aiterp.net/rpdata/api/models" |
|
||||
) |
|
||||
|
|
||||
type fileResolver struct{} |
|
||||
|
|
||||
func (r *fileResolver) Size(ctx context.Context, file *models.File) (int, error) { |
|
||||
return int(file.Size), nil |
|
||||
} |
|
||||
|
|
||||
// FileResolver is a resolver
|
|
||||
var FileResolver fileResolver |
|
Write
Preview
Loading…
Cancel
Save
Reference in new issue