Go validation using envoy proxy validator and gogo protobuf

I am trying write plugin to generate validate go files. Which uses https://github.com/mwitkow/go-proto-validators and envoy proxy validator https://github.com/envoyproxy/protoc-gen-validate. Below...

Go build command throws - panic: interface conversion: interface {} is []uint8, not *validator.FieldValidator

In below Go function I am getting error when I tried to run build command to generate pb.go file. panic: interface conversion: interface {} is []uint8, not...

gRPC: Rate limiting an API on a per-RPC basis

I am looking for a way to rate-limit RPCs separately with high granularity, and to my dismay, there are not many options available for this issue. I am trying to replace a REST API with gRPC, and...

grpc-gateway how to make validation work for http request as well?

I have build a grpc/http sever with grpcecosystem/grpc-gateway and I use go-proto-validators to generate validation code, it works well in grpc with grpc.UnaryInterceptor. However, the http...

protoc error validator.proto: File not found

I am getting .proto File not found error in below command Command protoc -I/usr/local/include -I. \ -I/home/xxUserxx/go/pkg/mod/github.com/mwitkow/[email protected]/ \ ...

.net Core X Forwarded Proto not working

I am working to get my .net core 1.1 application working behind a load balancer and enforcing https. I have the following setup in my Startup.cs public void Configure(IApplicationBuilder app,...

Declaring a field tag in proto message

I just dived in Go programming using protobuf and I'm at the point where I need to validate data in a struct. I found govalidator, which seems to do the perfect job for what I need. It does...

Check if the response of a get api is a proto object

I fetch a proto object from an api , is there anyway I can validate that the response is a proto object. One thing which I did was check content-type as mentioned in the json counterpart of this...

How to use a forked module, with versioned Go Modules (v1.11+, GO111MODULE=on)

I forked a go module, and want to use the fork in my project that uses versioned modules via v1.12. My code is not inside my GOPATH. My project's go.mod: ```go module github.com/me/myproj go...

Envoy and Evans cli running issue

I'm writing some envoy control plane based on https://github.com/envoyproxy/go-control-plane And trying to use evans cli for debugging There is some issue I can't making it work with envoy data...

How to have import in .proto file of java project

import statement is showing in RED for java project and the optional parameters '[(validator.field) = {string_not_empty: true, length_lt: 255}];' are also showing RED. Using Java8 + Gradle...

How to exclude an import on client side

I'm using protoc-gen-validate, which is a code generator plugin for validating protobufs on the serverside. The server is written in Go, but client side, however, is in Javascript. The issue i'm...

Is there a way to check for new fields in the protobuf message?

What I want to do is to validate the data inside a protobuf message before I send it to an external network. This is providing a security check. The problem is that protobufs allow sending...

*time.Time is not proto.Message: missing method ProtoMessage

I have a grpc server. grpc is working fine but there is an error that prevents response from http server. this is the a.proto file syntax = "proto3"; // option go_package here import...

ANTLR4 Lexer doesn't like Cisco ACE

So, I'm try to parse something like this. permit 16 any eq 30 www any eq 80 established log-input The parse tree I'm aiming for looks like this. actual output from test rig As you can see, the 16...

Properly handling gRPC types to SQL ORM

I'm implementing a gRPC server and using an ORM called Boiler for Go. I've gotten to a point where I've built all my models and protos and now I'm handling specific type issues. Within my protobuf...

Optional fields and constraints in Protocol Buffers (protobuf) v3.0.0-alpha-2

I am currently playing around with v3.0.0-alpha-2 of Google Protocol Buffers. As far as I understand v3 removes the required keyword, the extensions keyword and default values for fields to...

How to model entity composed of other entities in DDD?

Let's have a machine(entity) that is composed by several devices(entity) of different types. We have a method on the machine to start it up and that method shall be calling Initialize method of...

How solid is the Mono SerialPort class?

I have an application that, among other things, uses the SerialPort to communicate with a Digi XBee coordinator radio. The code for this works rock solid on the desktop under .NET. Under Mono...