8460: Ping clients only when read times out and outgoing queue is empty.
[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 Config struct {
10         Client   arvados.Client
11         Postgres pgConfig
12         Listen   string
13         Debug    bool
14
15         PingTimeout      arvados.Duration
16         ClientEventQueue int
17         ServerEventQueue int
18 }
19
20 func DefaultConfig() Config {
21         return Config{
22                 Client: arvados.Client{
23                         APIHost: "localhost:443",
24                 },
25                 Postgres: pgConfig{
26                         "dbname":          "arvados_test",
27                         "user":            "arvados",
28                         "password":        "xyzzy",
29                         "host":            "localhost",
30                         "connect_timeout": "30",
31                         "sslmode":         "disable",
32                 },
33                 PingTimeout:      arvados.Duration(time.Minute),
34                 ClientEventQueue: 64,
35                 ServerEventQueue: 4,
36         }
37 }