diff --git a/.travis.yml b/.travis.yml index c743e486..a2f7b8a3 100755 --- a/.travis.yml +++ b/.travis.yml @@ -43,7 +43,7 @@ jobs: - bash scripts/travis/goConstChecker.sh - stage: GoLint Checker script: - - go get -u golang.org/x/lint + - go get -u golang.org/x/lint/golint - bash scripts/travis/goLintChecker.sh - stage: GoCyclo Checker script: diff --git a/server/handler/noop_auth_handler.go b/server/handler/noop_auth_handler.go index 801a402d..b4a3833d 100644 --- a/server/handler/noop_auth_handler.go +++ b/server/handler/noop_auth_handler.go @@ -36,7 +36,7 @@ func newDomainResolver() handler.Handler { return &NoopAuthHandler{} } -//Display is handler name +//Name is handler name func (bk *NoopAuthHandler) Name() string { return "auth-handler" } diff --git a/server/service/mongo/session/session.go b/server/service/mongo/session/session.go index e170b2e0..199a8bff 100644 --- a/server/service/mongo/session/session.go +++ b/server/service/mongo/session/session.go @@ -138,6 +138,7 @@ func GetDB() *mongo.Database { return db } +//CreateView run mongo db command to create view func CreateView(ctx context.Context, view, source string, pipeline mongo.Pipeline) error { sr := GetDB().RunCommand(ctx, bson.D{