lnrpc: extract or add REST annotations to yaml
This commit is contained in:
39 files changed
+11341
-1410
No files matched your search
@@ -8,6 +8,8 @@ import (
|
||||
fmt "fmt"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
grpc "google.golang.org/grpc"
|
||||
codes "google.golang.org/grpc/codes"
|
||||
status "google.golang.org/grpc/status"
|
||||
math "math"
|
||||
)
|
||||
|
||||
@@ -986,6 +988,26 @@ type SignerServer interface {
|
||||
DeriveSharedKey(context.Context, *SharedKeyRequest) (*SharedKeyResponse, error)
|
||||
}
|
||||
|
||||
// UnimplementedSignerServer can be embedded to have forward compatible implementations.
|
||||
type UnimplementedSignerServer struct {
|
||||
}
|
||||
|
||||
func (*UnimplementedSignerServer) SignOutputRaw(ctx context.Context, req *SignReq) (*SignResp, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method SignOutputRaw not implemented")
|
||||
}
|
||||
func (*UnimplementedSignerServer) ComputeInputScript(ctx context.Context, req *SignReq) (*InputScriptResp, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method ComputeInputScript not implemented")
|
||||
}
|
||||
func (*UnimplementedSignerServer) SignMessage(ctx context.Context, req *SignMessageReq) (*SignMessageResp, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method SignMessage not implemented")
|
||||
}
|
||||
func (*UnimplementedSignerServer) VerifyMessage(ctx context.Context, req *VerifyMessageReq) (*VerifyMessageResp, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method VerifyMessage not implemented")
|
||||
}
|
||||
func (*UnimplementedSignerServer) DeriveSharedKey(ctx context.Context, req *SharedKeyRequest) (*SharedKeyResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method DeriveSharedKey not implemented")
|
||||
}
|
||||
|
||||
func RegisterSignerServer(s *grpc.Server, srv SignerServer) {
|
||||
s.RegisterService(&_Signer_serviceDesc, srv)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user