github.com/NpoolPlatform/chain-middleware@v0.0.0-20240228100535-eb1bcf896eb9/api/fiat/currency/feed/api.go (about)

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