From 06cffd89aeea4d34c987a1e7583af7525b8534e8 Mon Sep 17 00:00:00 2001 From: Ben Morrison Date: Sun, 12 May 2019 03:59:29 -0400 Subject: config fleshed out; using viper+pflag --- main.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index 453426a..92b8971 100644 --- a/main.go +++ b/main.go @@ -1,6 +1,7 @@ package main import ( + "fmt" "log" "net/http" "time" @@ -11,8 +12,6 @@ import ( const getwtxt = "0.1" -var closelog = make(chan bool) - func main() { log.Printf("getwtxt " + getwtxt + "\n") @@ -28,9 +27,11 @@ func main() { api.HandleFunc("/{format:(?:plain)}/tags", apiTagsBaseHandler) api.HandleFunc("/{format:(?:plain)}/tags/{tags:[a-zA-Z0-9]+}", apiTagsHandler) + portnum := fmt.Sprintf(":%v", confObj.port) + server := &http.Server{ Handler: handlers.CompressHandler(index), - Addr: ":9001", + Addr: portnum, WriteTimeout: 15 * time.Second, ReadTimeout: 15 * time.Second, } -- cgit 1.4.1-2-gfad0 class='sub'>Profanity fork with TTY improvementsdanisanti <danisanti@tilde.institute>
about summary refs log tree commit diff stats
path: root/tests/functionaltests/test_rooms.c
blob: 49b1d892f5d0bd5724d24c7c72f4c1921e50b22d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38