Skip to content
Snippets Groups Projects
auth.proto 286 B
Newer Older
  • Learn to ignore specific revisions
  • syntax = "proto3";
    
    package auth;
    
    option go_package = "./auth";
    
    message UserPass {
      string username = 1;
      string password = 2;
    }
    
    message AuthResponse {
      bool authenticated = 1;
      string error = 2;
    }
    
    service Authenticate {
      rpc Authenticate (UserPass) returns (AuthResponse) {}
    }