2024-08-16 10:54:17 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
2024-08-16 12:58:13 +00:00
|
|
|
package session.v1;
|
2024-08-16 16:47:44 +00:00
|
|
|
option go_package = "/session/v1;sessionv1";
|
2024-08-16 10:54:17 +00:00
|
|
|
|
|
|
|
import "google/protobuf/empty.proto";
|
|
|
|
|
|
|
|
service SessionService {
|
|
|
|
rpc Create (CreateSessionRequest) returns (CreateSessionResponse);
|
|
|
|
rpc Update (UpdateSessionRequest) returns (google.protobuf.Empty);
|
|
|
|
rpc Delete (DeleteSessionRequest) returns (google.protobuf.Empty);
|
|
|
|
}
|
|
|
|
|
|
|
|
message CreateSessionRequest {
|
|
|
|
string handle = 1;
|
|
|
|
string password = 2;
|
|
|
|
}
|
|
|
|
message CreateSessionResponse {
|
|
|
|
string token = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message UpdateSessionRequest {
|
|
|
|
string token = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message DeleteSessionRequest {
|
|
|
|
string token = 1;
|
|
|
|
}
|