github.com/NpoolPlatform/chain-middleware@v0.0.0-20240228100535-eb1bcf896eb9/api/chain/api.go (about) 1 package chain 2 3 import ( 4 "github.com/NpoolPlatform/message/npool/chain/mw/v1/chain" 5 6 "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" 7 "google.golang.org/grpc" 8 ) 9 10 type Server struct { 11 chain.UnimplementedMiddlewareServer 12 } 13 14 func Register(server grpc.ServiceRegistrar) { 15 chain.RegisterMiddlewareServer(server, &Server{}) 16 } 17 18 func RegisterGateway(mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) error { 19 return nil 20 }