You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/gitbase/command/server.go
+21-20Lines changed: 21 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,7 @@ import (
16
16
gopilosa "github.com/pilosa/go-pilosa"
17
17
"github.com/sirupsen/logrus"
18
18
"github.com/uber/jaeger-client-go/config"
19
+
"gopkg.in/src-d/go-git.v4/plumbing/cache"
19
20
sqle "gopkg.in/src-d/go-mysql-server.v0"
20
21
"gopkg.in/src-d/go-mysql-server.v0/server"
21
22
"gopkg.in/src-d/go-mysql-server.v0/sql"
@@ -40,25 +41,25 @@ type Server struct {
40
41
pool*gitbase.RepositoryPool
41
42
namestring
42
43
43
-
Versionstring// Version of the application.
44
-
Directories []string`short:"d" long:"directories" description:"Path where the git repositories are located (standard and siva), multiple directories can be defined. Accepts globs."`
45
-
Depthint`long:"depth" default:"1000" description:"load repositories looking at less than <depth> nested subdirectories."`
46
-
Hoststring`long:"host" default:"localhost" description:"Host where the server is going to listen"`
47
-
Portint`short:"p" long:"port" default:"3306" description:"Port where the server is going to listen"`
48
-
Userstring`short:"u" long:"user" default:"root" description:"User name used for connection"`
49
-
Passwordstring`short:"P" long:"password" default:"" description:"Password used for connection"`
50
-
PilosaURLstring`long:"pilosa" default:"http://localhost:10101" description:"URL to your pilosa server" env:"PILOSA_ENDPOINT"`
51
-
IndexDirstring`short:"i" long:"index" default:"/var/lib/gitbase/index" description:"Directory where the gitbase indexes information will be persisted." env:"GITBASE_INDEX_DIR"`
52
-
DisableSquashbool`long:"no-squash" description:"Disables the table squashing."`
ReadOnlybool`short:"r" long:"readonly" description:"Only allow read queries. This disables creating and deleting indexes as well." env:"GITBASE_READONLY"`
55
-
Parallelismuint`long:"parallelism" description:"Maximum number of parallel threads per table. By default, it's the number of CPU cores. 0 means default, 1 means disabled."`
56
-
57
-
SkipGitErrorsbool// SkipGitErrors disables failing when Git errors are found.
58
-
DisableGitbool`long:"no-git" description:"disable the load of git standard repositories."`
59
-
DisableSivabool`long:"no-siva" description:"disable the load of siva files."`
60
-
Verbosebool`short:"v" description:"Activates the verbose mode"`
61
-
OldUastbool`long:"old-uast-serialization" description:"serialize uast in the old format" env:"GITBASE_UAST_SERIALIZATION"`
44
+
Versionstring// Version of the application.
45
+
Directories []string`short:"d" long:"directories" description:"Path where the git repositories are located (standard and siva), multiple directories can be defined. Accepts globs."`
46
+
Depthint`long:"depth" default:"1000" description:"load repositories looking at less than <depth> nested subdirectories."`
47
+
Hoststring`long:"host" default:"localhost" description:"Host where the server is going to listen"`
48
+
Portint`short:"p" long:"port" default:"3306" description:"Port where the server is going to listen"`
49
+
Userstring`short:"u" long:"user" default:"root" description:"User name used for connection"`
50
+
Passwordstring`short:"P" long:"password" default:"" description:"Password used for connection"`
51
+
PilosaURLstring`long:"pilosa" default:"http://localhost:10101" description:"URL to your pilosa server" env:"PILOSA_ENDPOINT"`
52
+
IndexDirstring`short:"i" long:"index" default:"/var/lib/gitbase/index" description:"Directory where the gitbase indexes information will be persisted." env:"GITBASE_INDEX_DIR"`
53
+
CacheSizecache.FileSize`long:"cache" default:"512" description:"Object cache size in megabytes" env:"GITBASE_CACHESIZE_MB"`
54
+
Parallelismuint`long:"parallelism" description:"Maximum number of parallel threads per table. By default, it's the number of CPU cores. 0 means default, 1 means disabled."`
55
+
DisableSquashbool`long:"no-squash" description:"Disables the table squashing."`
ReadOnlybool`short:"r" long:"readonly" description:"Only allow read queries. This disables creating and deleting indexes as well." env:"GITBASE_READONLY"`
58
+
SkipGitErrorsbool// SkipGitErrors disables failing when Git errors are found.
59
+
DisableGitbool`long:"no-git" description:"disable the load of git standard repositories."`
60
+
DisableSivabool`long:"no-siva" description:"disable the load of siva files."`
61
+
Verbosebool`short:"v" description:"Activates the verbose mode"`
62
+
OldUastbool`long:"old-uast-serialization" description:"serialize uast in the old format" env:"GITBASE_UAST_SERIALIZATION"`
0 commit comments