-
Notifications
You must be signed in to change notification settings - Fork 8
/
query.go
26 lines (22 loc) · 1002 Bytes
/
query.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package types
import (
"github.com/gogo/protobuf/grpc"
client "github.com/bianjieai/tibc-go/modules/tibc/core/02-client"
clienttypes "github.com/bianjieai/tibc-go/modules/tibc/core/02-client/types"
packet "github.com/bianjieai/tibc-go/modules/tibc/core/04-packet"
packettypes "github.com/bianjieai/tibc-go/modules/tibc/core/04-packet/types"
routing "github.com/bianjieai/tibc-go/modules/tibc/core/26-routing"
routingtypes "github.com/bianjieai/tibc-go/modules/tibc/core/26-routing/types"
)
// QueryServer defines the TIBC interfaces that the gRPC query server must implement
type QueryServer interface {
clienttypes.QueryServer
packettypes.QueryServer
routingtypes.QueryServer
}
// RegisterQueryService registers each individual TIBC submodule query service
func RegisterQueryService(server grpc.Server, queryService QueryServer) {
client.RegisterQueryService(server, queryService)
packet.RegisterQueryService(server, queryService)
routing.RegisterQueryService(server, queryService)
}