Update config.go

Former-commit-id: f61883e68b5138317c8451242545fa2006e5698b
This commit is contained in:
Gerasimos (Makis) Maropoulos 2017-06-03 00:13:46 +03:00 committed by GitHub
parent da6f515078
commit da224e363a

View File

@ -77,9 +77,10 @@ type Config struct {
// The request is an argument which you can use to generate the ID (from headers for example). // The request is an argument which you can use to generate the ID (from headers for example).
// If empty then the ID is generated by DefaultIDGenerator: randomString(64) // If empty then the ID is generated by DefaultIDGenerator: randomString(64)
IDGenerator func(ctx *iris.Context) string IDGenerator func(ctx *iris.Context) string
/** // Subprotocols specifies the server's supported protocols in order of
List od subprotocols accepted by server // preference. If this field is set, then the Upgrade method negotiates a
*/ // subprotocol by selecting the first match in this list with a protocol
// requested by the client.
Subprotocols []string Subprotocols []string
} }