10979: Add missing SqueueChecker initialization.
[arvados.git] / services / ws / config.go
1 package main
2
3 import (
4         "time"
5
6         "git.curoverse.com/arvados.git/sdk/go/arvados"
7 )
8
9 type wsConfig struct {
10         Client    arvados.Client
11         Postgres  pgConfig
12         Listen    string
13         LogLevel  string
14         LogFormat string
15
16         PingTimeout      arvados.Duration
17         ClientEventQueue int
18         ServerEventQueue int
19 }
20
21 func defaultConfig() wsConfig {
22         return wsConfig{
23                 Client: arvados.Client{
24                         APIHost: "localhost:443",
25                 },
26                 Postgres: pgConfig{
27                         "dbname":          "arvados_production",
28                         "user":            "arvados",
29                         "password":        "xyzzy",
30                         "host":            "localhost",
31                         "connect_timeout": "30",
32                         "sslmode":         "require",
33                 },
34                 LogLevel:         "info",
35                 LogFormat:        "json",
36                 PingTimeout:      arvados.Duration(time.Minute),
37                 ClientEventQueue: 64,
38                 ServerEventQueue: 4,
39         }
40 }