protoc-gen-go-micro/examples/go-kit/services/session/session.proto

26 lines
411 B
Protocol Buffer
Raw Normal View History

2016-12-13 12:36:55 +03:00
syntax = "proto3";
2016-12-13 12:27:52 +03:00
package session;
service SessionService {
rpc Login(LoginRequest) returns (LoginResponse) {}
rpc Logout(LogoutRequest) returns (LogoutResponse) {}
}
message LoginRequest {
string username = 1;
string password = 2;
}
message LoginResponse {
string token = 1;
string err_msg = 2;
}
message LogoutRequest {
string token = 1;
}
message LogoutResponse {
string err_msg = 1;
}