You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
syntax = "proto3";
package apkaaa;
message ActiveReq {
string serial = 1;
string code = 2;
string mac_address_1 = 3;
string mac_address_2 = 4;
string release_sn = 5;
}
message ME {
string user_id = 1;
string register_date = 2;
string expiration = 3;
}
message Active {
ME me =1;
string token = 2;
}
message ActiveResp {
repeated Active active =1;
}
service ApkAaaService {
rpc Active( ActiveReq ) returns ( ActiveResp ) {}
}
should membuffers to ignore the service field ??
suggest 2:
as we know, gRPC support custom codec like gRPC with flatbuffers,
should membuffers support gRPC ?
in go, gRPC codec interface
// Codec defines the interface gRPC uses to encode and decode messages.
// Note that implementations of this interface must be thread safe;
// a Codec's methods can be called from concurrent goroutines.
//
// Deprecated: use encoding.Codec instead.
type Codec interface {
// Marshal returns the wire format of v.
Marshal(v interface{}) ([]byte, error)
// Unmarshal parses the wire format into v.
Unmarshal(data []byte, v interface{}) error
// String returns the name of the Codec implementation. This is unused by
// gRPC.
String() string
}
The text was updated successfully, but these errors were encountered:
suggest 1:
as .proto like this
should membuffers to ignore the service field ??
suggest 2:
as we know, gRPC support custom codec like gRPC with flatbuffers,
should membuffers support gRPC ?
in go, gRPC codec interface
The text was updated successfully, but these errors were encountered: