#include "src/compiler/go_generator.h"
#include <cctype>
#include <map>
#include <sstream>
template<class T> grpc::string as_string(T x) { … }
inline bool ClientOnlyStreaming(const grpc_generator::Method *method) { … }
inline bool ServerOnlyStreaming(const grpc_generator::Method *method) { … }
namespace grpc_go_generator {
namespace {
static grpc::string unexportName(grpc::string s) { … }
static grpc::string exportName(grpc::string s) { … }
static void GenerateError(grpc_generator::Printer *printer,
std::map<grpc::string, grpc::string> vars,
const bool multiple_return = true) { … }
static void GenerateImports(grpc_generator::File *file,
grpc_generator::Printer *printer,
std::map<grpc::string, grpc::string> vars) { … }
static void GenerateServerMethodSignature(const grpc_generator::Method *method,
grpc_generator::Printer *printer,
std::map<grpc::string, grpc::string> vars) { … }
static void GenerateServerMethod(const grpc_generator::Method *method,
grpc_generator::Printer *printer,
std::map<grpc::string, grpc::string> vars) { … }
static void GenerateClientMethodSignature(const grpc_generator::Method *method,
grpc_generator::Printer *printer,
std::map<grpc::string, grpc::string> vars) { … }
static void GenerateClientMethod(const grpc_generator::Method *method,
grpc_generator::Printer *printer,
std::map<grpc::string, grpc::string> vars) { … }
void GenerateService(const grpc_generator::Service *service,
grpc_generator::Printer *printer,
std::map<grpc::string, grpc::string> vars) { … }
}
grpc::string GenerateServiceSource(grpc_generator::File *file,
const grpc_generator::Service *service,
grpc_go_generator::Parameters *parameters) { … }
}