Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NopLogger *nopLogger
Silent logger, produces no output
Functions ¶
Types ¶
type Options ¶
type Options struct { ListenAddress string // default: 127.0.0.1:1080 ReadTimeout time.Duration // default: none WriteTimeout time.Duration // default: none DialTimeout time.Duration // default: none GetPasswordTimeout time.Duration // default: none Authentication bool // default: no authentication required StaticCredentials map[string]string // default: root / password Logger Logger // default: stdoutLogger Store Store // default: defaultStore Driver Driver // default: defaultDriver Metrics Metrics // default: nopMetrics }
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) ListenAndServe ¶
Click to show internal directories.
Click to hide internal directories.