projects
/
arvados.git
/ blob
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
8460: Hide *websocket.Conn behind interface.
[arvados.git]
/
services
/
ws
/
config.go
1
package main
2
3
import (
4
"git.curoverse.com/arvados.git/sdk/go/arvados"
5
)
6
7
type Config struct {
8
Client arvados.Client
9
Postgres pgConfig
10
Listen string
11
Debug bool
12
13
ClientEventQueue int
14
ServerEventQueue int
15
}
16
17
func DefaultConfig() Config {
18
return Config{
19
Client: arvados.Client{
20
APIHost: "localhost:443",
21
},
22
Postgres: pgConfig{
23
"dbname": "arvados_test",
24
"user": "arvados",
25
"password": "xyzzy",
26
"host": "localhost",
27
"connect_timeout": "30",
28
"sslmode": "disable",
29
},
30
ClientEventQueue: 64,
31
}
32
}