mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-21 14:10:35 +02:00
lnrpc: extract or add REST annotations to yaml
This commit is contained in:
@@ -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"
|
||||
)
|
||||
|
||||
@@ -181,6 +183,14 @@ type WatchtowerServer interface {
|
||||
GetInfo(context.Context, *GetInfoRequest) (*GetInfoResponse, error)
|
||||
}
|
||||
|
||||
// UnimplementedWatchtowerServer can be embedded to have forward compatible implementations.
|
||||
type UnimplementedWatchtowerServer struct {
|
||||
}
|
||||
|
||||
func (*UnimplementedWatchtowerServer) GetInfo(ctx context.Context, req *GetInfoRequest) (*GetInfoResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method GetInfo not implemented")
|
||||
}
|
||||
|
||||
func RegisterWatchtowerServer(s *grpc.Server, srv WatchtowerServer) {
|
||||
s.RegisterService(&_Watchtower_serviceDesc, srv)
|
||||
}
|
||||
|
Reference in New Issue
Block a user