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

Function buildRequest

xenomint/xxx_test.go:82–100  ·  view source on GitHub ↗
(qt types.QueryType, qs []types.Query)

Source from the content-addressed store, hash-verified

80}
81
82func buildRequest(qt types.QueryType, qs []types.Query) *types.Request {
83 var (
84 id proto.NodeID
85 err error
86 )
87 if id, err = kms.GetLocalNodeID(); err != nil {
88 id = proto.NodeID("00000000000000000000000000000000")
89 }
90 return &types.Request{
91 Header: types.SignedRequestHeader{
92 RequestHeader: types.RequestHeader{
93 NodeID: id,
94 Timestamp: time.Now().UTC(),
95 QueryType: qt,
96 },
97 },
98 Payload: types.RequestPayload{Queries: qs},
99 }
100}
101
102func concat(args [][]interface{}) (ret []interface{}) {
103 var (

Callers 6

TestChainFunction · 0.70
TestMuxServiceFunction · 0.70
TestStateFunction · 0.70
TestSerializableStateFunction · 0.70

Calls 2

GetLocalNodeIDFunction · 0.92
NodeIDTypeAlias · 0.92

Tested by

no test coverage detected