go generate

pull/1530/head
Dennis Won 5 years ago
parent 4535619f6e
commit ebf750a70d
  1. 16
      api/client/service/proto/client.pb.go
  2. 10
      api/proto/message/message.pb.go

@ -8,6 +8,8 @@ import (
fmt "fmt" fmt "fmt"
proto "github.com/golang/protobuf/proto" proto "github.com/golang/protobuf/proto"
grpc "google.golang.org/grpc" grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math" math "math"
) )
@ -388,6 +390,20 @@ type ClientServiceServer interface {
GetStakingContractInfo(context.Context, *StakingContractInfoRequest) (*StakingContractInfoResponse, error) GetStakingContractInfo(context.Context, *StakingContractInfoRequest) (*StakingContractInfoResponse, error)
} }
// UnimplementedClientServiceServer can be embedded to have forward compatible implementations.
type UnimplementedClientServiceServer struct {
}
func (*UnimplementedClientServiceServer) FetchAccountState(ctx context.Context, req *FetchAccountStateRequest) (*FetchAccountStateResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FetchAccountState not implemented")
}
func (*UnimplementedClientServiceServer) GetFreeToken(ctx context.Context, req *GetFreeTokenRequest) (*GetFreeTokenResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetFreeToken not implemented")
}
func (*UnimplementedClientServiceServer) GetStakingContractInfo(ctx context.Context, req *StakingContractInfoRequest) (*StakingContractInfoResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetStakingContractInfo not implemented")
}
func RegisterClientServiceServer(s *grpc.Server, srv ClientServiceServer) { func RegisterClientServiceServer(s *grpc.Server, srv ClientServiceServer) {
s.RegisterService(&_ClientService_serviceDesc, srv) s.RegisterService(&_ClientService_serviceDesc, srv)
} }

@ -8,6 +8,8 @@ import (
fmt "fmt" fmt "fmt"
proto "github.com/golang/protobuf/proto" proto "github.com/golang/protobuf/proto"
grpc "google.golang.org/grpc" grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math" math "math"
) )
@ -916,6 +918,14 @@ type ClientServiceServer interface {
Process(context.Context, *Message) (*Response, error) Process(context.Context, *Message) (*Response, error)
} }
// UnimplementedClientServiceServer can be embedded to have forward compatible implementations.
type UnimplementedClientServiceServer struct {
}
func (*UnimplementedClientServiceServer) Process(ctx context.Context, req *Message) (*Response, error) {
return nil, status.Errorf(codes.Unimplemented, "method Process not implemented")
}
func RegisterClientServiceServer(s *grpc.Server, srv ClientServiceServer) { func RegisterClientServiceServer(s *grpc.Server, srv ClientServiceServer) {
s.RegisterService(&_ClientService_serviceDesc, srv) s.RegisterService(&_ClientService_serviceDesc, srv)
} }

Loading…
Cancel
Save