mirror of
https://github.com/atuinsh/atuin.git
synced 2024-12-14 03:02:56 +01:00
bce0faa1c2
* init daemon crate * wip * minimal functioning daemon, needs cleanup for sure * better errors * add signal cleanup * logging * things * add sync worker * move daemon crate * 30s -> 5mins * make clippy happy * fix stuff maybe? * fmt * trim packages * rate limit fix * more protoc huh * this makes no sense, why linux why * can it install literally just curl * windows in ci is slow, and all the newer things will not work there. disable the daemon feature and it will build * add daemon feature * maybe this * ok wut where is protoc * try setting protoc * hm * try copying protoc * remove optional * add cross config * idk nix * does nix want this? * some random pkg I found does this * uh oh * hack, be gone! * update contributing
34 lines
695 B
Protocol Buffer
34 lines
695 B
Protocol Buffer
syntax = "proto3";
|
|
package history;
|
|
|
|
import "google/protobuf/timestamp.proto";
|
|
|
|
message StartHistoryRequest {
|
|
// If people are still using my software in ~530 years, they can figure out a u128 migration
|
|
uint64 timestamp = 1; // nanosecond unix epoch
|
|
string command = 2;
|
|
string cwd = 3;
|
|
string session = 4;
|
|
string hostname = 5;
|
|
}
|
|
|
|
message EndHistoryRequest {
|
|
string id = 1;
|
|
int64 exit = 2;
|
|
uint64 duration = 3;
|
|
}
|
|
|
|
message StartHistoryReply {
|
|
string id = 1;
|
|
}
|
|
|
|
message EndHistoryReply {
|
|
string id = 1;
|
|
uint64 idx = 2;
|
|
}
|
|
|
|
service History {
|
|
rpc StartHistory(StartHistoryRequest) returns (StartHistoryReply);
|
|
rpc EndHistory(EndHistoryRequest) returns (EndHistoryReply);
|
|
}
|