adjust imports
This commit is contained in:
@@ -3,7 +3,7 @@ package main
|
|||||||
import (
|
import (
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/owncloud/ocis-graph/pkg/command"
|
"github.com/owncloud/ocis/graph/pkg/command"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
module github.com/owncloud/ocis-graph
|
module github.com/owncloud/ocis/graph
|
||||||
|
|
||||||
go 1.13
|
go 1.13
|
||||||
|
|
||||||
@@ -5,8 +5,8 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/micro/cli/v2"
|
"github.com/micro/cli/v2"
|
||||||
"github.com/owncloud/ocis-graph/pkg/config"
|
"github.com/owncloud/ocis/graph/pkg/config"
|
||||||
"github.com/owncloud/ocis-graph/pkg/flagset"
|
"github.com/owncloud/ocis/graph/pkg/flagset"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Health is the entrypoint for the health command.
|
// Health is the entrypoint for the health command.
|
||||||
@@ -5,10 +5,10 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/micro/cli/v2"
|
"github.com/micro/cli/v2"
|
||||||
"github.com/owncloud/ocis-graph/pkg/config"
|
|
||||||
"github.com/owncloud/ocis-graph/pkg/flagset"
|
|
||||||
"github.com/owncloud/ocis-graph/pkg/version"
|
|
||||||
"github.com/owncloud/ocis-pkg/v2/log"
|
"github.com/owncloud/ocis-pkg/v2/log"
|
||||||
|
"github.com/owncloud/ocis/graph/pkg/config"
|
||||||
|
"github.com/owncloud/ocis/graph/pkg/flagset"
|
||||||
|
"github.com/owncloud/ocis/graph/pkg/version"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -17,7 +17,7 @@ func Execute() error {
|
|||||||
cfg := config.New()
|
cfg := config.New()
|
||||||
|
|
||||||
app := &cli.App{
|
app := &cli.App{
|
||||||
Name: "ocis-graph",
|
Name: "graph",
|
||||||
Version: version.String,
|
Version: version.String,
|
||||||
Usage: "Serve Graph API for oCIS",
|
Usage: "Serve Graph API for oCIS",
|
||||||
Compiled: version.Compiled(),
|
Compiled: version.Compiled(),
|
||||||
@@ -14,11 +14,11 @@ import (
|
|||||||
"github.com/oklog/run"
|
"github.com/oklog/run"
|
||||||
openzipkin "github.com/openzipkin/zipkin-go"
|
openzipkin "github.com/openzipkin/zipkin-go"
|
||||||
zipkinhttp "github.com/openzipkin/zipkin-go/reporter/http"
|
zipkinhttp "github.com/openzipkin/zipkin-go/reporter/http"
|
||||||
"github.com/owncloud/ocis-graph/pkg/config"
|
"github.com/owncloud/ocis/graph/pkg/config"
|
||||||
"github.com/owncloud/ocis-graph/pkg/flagset"
|
"github.com/owncloud/ocis/graph/pkg/flagset"
|
||||||
"github.com/owncloud/ocis-graph/pkg/metrics"
|
"github.com/owncloud/ocis/graph/pkg/metrics"
|
||||||
"github.com/owncloud/ocis-graph/pkg/server/debug"
|
"github.com/owncloud/ocis/graph/pkg/server/debug"
|
||||||
"github.com/owncloud/ocis-graph/pkg/server/http"
|
"github.com/owncloud/ocis/graph/pkg/server/http"
|
||||||
"go.opencensus.io/stats/view"
|
"go.opencensus.io/stats/view"
|
||||||
"go.opencensus.io/trace"
|
"go.opencensus.io/trace"
|
||||||
)
|
)
|
||||||
@@ -2,7 +2,7 @@ package flagset
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/micro/cli/v2"
|
"github.com/micro/cli/v2"
|
||||||
"github.com/owncloud/ocis-graph/pkg/config"
|
"github.com/owncloud/ocis/graph/pkg/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
// RootWithConfig applies cfg to the root flagset
|
// RootWithConfig applies cfg to the root flagset
|
||||||
@@ -3,8 +3,8 @@ package debug
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
"github.com/owncloud/ocis-graph/pkg/config"
|
|
||||||
"github.com/owncloud/ocis-pkg/v2/log"
|
"github.com/owncloud/ocis-pkg/v2/log"
|
||||||
|
"github.com/owncloud/ocis/graph/pkg/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Option defines a single option function.
|
// Option defines a single option function.
|
||||||
@@ -4,9 +4,9 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/owncloud/ocis-graph/pkg/config"
|
|
||||||
"github.com/owncloud/ocis-graph/pkg/version"
|
|
||||||
"github.com/owncloud/ocis-pkg/v2/service/debug"
|
"github.com/owncloud/ocis-pkg/v2/service/debug"
|
||||||
|
"github.com/owncloud/ocis/graph/pkg/config"
|
||||||
|
"github.com/owncloud/ocis/graph/pkg/version"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Server initializes the debug service and server.
|
// Server initializes the debug service and server.
|
||||||
@@ -4,9 +4,9 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
|
|
||||||
"github.com/micro/cli/v2"
|
"github.com/micro/cli/v2"
|
||||||
"github.com/owncloud/ocis-graph/pkg/config"
|
|
||||||
"github.com/owncloud/ocis-graph/pkg/metrics"
|
|
||||||
"github.com/owncloud/ocis-pkg/v2/log"
|
"github.com/owncloud/ocis-pkg/v2/log"
|
||||||
|
"github.com/owncloud/ocis/graph/pkg/config"
|
||||||
|
"github.com/owncloud/ocis/graph/pkg/metrics"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Option defines a single option function.
|
// Option defines a single option function.
|
||||||
@@ -1,11 +1,11 @@
|
|||||||
package http
|
package http
|
||||||
|
|
||||||
import (
|
import (
|
||||||
svc "github.com/owncloud/ocis-graph/pkg/service/v0"
|
|
||||||
"github.com/owncloud/ocis-graph/pkg/version"
|
|
||||||
"github.com/owncloud/ocis-pkg/v2/middleware"
|
"github.com/owncloud/ocis-pkg/v2/middleware"
|
||||||
"github.com/owncloud/ocis-pkg/v2/oidc"
|
"github.com/owncloud/ocis-pkg/v2/oidc"
|
||||||
"github.com/owncloud/ocis-pkg/v2/service/http"
|
"github.com/owncloud/ocis-pkg/v2/service/http"
|
||||||
|
svc "github.com/owncloud/ocis/graph/pkg/service/v0"
|
||||||
|
"github.com/owncloud/ocis/graph/pkg/version"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Server initializes the http service and server.
|
// Server initializes the http service and server.
|
||||||
@@ -5,9 +5,9 @@ import (
|
|||||||
|
|
||||||
gateway "github.com/cs3org/go-cs3apis/cs3/gateway/v1beta1"
|
gateway "github.com/cs3org/go-cs3apis/cs3/gateway/v1beta1"
|
||||||
"github.com/go-chi/chi"
|
"github.com/go-chi/chi"
|
||||||
"github.com/owncloud/ocis-graph/pkg/config"
|
|
||||||
"github.com/owncloud/ocis-graph/pkg/cs3"
|
|
||||||
"github.com/owncloud/ocis-pkg/v2/log"
|
"github.com/owncloud/ocis-pkg/v2/log"
|
||||||
|
"github.com/owncloud/ocis/graph/pkg/config"
|
||||||
|
"github.com/owncloud/ocis/graph/pkg/cs3"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Graph defines implements the business logic for Service.
|
// Graph defines implements the business logic for Service.
|
||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/owncloud/ocis-graph/pkg/service/v0/errorcode"
|
"github.com/owncloud/ocis/graph/pkg/service/v0/errorcode"
|
||||||
|
|
||||||
"github.com/go-chi/chi"
|
"github.com/go-chi/chi"
|
||||||
"github.com/go-chi/render"
|
"github.com/go-chi/render"
|
||||||
@@ -3,7 +3,7 @@ package svc
|
|||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/owncloud/ocis-graph/pkg/metrics"
|
"github.com/owncloud/ocis/graph/pkg/metrics"
|
||||||
)
|
)
|
||||||
|
|
||||||
// NewInstrument returns a service that instruments metrics.
|
// NewInstrument returns a service that instruments metrics.
|
||||||
@@ -3,8 +3,8 @@ package svc
|
|||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/owncloud/ocis-graph/pkg/config"
|
|
||||||
"github.com/owncloud/ocis-pkg/v2/log"
|
"github.com/owncloud/ocis-pkg/v2/log"
|
||||||
|
"github.com/owncloud/ocis/graph/pkg/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Option defines a single option function.
|
// Option defines a single option function.
|
||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/owncloud/ocis-graph/pkg/service/v0/errorcode"
|
"github.com/owncloud/ocis/graph/pkg/service/v0/errorcode"
|
||||||
|
|
||||||
"github.com/go-chi/chi"
|
"github.com/go-chi/chi"
|
||||||
"github.com/go-chi/render"
|
"github.com/go-chi/render"
|
||||||
Reference in New Issue
Block a user