825 lines
26 KiB
Go
825 lines
26 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.25.0-devel
|
|
// protoc v3.6.1
|
|
// source: trashlog.proto
|
|
|
|
package trashlogProto
|
|
|
|
import (
|
|
context "context"
|
|
grpc "google.golang.org/grpc"
|
|
codes "google.golang.org/grpc/codes"
|
|
status "google.golang.org/grpc/status"
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
type Fields2Add struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Fields map[string]string `protobuf:"bytes,1,rep,name=Fields,proto3" json:"Fields,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
|
}
|
|
|
|
func (x *Fields2Add) Reset() {
|
|
*x = Fields2Add{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_trashlog_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *Fields2Add) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Fields2Add) ProtoMessage() {}
|
|
|
|
func (x *Fields2Add) ProtoReflect() protoreflect.Message {
|
|
mi := &file_trashlog_proto_msgTypes[0]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Fields2Add.ProtoReflect.Descriptor instead.
|
|
func (*Fields2Add) Descriptor() ([]byte, []int) {
|
|
return file_trashlog_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *Fields2Add) GetFields() map[string]string {
|
|
if x != nil {
|
|
return x.Fields
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type NotModified struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Columns map[string]string `protobuf:"bytes,1,rep,name=Columns,proto3" json:"Columns,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
|
}
|
|
|
|
func (x *NotModified) Reset() {
|
|
*x = NotModified{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_trashlog_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *NotModified) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*NotModified) ProtoMessage() {}
|
|
|
|
func (x *NotModified) ProtoReflect() protoreflect.Message {
|
|
mi := &file_trashlog_proto_msgTypes[1]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use NotModified.ProtoReflect.Descriptor instead.
|
|
func (*NotModified) Descriptor() ([]byte, []int) {
|
|
return file_trashlog_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *NotModified) GetColumns() map[string]string {
|
|
if x != nil {
|
|
return x.Columns
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Dummy struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
}
|
|
|
|
func (x *Dummy) Reset() {
|
|
*x = Dummy{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_trashlog_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *Dummy) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Dummy) ProtoMessage() {}
|
|
|
|
func (x *Dummy) ProtoReflect() protoreflect.Message {
|
|
mi := &file_trashlog_proto_msgTypes[2]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Dummy.ProtoReflect.Descriptor instead.
|
|
func (*Dummy) Descriptor() ([]byte, []int) {
|
|
return file_trashlog_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
type Record struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Level string `protobuf:"bytes,1,opt,name=Level,proto3" json:"Level,omitempty"`
|
|
TS uint64 `protobuf:"varint,2,opt,name=TS,proto3" json:"TS,omitempty"`
|
|
Message string `protobuf:"bytes,3,opt,name=Message,proto3" json:"Message,omitempty"`
|
|
Module []string `protobuf:"bytes,4,rep,name=Module,proto3" json:"Module,omitempty"`
|
|
Stacktrace string `protobuf:"bytes,5,opt,name=Stacktrace,proto3" json:"Stacktrace,omitempty"`
|
|
KeyFields map[string]*Value `protobuf:"bytes,6,rep,name=KeyFields,proto3" json:"KeyFields,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
|
CtxFields map[string]*Value `protobuf:"bytes,7,rep,name=CtxFields,proto3" json:"CtxFields,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
|
SvcFields *SvcData `protobuf:"bytes,8,opt,name=SvcFields,proto3" json:"SvcFields,omitempty"`
|
|
}
|
|
|
|
func (x *Record) Reset() {
|
|
*x = Record{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_trashlog_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *Record) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Record) ProtoMessage() {}
|
|
|
|
func (x *Record) ProtoReflect() protoreflect.Message {
|
|
mi := &file_trashlog_proto_msgTypes[3]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Record.ProtoReflect.Descriptor instead.
|
|
func (*Record) Descriptor() ([]byte, []int) {
|
|
return file_trashlog_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *Record) GetLevel() string {
|
|
if x != nil {
|
|
return x.Level
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Record) GetTS() uint64 {
|
|
if x != nil {
|
|
return x.TS
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Record) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Record) GetModule() []string {
|
|
if x != nil {
|
|
return x.Module
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Record) GetStacktrace() string {
|
|
if x != nil {
|
|
return x.Stacktrace
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Record) GetKeyFields() map[string]*Value {
|
|
if x != nil {
|
|
return x.KeyFields
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Record) GetCtxFields() map[string]*Value {
|
|
if x != nil {
|
|
return x.CtxFields
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Record) GetSvcFields() *SvcData {
|
|
if x != nil {
|
|
return x.SvcFields
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type SvcData struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
BuildTime uint64 `protobuf:"varint,1,opt,name=BuildTime,proto3" json:"BuildTime,omitempty"`
|
|
Version string `protobuf:"bytes,2,opt,name=Version,proto3" json:"Version,omitempty"`
|
|
Commit string `protobuf:"bytes,3,opt,name=Commit,proto3" json:"Commit,omitempty"`
|
|
File string `protobuf:"bytes,4,opt,name=File,proto3" json:"File,omitempty"`
|
|
Line uint64 `protobuf:"varint,5,opt,name=Line,proto3" json:"Line,omitempty"`
|
|
}
|
|
|
|
func (x *SvcData) Reset() {
|
|
*x = SvcData{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_trashlog_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *SvcData) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SvcData) ProtoMessage() {}
|
|
|
|
func (x *SvcData) ProtoReflect() protoreflect.Message {
|
|
mi := &file_trashlog_proto_msgTypes[4]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use SvcData.ProtoReflect.Descriptor instead.
|
|
func (*SvcData) Descriptor() ([]byte, []int) {
|
|
return file_trashlog_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *SvcData) GetBuildTime() uint64 {
|
|
if x != nil {
|
|
return x.BuildTime
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SvcData) GetVersion() string {
|
|
if x != nil {
|
|
return x.Version
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SvcData) GetCommit() string {
|
|
if x != nil {
|
|
return x.Commit
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SvcData) GetFile() string {
|
|
if x != nil {
|
|
return x.File
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SvcData) GetLine() uint64 {
|
|
if x != nil {
|
|
return x.Line
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Value struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
// Types that are assignable to Value:
|
|
// *Value_Str
|
|
// *Value_Num
|
|
// *Value_Double
|
|
// *Value_Flag
|
|
Value isValue_Value `protobuf_oneof:"Value"`
|
|
}
|
|
|
|
func (x *Value) Reset() {
|
|
*x = Value{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_trashlog_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *Value) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Value) ProtoMessage() {}
|
|
|
|
func (x *Value) ProtoReflect() protoreflect.Message {
|
|
mi := &file_trashlog_proto_msgTypes[5]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Value.ProtoReflect.Descriptor instead.
|
|
func (*Value) Descriptor() ([]byte, []int) {
|
|
return file_trashlog_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (m *Value) GetValue() isValue_Value {
|
|
if m != nil {
|
|
return m.Value
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Value) GetStr() string {
|
|
if x, ok := x.GetValue().(*Value_Str); ok {
|
|
return x.Str
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Value) GetNum() int64 {
|
|
if x, ok := x.GetValue().(*Value_Num); ok {
|
|
return x.Num
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Value) GetDouble() float32 {
|
|
if x, ok := x.GetValue().(*Value_Double); ok {
|
|
return x.Double
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Value) GetFlag() bool {
|
|
if x, ok := x.GetValue().(*Value_Flag); ok {
|
|
return x.Flag
|
|
}
|
|
return false
|
|
}
|
|
|
|
type isValue_Value interface {
|
|
isValue_Value()
|
|
}
|
|
|
|
type Value_Str struct {
|
|
Str string `protobuf:"bytes,1,opt,name=Str,proto3,oneof"`
|
|
}
|
|
|
|
type Value_Num struct {
|
|
Num int64 `protobuf:"varint,2,opt,name=Num,proto3,oneof"`
|
|
}
|
|
|
|
type Value_Double struct {
|
|
Double float32 `protobuf:"fixed32,3,opt,name=Double,proto3,oneof"`
|
|
}
|
|
|
|
type Value_Flag struct {
|
|
Flag bool `protobuf:"varint,4,opt,name=Flag,proto3,oneof"`
|
|
}
|
|
|
|
func (*Value_Str) isValue_Value() {}
|
|
|
|
func (*Value_Num) isValue_Value() {}
|
|
|
|
func (*Value_Double) isValue_Value() {}
|
|
|
|
func (*Value_Flag) isValue_Value() {}
|
|
|
|
var File_trashlog_proto protoreflect.FileDescriptor
|
|
|
|
var file_trashlog_proto_rawDesc = []byte{
|
|
0x0a, 0x0e, 0x74, 0x72, 0x61, 0x73, 0x68, 0x6c, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
|
0x12, 0x08, 0x74, 0x72, 0x61, 0x73, 0x68, 0x6c, 0x6f, 0x67, 0x22, 0x81, 0x01, 0x0a, 0x0a, 0x46,
|
|
0x69, 0x65, 0x6c, 0x64, 0x73, 0x32, 0x41, 0x64, 0x64, 0x12, 0x38, 0x0a, 0x06, 0x46, 0x69, 0x65,
|
|
0x6c, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x74, 0x72, 0x61, 0x73,
|
|
0x68, 0x6c, 0x6f, 0x67, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x32, 0x41, 0x64, 0x64, 0x2e,
|
|
0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x46, 0x69, 0x65,
|
|
0x6c, 0x64, 0x73, 0x1a, 0x39, 0x0a, 0x0b, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x45, 0x6e, 0x74,
|
|
0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20,
|
|
0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x87,
|
|
0x01, 0x0a, 0x0b, 0x4e, 0x6f, 0x74, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x12, 0x3c,
|
|
0x0a, 0x07, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
|
|
0x22, 0x2e, 0x74, 0x72, 0x61, 0x73, 0x68, 0x6c, 0x6f, 0x67, 0x2e, 0x4e, 0x6f, 0x74, 0x4d, 0x6f,
|
|
0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x45, 0x6e,
|
|
0x74, 0x72, 0x79, 0x52, 0x07, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x1a, 0x3a, 0x0a, 0x0c,
|
|
0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03,
|
|
0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14,
|
|
0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76,
|
|
0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x07, 0x0a, 0x05, 0x44, 0x75, 0x6d, 0x6d,
|
|
0x79, 0x22, 0xcd, 0x03, 0x0a, 0x06, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x14, 0x0a, 0x05,
|
|
0x4c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x4c, 0x65, 0x76,
|
|
0x65, 0x6c, 0x12, 0x0e, 0x0a, 0x02, 0x54, 0x53, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02,
|
|
0x54, 0x53, 0x12, 0x18, 0x0a, 0x07, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20,
|
|
0x01, 0x28, 0x09, 0x52, 0x07, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x16, 0x0a, 0x06,
|
|
0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x4d, 0x6f,
|
|
0x64, 0x75, 0x6c, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x74, 0x72, 0x61,
|
|
0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x74,
|
|
0x72, 0x61, 0x63, 0x65, 0x12, 0x3d, 0x0a, 0x09, 0x4b, 0x65, 0x79, 0x46, 0x69, 0x65, 0x6c, 0x64,
|
|
0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x74, 0x72, 0x61, 0x73, 0x68, 0x6c,
|
|
0x6f, 0x67, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x2e, 0x4b, 0x65, 0x79, 0x46, 0x69, 0x65,
|
|
0x6c, 0x64, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x09, 0x4b, 0x65, 0x79, 0x46, 0x69, 0x65,
|
|
0x6c, 0x64, 0x73, 0x12, 0x3d, 0x0a, 0x09, 0x43, 0x74, 0x78, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73,
|
|
0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x74, 0x72, 0x61, 0x73, 0x68, 0x6c, 0x6f,
|
|
0x67, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x2e, 0x43, 0x74, 0x78, 0x46, 0x69, 0x65, 0x6c,
|
|
0x64, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x09, 0x43, 0x74, 0x78, 0x46, 0x69, 0x65, 0x6c,
|
|
0x64, 0x73, 0x12, 0x2f, 0x0a, 0x09, 0x53, 0x76, 0x63, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18,
|
|
0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x72, 0x61, 0x73, 0x68, 0x6c, 0x6f, 0x67,
|
|
0x2e, 0x53, 0x76, 0x63, 0x44, 0x61, 0x74, 0x61, 0x52, 0x09, 0x53, 0x76, 0x63, 0x46, 0x69, 0x65,
|
|
0x6c, 0x64, 0x73, 0x1a, 0x4d, 0x0a, 0x0e, 0x4b, 0x65, 0x79, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73,
|
|
0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01,
|
|
0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x25, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
|
|
0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x74, 0x72, 0x61, 0x73, 0x68, 0x6c, 0x6f,
|
|
0x67, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02,
|
|
0x38, 0x01, 0x1a, 0x4d, 0x0a, 0x0e, 0x43, 0x74, 0x78, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x45,
|
|
0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28,
|
|
0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x25, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,
|
|
0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x74, 0x72, 0x61, 0x73, 0x68, 0x6c, 0x6f, 0x67,
|
|
0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38,
|
|
0x01, 0x22, 0x81, 0x01, 0x0a, 0x07, 0x53, 0x76, 0x63, 0x44, 0x61, 0x74, 0x61, 0x12, 0x1c, 0x0a,
|
|
0x09, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04,
|
|
0x52, 0x09, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x56,
|
|
0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x56, 0x65,
|
|
0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18,
|
|
0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x12, 0x0a,
|
|
0x04, 0x46, 0x69, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x46, 0x69, 0x6c,
|
|
0x65, 0x12, 0x12, 0x0a, 0x04, 0x4c, 0x69, 0x6e, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52,
|
|
0x04, 0x4c, 0x69, 0x6e, 0x65, 0x22, 0x68, 0x0a, 0x05, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x12,
|
|
0x0a, 0x03, 0x53, 0x74, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x03, 0x53,
|
|
0x74, 0x72, 0x12, 0x12, 0x0a, 0x03, 0x4e, 0x75, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x48,
|
|
0x00, 0x52, 0x03, 0x4e, 0x75, 0x6d, 0x12, 0x18, 0x0a, 0x06, 0x44, 0x6f, 0x75, 0x62, 0x6c, 0x65,
|
|
0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x48, 0x00, 0x52, 0x06, 0x44, 0x6f, 0x75, 0x62, 0x6c, 0x65,
|
|
0x12, 0x14, 0x0a, 0x04, 0x46, 0x6c, 0x61, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00,
|
|
0x52, 0x04, 0x46, 0x6c, 0x61, 0x67, 0x42, 0x07, 0x0a, 0x05, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x32,
|
|
0x73, 0x0a, 0x08, 0x54, 0x72, 0x61, 0x73, 0x68, 0x6c, 0x6f, 0x67, 0x12, 0x2e, 0x0a, 0x05, 0x56,
|
|
0x61, 0x6c, 0x76, 0x65, 0x12, 0x10, 0x2e, 0x74, 0x72, 0x61, 0x73, 0x68, 0x6c, 0x6f, 0x67, 0x2e,
|
|
0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x1a, 0x0f, 0x2e, 0x74, 0x72, 0x61, 0x73, 0x68, 0x6c, 0x6f,
|
|
0x67, 0x2e, 0x44, 0x75, 0x6d, 0x6d, 0x79, 0x22, 0x00, 0x28, 0x01, 0x12, 0x37, 0x0a, 0x06, 0x4d,
|
|
0x6f, 0x64, 0x69, 0x66, 0x79, 0x12, 0x14, 0x2e, 0x74, 0x72, 0x61, 0x73, 0x68, 0x6c, 0x6f, 0x67,
|
|
0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x32, 0x41, 0x64, 0x64, 0x1a, 0x15, 0x2e, 0x74, 0x72,
|
|
0x61, 0x73, 0x68, 0x6c, 0x6f, 0x67, 0x2e, 0x4e, 0x6f, 0x74, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x69,
|
|
0x65, 0x64, 0x22, 0x00, 0x42, 0x11, 0x5a, 0x0f, 0x2e, 0x3b, 0x74, 0x72, 0x61, 0x73, 0x68, 0x6c,
|
|
0x6f, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
}
|
|
|
|
var (
|
|
file_trashlog_proto_rawDescOnce sync.Once
|
|
file_trashlog_proto_rawDescData = file_trashlog_proto_rawDesc
|
|
)
|
|
|
|
func file_trashlog_proto_rawDescGZIP() []byte {
|
|
file_trashlog_proto_rawDescOnce.Do(func() {
|
|
file_trashlog_proto_rawDescData = protoimpl.X.CompressGZIP(file_trashlog_proto_rawDescData)
|
|
})
|
|
return file_trashlog_proto_rawDescData
|
|
}
|
|
|
|
var file_trashlog_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
|
|
var file_trashlog_proto_goTypes = []interface{}{
|
|
(*Fields2Add)(nil), // 0: trashlog.Fields2Add
|
|
(*NotModified)(nil), // 1: trashlog.NotModified
|
|
(*Dummy)(nil), // 2: trashlog.Dummy
|
|
(*Record)(nil), // 3: trashlog.Record
|
|
(*SvcData)(nil), // 4: trashlog.SvcData
|
|
(*Value)(nil), // 5: trashlog.Value
|
|
nil, // 6: trashlog.Fields2Add.FieldsEntry
|
|
nil, // 7: trashlog.NotModified.ColumnsEntry
|
|
nil, // 8: trashlog.Record.KeyFieldsEntry
|
|
nil, // 9: trashlog.Record.CtxFieldsEntry
|
|
}
|
|
var file_trashlog_proto_depIdxs = []int32{
|
|
6, // 0: trashlog.Fields2Add.Fields:type_name -> trashlog.Fields2Add.FieldsEntry
|
|
7, // 1: trashlog.NotModified.Columns:type_name -> trashlog.NotModified.ColumnsEntry
|
|
8, // 2: trashlog.Record.KeyFields:type_name -> trashlog.Record.KeyFieldsEntry
|
|
9, // 3: trashlog.Record.CtxFields:type_name -> trashlog.Record.CtxFieldsEntry
|
|
4, // 4: trashlog.Record.SvcFields:type_name -> trashlog.SvcData
|
|
5, // 5: trashlog.Record.KeyFieldsEntry.value:type_name -> trashlog.Value
|
|
5, // 6: trashlog.Record.CtxFieldsEntry.value:type_name -> trashlog.Value
|
|
3, // 7: trashlog.Trashlog.Valve:input_type -> trashlog.Record
|
|
0, // 8: trashlog.Trashlog.Modify:input_type -> trashlog.Fields2Add
|
|
2, // 9: trashlog.Trashlog.Valve:output_type -> trashlog.Dummy
|
|
1, // 10: trashlog.Trashlog.Modify:output_type -> trashlog.NotModified
|
|
9, // [9:11] is the sub-list for method output_type
|
|
7, // [7:9] is the sub-list for method input_type
|
|
7, // [7:7] is the sub-list for extension type_name
|
|
7, // [7:7] is the sub-list for extension extendee
|
|
0, // [0:7] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_trashlog_proto_init() }
|
|
func file_trashlog_proto_init() {
|
|
if File_trashlog_proto != nil {
|
|
return
|
|
}
|
|
if !protoimpl.UnsafeEnabled {
|
|
file_trashlog_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*Fields2Add); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_trashlog_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*NotModified); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_trashlog_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*Dummy); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_trashlog_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*Record); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_trashlog_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*SvcData); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_trashlog_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*Value); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
}
|
|
file_trashlog_proto_msgTypes[5].OneofWrappers = []interface{}{
|
|
(*Value_Str)(nil),
|
|
(*Value_Num)(nil),
|
|
(*Value_Double)(nil),
|
|
(*Value_Flag)(nil),
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: file_trashlog_proto_rawDesc,
|
|
NumEnums: 0,
|
|
NumMessages: 10,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_trashlog_proto_goTypes,
|
|
DependencyIndexes: file_trashlog_proto_depIdxs,
|
|
MessageInfos: file_trashlog_proto_msgTypes,
|
|
}.Build()
|
|
File_trashlog_proto = out.File
|
|
file_trashlog_proto_rawDesc = nil
|
|
file_trashlog_proto_goTypes = nil
|
|
file_trashlog_proto_depIdxs = nil
|
|
}
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ context.Context
|
|
var _ grpc.ClientConnInterface
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the grpc package it is being compiled against.
|
|
const _ = grpc.SupportPackageIsVersion6
|
|
|
|
// TrashlogClient is the client API for Trashlog service.
|
|
//
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
type TrashlogClient interface {
|
|
Valve(ctx context.Context, opts ...grpc.CallOption) (Trashlog_ValveClient, error)
|
|
Modify(ctx context.Context, in *Fields2Add, opts ...grpc.CallOption) (*NotModified, error)
|
|
}
|
|
|
|
type trashlogClient struct {
|
|
cc grpc.ClientConnInterface
|
|
}
|
|
|
|
func NewTrashlogClient(cc grpc.ClientConnInterface) TrashlogClient {
|
|
return &trashlogClient{cc}
|
|
}
|
|
|
|
func (c *trashlogClient) Valve(ctx context.Context, opts ...grpc.CallOption) (Trashlog_ValveClient, error) {
|
|
stream, err := c.cc.NewStream(ctx, &_Trashlog_serviceDesc.Streams[0], "/trashlog.Trashlog/Valve", opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
x := &trashlogValveClient{stream}
|
|
return x, nil
|
|
}
|
|
|
|
type Trashlog_ValveClient interface {
|
|
Send(*Record) error
|
|
CloseAndRecv() (*Dummy, error)
|
|
grpc.ClientStream
|
|
}
|
|
|
|
type trashlogValveClient struct {
|
|
grpc.ClientStream
|
|
}
|
|
|
|
func (x *trashlogValveClient) Send(m *Record) error {
|
|
return x.ClientStream.SendMsg(m)
|
|
}
|
|
|
|
func (x *trashlogValveClient) CloseAndRecv() (*Dummy, error) {
|
|
if err := x.ClientStream.CloseSend(); err != nil {
|
|
return nil, err
|
|
}
|
|
m := new(Dummy)
|
|
if err := x.ClientStream.RecvMsg(m); err != nil {
|
|
return nil, err
|
|
}
|
|
return m, nil
|
|
}
|
|
|
|
func (c *trashlogClient) Modify(ctx context.Context, in *Fields2Add, opts ...grpc.CallOption) (*NotModified, error) {
|
|
out := new(NotModified)
|
|
err := c.cc.Invoke(ctx, "/trashlog.Trashlog/Modify", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// TrashlogServer is the server API for Trashlog service.
|
|
type TrashlogServer interface {
|
|
Valve(Trashlog_ValveServer) error
|
|
Modify(context.Context, *Fields2Add) (*NotModified, error)
|
|
}
|
|
|
|
// UnimplementedTrashlogServer can be embedded to have forward compatible implementations.
|
|
type UnimplementedTrashlogServer struct {
|
|
}
|
|
|
|
func (*UnimplementedTrashlogServer) Valve(Trashlog_ValveServer) error {
|
|
return status.Errorf(codes.Unimplemented, "method Valve not implemented")
|
|
}
|
|
func (*UnimplementedTrashlogServer) Modify(context.Context, *Fields2Add) (*NotModified, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method Modify not implemented")
|
|
}
|
|
|
|
func RegisterTrashlogServer(s *grpc.Server, srv TrashlogServer) {
|
|
s.RegisterService(&_Trashlog_serviceDesc, srv)
|
|
}
|
|
|
|
func _Trashlog_Valve_Handler(srv interface{}, stream grpc.ServerStream) error {
|
|
return srv.(TrashlogServer).Valve(&trashlogValveServer{stream})
|
|
}
|
|
|
|
type Trashlog_ValveServer interface {
|
|
SendAndClose(*Dummy) error
|
|
Recv() (*Record, error)
|
|
grpc.ServerStream
|
|
}
|
|
|
|
type trashlogValveServer struct {
|
|
grpc.ServerStream
|
|
}
|
|
|
|
func (x *trashlogValveServer) SendAndClose(m *Dummy) error {
|
|
return x.ServerStream.SendMsg(m)
|
|
}
|
|
|
|
func (x *trashlogValveServer) Recv() (*Record, error) {
|
|
m := new(Record)
|
|
if err := x.ServerStream.RecvMsg(m); err != nil {
|
|
return nil, err
|
|
}
|
|
return m, nil
|
|
}
|
|
|
|
func _Trashlog_Modify_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(Fields2Add)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(TrashlogServer).Modify(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/trashlog.Trashlog/Modify",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(TrashlogServer).Modify(ctx, req.(*Fields2Add))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
var _Trashlog_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "trashlog.Trashlog",
|
|
HandlerType: (*TrashlogServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "Modify",
|
|
Handler: _Trashlog_Modify_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{
|
|
{
|
|
StreamName: "Valve",
|
|
Handler: _Trashlog_Valve_Handler,
|
|
ClientStreams: true,
|
|
},
|
|
},
|
|
Metadata: "trashlog.proto",
|
|
}
|