// Code generated by goctl. DO NOT EDIT. // goctl 1.8.5 // Source: blockchain.proto package blockchainservice import ( "context" "blockchain/gen_result/pb/code.30cm.net/digimon/app-cloudep-blockchain" "github.com/zeromicro/go-zero/zrpc" "google.golang.org/grpc" ) type ( ListSymbolsRequest = app_cloudep_blockchain.ListSymbolsRequest ListSymbolsResponse = app_cloudep_blockchain.ListSymbolsResponse NoneReq = app_cloudep_blockchain.NoneReq OKResp = app_cloudep_blockchain.OKResp Symbol = app_cloudep_blockchain.Symbol BlockchainService interface { // ListSymbols retrieves all available trading symbols. ListSymbols(ctx context.Context, in *ListSymbolsRequest, opts ...grpc.CallOption) (*ListSymbolsResponse, error) // Ping is a health-check endpoint. Ping(ctx context.Context, in *NoneReq, opts ...grpc.CallOption) (*OKResp, error) } defaultBlockchainService struct { cli zrpc.Client } ) func NewBlockchainService(cli zrpc.Client) BlockchainService { return &defaultBlockchainService{ cli: cli, } } // ListSymbols retrieves all available trading symbols. func (m *defaultBlockchainService) ListSymbols(ctx context.Context, in *ListSymbolsRequest, opts ...grpc.CallOption) (*ListSymbolsResponse, error) { client := app_cloudep_blockchain.NewBlockchainServiceClient(m.cli.Conn()) return client.ListSymbols(ctx, in, opts...) } // Ping is a health-check endpoint. func (m *defaultBlockchainService) Ping(ctx context.Context, in *NoneReq, opts ...grpc.CallOption) (*OKResp, error) { client := app_cloudep_blockchain.NewBlockchainServiceClient(m.cli.Conn()) return client.Ping(ctx, in, opts...) }