@@ -141,7 +141,7 @@ func (r *rootHostEmulator) ProxyEnqueueSharedQueue(queueID uint32, valueData *by
141141
142142 // note that this behavior is not accurate for some old host implementations:
143143 // see: https://github.com/proxy-wasm/proxy-wasm-cpp-host/pull/36
144- proxywasm .ProxyOnQueueReady (rootContextID , queueID ) // Note that this behavior is not accurate on Istio before 1.8.x
144+ proxywasm .ProxyOnQueueReady (RootContextID , queueID ) // Note that this behavior is not accurate on Istio before 1.8.x
145145 return types .StatusOK
146146}
147147
@@ -362,7 +362,7 @@ func (r *rootHostEmulator) GetTickPeriod() uint32 {
362362
363363// impl HostEmulator
364364func (r * rootHostEmulator ) Tick () {
365- proxywasm .ProxyOnTick (rootContextID )
365+ proxywasm .ProxyOnTick (RootContextID )
366366}
367367
368368// impl HostEmulator
@@ -378,12 +378,12 @@ func (r *rootHostEmulator) GetCalloutAttributesFromContext(contextID uint32) []H
378378
379379// impl HostEmulator
380380func (r * rootHostEmulator ) StartVM () {
381- proxywasm .ProxyOnVMStart (rootContextID , len (r .vmConfiguration ))
381+ proxywasm .ProxyOnVMStart (RootContextID , len (r .vmConfiguration ))
382382}
383383
384384// impl HostEmulator
385385func (r * rootHostEmulator ) StartPlugin () {
386- proxywasm .ProxyOnConfigure (rootContextID , len (r .pluginConfiguration ))
386+ proxywasm .ProxyOnConfigure (RootContextID , len (r .pluginConfiguration ))
387387}
388388
389389// impl HostEmulator
@@ -393,17 +393,17 @@ func (r *rootHostEmulator) PutCalloutResponse(calloutID uint32, headers, trailer
393393 body []byte
394394 }{headers : headers , trailers : trailers , body : body }
395395
396- // rootContextID , calloutID uint32, numHeaders, bodySize, numTrailers in
396+ // RootContextID , calloutID uint32, numHeaders, bodySize, numTrailers in
397397 r .activeCalloutID = calloutID
398398 defer func () {
399399 r .activeCalloutID = 0
400400 delete (r .httpCalloutResponse , calloutID )
401401 delete (r .httpCalloutIDToContextID , calloutID )
402402 }()
403- proxywasm .ProxyOnHttpCallResponse (rootContextID , calloutID , len (headers ), len (body ), len (trailers ))
403+ proxywasm .ProxyOnHttpCallResponse (RootContextID , calloutID , len (headers ), len (body ), len (trailers ))
404404}
405405
406406// impl HostEmulator
407407func (r * rootHostEmulator ) FinishVM () {
408- proxywasm .ProxyOnDone (rootContextID )
408+ proxywasm .ProxyOnDone (RootContextID )
409409}
0 commit comments