2020-04-10 03:05:46 +03:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package verrpc;
|
|
|
|
|
|
|
|
option go_package = "github.com/lightningnetwork/lnd/lnrpc/verrpc";
|
|
|
|
|
2020-05-06 17:41:47 +03:00
|
|
|
// Versioner is a service that can be used to get information about the version
|
|
|
|
// and build information of the running daemon.
|
2020-04-10 03:05:46 +03:00
|
|
|
service Versioner {
|
2020-05-06 17:41:47 +03:00
|
|
|
/* lncli: `version`
|
|
|
|
GetVersion returns the current version and build information of the running
|
|
|
|
daemon.
|
|
|
|
*/
|
2020-04-10 03:05:46 +03:00
|
|
|
rpc GetVersion (VersionRequest) returns (Version);
|
2020-05-06 17:41:47 +03:00
|
|
|
}
|
2020-04-10 03:05:46 +03:00
|
|
|
|
|
|
|
message VersionRequest {
|
2020-05-06 17:41:47 +03:00
|
|
|
}
|
2020-04-10 03:05:46 +03:00
|
|
|
|
|
|
|
message Version {
|
2020-05-06 17:51:14 +03:00
|
|
|
// A verbose description of the daemon's commit.
|
2020-04-10 03:05:46 +03:00
|
|
|
string commit = 1;
|
|
|
|
|
2020-05-06 17:51:14 +03:00
|
|
|
// The SHA1 commit hash that the daemon is compiled with.
|
2020-04-10 03:05:46 +03:00
|
|
|
string commit_hash = 2;
|
|
|
|
|
2020-05-06 17:51:14 +03:00
|
|
|
// The semantic version.
|
2020-04-10 03:05:46 +03:00
|
|
|
string version = 3;
|
|
|
|
|
2020-05-06 17:51:14 +03:00
|
|
|
// The major application version.
|
2020-04-10 03:05:46 +03:00
|
|
|
uint32 app_major = 4;
|
|
|
|
|
2020-05-06 17:51:14 +03:00
|
|
|
// The minor application version.
|
2020-04-10 03:05:46 +03:00
|
|
|
uint32 app_minor = 5;
|
|
|
|
|
2020-05-06 17:51:14 +03:00
|
|
|
// The application patch number.
|
2020-04-10 03:05:46 +03:00
|
|
|
uint32 app_patch = 6;
|
|
|
|
|
2020-05-06 17:51:14 +03:00
|
|
|
// The application pre-release modifier, possibly empty.
|
2020-04-10 03:05:46 +03:00
|
|
|
string app_pre_release = 7;
|
|
|
|
|
2020-05-06 17:51:14 +03:00
|
|
|
// The list of build tags that were supplied during compilation.
|
2020-04-10 03:05:46 +03:00
|
|
|
repeated string build_tags = 8;
|
|
|
|
|
2020-05-06 17:51:14 +03:00
|
|
|
// The version of go that compiled the executable.
|
2020-04-10 03:05:46 +03:00
|
|
|
string go_version = 9;
|
2020-05-06 17:41:47 +03:00
|
|
|
}
|