(serverVersion string, maxFramePayload int, features []string)
| 47 | } |
| 48 | |
| 49 | func EncodeVersionInfo(serverVersion string, maxFramePayload int, features []string) ([]byte, error) { |
| 50 | info := VersionInfo{ |
| 51 | OK: true, |
| 52 | Protocol: ProtocolVersion, |
| 53 | ServerVersion: serverVersion, |
| 54 | MaxFramePayload: maxFramePayload, |
| 55 | Features: features, |
| 56 | } |
| 57 | return json.Marshal(info) |
| 58 | } |
no test coverage detected