TransportFactory is the interface used for creating custom transport modules.
| 472 | |
| 473 | // TransportFactory is the interface used for creating custom transport modules. |
| 474 | type TransportFactory interface { |
| 475 | // Create creates a transport module. |
| 476 | Create(NodeHostConfig, |
| 477 | raftio.MessageHandler, raftio.ChunkHandler) raftio.ITransport |
| 478 | // Validate validates the RaftAddress of the NodeHost. When using a custom |
| 479 | // transport module, users are granted full control on what address type to |
| 480 | // use for the NodeHostConfig.RaftAddress field, it can be of the traditional |
| 481 | // IP:Port format or any other form. The Validate method is used to validate |
| 482 | // that a received address is of the valid form. |
| 483 | Validate(string) bool |
| 484 | } |
| 485 | |
| 486 | // LogDBInfo is the info provided when LogDBCallback is invoked. |
| 487 | type LogDBInfo struct { |
no outgoing calls
no test coverage detected