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"
|
||||
)
|
||||
|
||||
@@ -238,6 +240,14 @@ type VersionerServer interface {
|
||||
GetVersion(context.Context, *VersionRequest) (*Version, error)
|
||||
}
|
||||
|
||||
// UnimplementedVersionerServer can be embedded to have forward compatible implementations.
|
||||
type UnimplementedVersionerServer struct {
|
||||
}
|
||||
|
||||
func (*UnimplementedVersionerServer) GetVersion(ctx context.Context, req *VersionRequest) (*Version, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method GetVersion not implemented")
|
||||
}
|
||||
|
||||
func RegisterVersionerServer(s *grpc.Server, srv VersionerServer) {
|
||||
s.RegisterService(&_Versioner_serviceDesc, srv)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user