octomation/go-service

View on GitHub
api/rpc/v1/service.proto

Summary

Maintainability
Test Coverage
syntax = 'proto3';

package api.rpc.v1;

import 'google/api/annotations.proto';

option go_package = 'api/rpc/v1;v1';

service GreeterService {
  rpc Hello(HelloRequest) returns (HelloResponse) {
    option (google.api.http) = {
      post: '/v1/hello'
      body: '*'
    };
  }
  rpc Sign(SignRequest) returns (SignResponse) {
    option (google.api.http) = {get: '/v1/sign'};
  }
}

message HelloRequest {
  string subject = 1;
}

message HelloResponse {
  string text = 1;
}

message SignRequest {}

message SignResponse {
  bytes license = 1;
}