initial commit

This commit is contained in:
ginuerzh
2023-04-18 20:21:06 +08:00
commit d221a4ec9a
30 changed files with 2736 additions and 0 deletions

20
auth/proto/auth.proto Normal file
View File

@ -0,0 +1,20 @@
// 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;
}
service Authenticator {
rpc Authenticate(AuthenticateRequest) returns (AuthenticateReply);
}