initial commit
This commit is contained in:
20
auth/proto/auth.proto
Normal file
20
auth/proto/auth.proto
Normal 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);
|
||||
}
|
Reference in New Issue
Block a user