KeepaliveEnforcementPolicy returns a ServerOption that sets keepalive enforcement policy for the server.
(kep keepalive.EnforcementPolicy)
| 347 | |
| 348 | // KeepaliveEnforcementPolicy returns a ServerOption that sets keepalive enforcement policy for the server. |
| 349 | func KeepaliveEnforcementPolicy(kep keepalive.EnforcementPolicy) ServerOption { |
| 350 | return newFuncServerOption(func(o *serverOptions) { |
| 351 | o.keepalivePolicy = kep |
| 352 | }) |
| 353 | } |
| 354 | |
| 355 | // CustomCodec returns a ServerOption that sets a codec for message marshaling and unmarshaling. |
| 356 | // |