better docs

This commit is contained in:
Ola Holmström
2015-06-21 13:40:28 +02:00
parent aa1f858055
commit 5c5e059a07
4 changed files with 34 additions and 15 deletions
+6 -6
View File
@@ -2,13 +2,13 @@ package melody
import "time"
// Melody configuration, all times in milliseconds.
// Melody configuration.
type Config struct {
WriteWait time.Duration
PongWait time.Duration
PingPeriod time.Duration
MaxMessageSize int64
MessageBufferSize int
WriteWait time.Duration // Milliseconds until write times out.
PongWait time.Duration // Timeout for waiting on pong.
PingPeriod time.Duration // Milliseconds between pings.
MaxMessageSize int64 // Maximum size in bytes of a message.
MessageBufferSize int // Size of each sessions message buffer.
}
func newConfig() *Config {