MCPcopy Create free account
hub / github.com/Sifchain/sifnode / RegisterQueryHandler

Function RegisterQueryHandler

x/margin/types/query.pb.gw.go:578–580  ·  view source on GitHub ↗

RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".

(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn)

Source from the content-addressed store, hash-verified

576// RegisterQueryHandler registers the http handlers for service Query to "mux".
577// The handlers forward requests to the grpc endpoint over "conn".
578func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error {
579 return RegisterQueryHandlerClient(ctx, mux, NewQueryClient(conn))
580}
581
582// RegisterQueryHandlerClient registers the http handlers for service Query
583// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient".

Callers 1

Calls 2

NewQueryClientFunction · 0.70

Tested by

no test coverage detected