plugin/auth/proto/auth.proto
2023-09-19 22:32:40 +08:00

22 lines
453 B
Protocol Buffer

// protoc --go_out=. --go_opt=paths=source_relative \
// --go-grpc_out=. --go-grpc_opt=paths=source_relative \
// auth.proto
syntax = "proto3";
package proto;
option go_package = "github.com/go-gost/plugin/auth/proto";
message AuthenticateRequest {
string username = 1;
string password = 2;
}
message AuthenticateReply {
bool ok = 1;
string id = 2;
}
service Authenticator {
rpc Authenticate(AuthenticateRequest) returns (AuthenticateReply);
}