MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / NewRaftNode

Function NewRaftNode

twopc/twopc_test.go:105–120  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

103}
104
105func NewRaftNode() (r *RaftNode, err error) {
106 r = &RaftNode{
107 RaftNodeRPCServer: RaftNodeRPCServer{
108 txid: 0,
109 state: Initailized,
110 },
111 }
112
113 err = r.start()
114
115 if err != nil {
116 return nil, err
117 }
118
119 return r, err
120}
121
122var simpleCipherHandler etls.CipherHandler = func(conn net.Conn) (cryptoConn *etls.CryptoConn, err error) {
123 cipher := etls.NewCipher([]byte(pass))

Callers 1

testSetupFunction · 0.85

Calls 1

startMethod · 0.45

Tested by

no test coverage detected