config: make config a self-contained pkg

This commit is contained in:
Xiang Li
2014-07-06 10:46:07 -07:00
committed by Yicheng Qin
parent 60b1f2f437
commit 02c854717b
6 changed files with 176 additions and 29 deletions

View File

@@ -8,11 +8,6 @@ import (
"github.com/coreos/etcd/log"
)
const (
DefaultReadTimeout = float64((5 * time.Minute) / time.Second)
DefaultWriteTimeout = float64((5 * time.Minute) / time.Second)
)
// TLSServerConfig generates tls configuration based on TLSInfo
// If any error happens, this function will call log.Fatal
func TLSServerConfig(info *TLSInfo) *tls.Config {