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

Function NewServerWithServeFunc

rpc/server.go:57–66  ·  view source on GitHub ↗

NewServerWithServeFunc return a new Server.

(f ServeStream)

Source from the content-addressed store, hash-verified

55
56// NewServerWithServeFunc return a new Server.
57func NewServerWithServeFunc(f ServeStream) *Server {
58 ctx, cancel := context.WithCancel(context.Background())
59 return &Server{
60 ctx: ctx,
61 cancel: cancel,
62 rpcServer: rpc.NewServer(),
63 acceptConn: AcceptNAConn,
64 serveStream: f,
65 }
66}
67
68// InitRPCServer load the private key, init the crypto transfer layer and register RPC
69// services.

Callers 2

NewServerFunction · 0.92
NewServerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected