mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-11-18 10:06:51 +01:00
lnrpc: replace /// and /** with // and /*
This commit is contained in:
@@ -54,7 +54,7 @@ func (m *StatusRequest) XXX_DiscardUnknown() {
|
||||
var xxx_messageInfo_StatusRequest proto.InternalMessageInfo
|
||||
|
||||
type StatusResponse struct {
|
||||
/// Indicates whether the autopilot is active or not.
|
||||
// Indicates whether the autopilot is active or not.
|
||||
Active bool `protobuf:"varint,1,opt,name=active,proto3" json:"active,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
@@ -94,7 +94,7 @@ func (m *StatusResponse) GetActive() bool {
|
||||
}
|
||||
|
||||
type ModifyStatusRequest struct {
|
||||
/// Whether the autopilot agent should be enabled or not.
|
||||
// Whether the autopilot agent should be enabled or not.
|
||||
Enable bool `protobuf:"varint,1,opt,name=enable,proto3" json:"enable,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
@@ -166,7 +166,7 @@ var xxx_messageInfo_ModifyStatusResponse proto.InternalMessageInfo
|
||||
|
||||
type QueryScoresRequest struct {
|
||||
Pubkeys []string `protobuf:"bytes,1,rep,name=pubkeys,proto3" json:"pubkeys,omitempty"`
|
||||
/// If set, we will ignore the local channel state when calculating scores.
|
||||
// If set, we will ignore the local channel state when calculating scores.
|
||||
IgnoreLocalState bool `protobuf:"varint,2,opt,name=ignore_local_state,json=ignoreLocalState,proto3" json:"ignore_local_state,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
@@ -299,9 +299,9 @@ func (m *QueryScoresResponse_HeuristicResult) GetScores() map[string]float64 {
|
||||
}
|
||||
|
||||
type SetScoresRequest struct {
|
||||
/// The name of the heuristic to provide scores to.
|
||||
// The name of the heuristic to provide scores to.
|
||||
Heuristic string `protobuf:"bytes,1,opt,name=heuristic,proto3" json:"heuristic,omitempty"`
|
||||
//*
|
||||
//
|
||||
//A map from hex-encoded public keys to scores. Scores must be in the range
|
||||
//[0.0, 1.0].
|
||||
Scores map[string]float64 `protobuf:"bytes,2,rep,name=scores,proto3" json:"scores,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"fixed64,2,opt,name=value,proto3"`
|
||||
@@ -442,19 +442,19 @@ const _ = grpc.SupportPackageIsVersion4
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
||||
type AutopilotClient interface {
|
||||
//*
|
||||
//
|
||||
//Status returns whether the daemon's autopilot agent is active.
|
||||
Status(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*StatusResponse, error)
|
||||
//*
|
||||
//
|
||||
//ModifyStatus is used to modify the status of the autopilot agent, like
|
||||
//enabling or disabling it.
|
||||
ModifyStatus(ctx context.Context, in *ModifyStatusRequest, opts ...grpc.CallOption) (*ModifyStatusResponse, error)
|
||||
//*
|
||||
//
|
||||
//QueryScores queries all available autopilot heuristics, in addition to any
|
||||
//active combination of these heruristics, for the scores they would give to
|
||||
//the given nodes.
|
||||
QueryScores(ctx context.Context, in *QueryScoresRequest, opts ...grpc.CallOption) (*QueryScoresResponse, error)
|
||||
//*
|
||||
//
|
||||
//SetScores attempts to set the scores used by the running autopilot agent,
|
||||
//if the external scoring heuristic is enabled.
|
||||
SetScores(ctx context.Context, in *SetScoresRequest, opts ...grpc.CallOption) (*SetScoresResponse, error)
|
||||
@@ -506,19 +506,19 @@ func (c *autopilotClient) SetScores(ctx context.Context, in *SetScoresRequest, o
|
||||
|
||||
// AutopilotServer is the server API for Autopilot service.
|
||||
type AutopilotServer interface {
|
||||
//*
|
||||
//
|
||||
//Status returns whether the daemon's autopilot agent is active.
|
||||
Status(context.Context, *StatusRequest) (*StatusResponse, error)
|
||||
//*
|
||||
//
|
||||
//ModifyStatus is used to modify the status of the autopilot agent, like
|
||||
//enabling or disabling it.
|
||||
ModifyStatus(context.Context, *ModifyStatusRequest) (*ModifyStatusResponse, error)
|
||||
//*
|
||||
//
|
||||
//QueryScores queries all available autopilot heuristics, in addition to any
|
||||
//active combination of these heruristics, for the scores they would give to
|
||||
//the given nodes.
|
||||
QueryScores(context.Context, *QueryScoresRequest) (*QueryScoresResponse, error)
|
||||
//*
|
||||
//
|
||||
//SetScores attempts to set the scores used by the running autopilot agent,
|
||||
//if the external scoring heuristic is enabled.
|
||||
SetScores(context.Context, *SetScoresRequest) (*SetScoresResponse, error)
|
||||
|
||||
@@ -8,25 +8,25 @@ option go_package = "github.com/lightningnetwork/lnd/lnrpc/autopilotrpc";
|
||||
// state of the daemon's autopilot agent, and also supply it with information
|
||||
// that can be used when deciding where to open channels.
|
||||
service Autopilot {
|
||||
/**
|
||||
/*
|
||||
Status returns whether the daemon's autopilot agent is active.
|
||||
*/
|
||||
rpc Status (StatusRequest) returns (StatusResponse);
|
||||
|
||||
/**
|
||||
/*
|
||||
ModifyStatus is used to modify the status of the autopilot agent, like
|
||||
enabling or disabling it.
|
||||
*/
|
||||
rpc ModifyStatus (ModifyStatusRequest) returns (ModifyStatusResponse);
|
||||
|
||||
/**
|
||||
/*
|
||||
QueryScores queries all available autopilot heuristics, in addition to any
|
||||
active combination of these heruristics, for the scores they would give to
|
||||
the given nodes.
|
||||
*/
|
||||
rpc QueryScores (QueryScoresRequest) returns (QueryScoresResponse);
|
||||
|
||||
/**
|
||||
/*
|
||||
SetScores attempts to set the scores used by the running autopilot agent,
|
||||
if the external scoring heuristic is enabled.
|
||||
*/
|
||||
@@ -37,12 +37,12 @@ message StatusRequest {
|
||||
}
|
||||
|
||||
message StatusResponse {
|
||||
/// Indicates whether the autopilot is active or not.
|
||||
// Indicates whether the autopilot is active or not.
|
||||
bool active = 1;
|
||||
}
|
||||
|
||||
message ModifyStatusRequest {
|
||||
/// Whether the autopilot agent should be enabled or not.
|
||||
// Whether the autopilot agent should be enabled or not.
|
||||
bool enable = 1;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ message ModifyStatusResponse {
|
||||
message QueryScoresRequest {
|
||||
repeated string pubkeys = 1;
|
||||
|
||||
/// If set, we will ignore the local channel state when calculating scores.
|
||||
// If set, we will ignore the local channel state when calculating scores.
|
||||
bool ignore_local_state = 2;
|
||||
}
|
||||
|
||||
@@ -66,10 +66,10 @@ message QueryScoresResponse {
|
||||
}
|
||||
|
||||
message SetScoresRequest {
|
||||
/// The name of the heuristic to provide scores to.
|
||||
// The name of the heuristic to provide scores to.
|
||||
string heuristic = 1;
|
||||
|
||||
/**
|
||||
/*
|
||||
A map from hex-encoded public keys to scores. Scores must be in the range
|
||||
[0.0, 1.0].
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user