642 lines
19 KiB
Go
642 lines
19 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 trashlog_proto
|
||
|
|
||
|
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 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[0]
|
||
|
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[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 Dummy.ProtoReflect.Descriptor instead.
|
||
|
func (*Dummy) Descriptor() ([]byte, []int) {
|
||
|
return file_trashlog_proto_rawDescGZIP(), []int{0}
|
||
|
}
|
||
|
|
||
|
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[1]
|
||
|
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[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 Record.ProtoReflect.Descriptor instead.
|
||
|
func (*Record) Descriptor() ([]byte, []int) {
|
||
|
return file_trashlog_proto_rawDescGZIP(), []int{1}
|
||
|
}
|
||
|
|
||
|
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[2]
|
||
|
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[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 SvcData.ProtoReflect.Descriptor instead.
|
||
|
func (*SvcData) Descriptor() ([]byte, []int) {
|
||
|
return file_trashlog_proto_rawDescGZIP(), []int{2}
|
||
|
}
|
||
|
|
||
|
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[3]
|
||
|
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[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 Value.ProtoReflect.Descriptor instead.
|
||
|
func (*Value) Descriptor() ([]byte, []int) {
|
||
|
return file_trashlog_proto_rawDescGZIP(), []int{3}
|
||
|
}
|
||
|
|
||
|
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, 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, 0x3a, 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, 0x42, 0x10, 0x5a,
|
||
|
0x0e, 0x74, 0x72, 0x61, 0x73, 0x68, 0x6c, 0x6f, 0x67, 0x5f, 0x70, 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, 6)
|
||
|
var file_trashlog_proto_goTypes = []interface{}{
|
||
|
(*Dummy)(nil), // 0: trashlog.Dummy
|
||
|
(*Record)(nil), // 1: trashlog.Record
|
||
|
(*SvcData)(nil), // 2: trashlog.SvcData
|
||
|
(*Value)(nil), // 3: trashlog.Value
|
||
|
nil, // 4: trashlog.Record.KeyFieldsEntry
|
||
|
nil, // 5: trashlog.Record.CtxFieldsEntry
|
||
|
}
|
||
|
var file_trashlog_proto_depIdxs = []int32{
|
||
|
4, // 0: trashlog.Record.KeyFields:type_name -> trashlog.Record.KeyFieldsEntry
|
||
|
5, // 1: trashlog.Record.CtxFields:type_name -> trashlog.Record.CtxFieldsEntry
|
||
|
2, // 2: trashlog.Record.SvcFields:type_name -> trashlog.SvcData
|
||
|
3, // 3: trashlog.Record.KeyFieldsEntry.value:type_name -> trashlog.Value
|
||
|
3, // 4: trashlog.Record.CtxFieldsEntry.value:type_name -> trashlog.Value
|
||
|
1, // 5: trashlog.Trashlog.Valve:input_type -> trashlog.Record
|
||
|
0, // 6: trashlog.Trashlog.Valve:output_type -> trashlog.Dummy
|
||
|
6, // [6:7] is the sub-list for method output_type
|
||
|
5, // [5:6] is the sub-list for method input_type
|
||
|
5, // [5:5] is the sub-list for extension type_name
|
||
|
5, // [5:5] is the sub-list for extension extendee
|
||
|
0, // [0:5] 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.(*Dummy); 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.(*Record); 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.(*SvcData); 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.(*Value); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
file_trashlog_proto_msgTypes[3].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: 6,
|
||
|
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)
|
||
|
}
|
||
|
|
||
|
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
|
||
|
}
|
||
|
|
||
|
// TrashlogServer is the server API for Trashlog service.
|
||
|
type TrashlogServer interface {
|
||
|
Valve(Trashlog_ValveServer) 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 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
|
||
|
}
|
||
|
|
||
|
var _Trashlog_serviceDesc = grpc.ServiceDesc{
|
||
|
ServiceName: "trashlog.Trashlog",
|
||
|
HandlerType: (*TrashlogServer)(nil),
|
||
|
Methods: []grpc.MethodDesc{},
|
||
|
Streams: []grpc.StreamDesc{
|
||
|
{
|
||
|
StreamName: "Valve",
|
||
|
Handler: _Trashlog_Valve_Handler,
|
||
|
ClientStreams: true,
|
||
|
},
|
||
|
},
|
||
|
Metadata: "trashlog.proto",
|
||
|
}
|