Documentation ¶
Index ¶
- Variables
- func ToLogEvent(l *Log) *event.Event
- type Log
- func (*Log) Descriptor() ([]byte, []int)
- func (m *Log) GetObject() *ValueObject
- func (m *Log) Marshal() (dAtA []byte, err error)
- func (m *Log) MarshalTo(dAtA []byte) (int, error)
- func (m *Log) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Log) ProtoMessage()
- func (m *Log) Reset()
- func (m *Log) Size() (n int)
- func (m *Log) String() string
- func (m *Log) Unmarshal(dAtA []byte) error
- func (m *Log) XXX_DiscardUnknown()
- func (m *Log) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Log) XXX_Merge(src proto.Message)
- func (m *Log) XXX_Size() int
- func (m *Log) XXX_Unmarshal(b []byte) error
- type MessageWrapper
- func (*MessageWrapper) Descriptor() ([]byte, []int)
- func (m *MessageWrapper) GetLog() *Log
- func (m *MessageWrapper) GetMessage() isMessageWrapper_Message
- func (m *MessageWrapper) Marshal() (dAtA []byte, err error)
- func (m *MessageWrapper) MarshalTo(dAtA []byte) (int, error)
- func (m *MessageWrapper) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MessageWrapper) ProtoMessage()
- func (m *MessageWrapper) Reset()
- func (m *MessageWrapper) Size() (n int)
- func (m *MessageWrapper) String() string
- func (m *MessageWrapper) Unmarshal(dAtA []byte) error
- func (m *MessageWrapper) XXX_DiscardUnknown()
- func (m *MessageWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MessageWrapper) XXX_Merge(src proto.Message)
- func (*MessageWrapper) XXX_OneofWrappers() []interface{}
- func (m *MessageWrapper) XXX_Size() int
- func (m *MessageWrapper) XXX_Unmarshal(b []byte) error
- type MessageWrapper_Log
- type Value
- func (*Value) Descriptor() ([]byte, []int)
- func (m *Value) GetArray() *ValueArray
- func (m *Value) GetBoolean() bool
- func (m *Value) GetFloat() float64
- func (m *Value) GetInteger() int64
- func (m *Value) GetKind() isValue_Kind
- func (m *Value) GetNull() ValueNull
- func (m *Value) GetObject() *ValueObject
- func (m *Value) GetString_() []byte
- func (m *Value) GetTimestamp() int64
- func (m *Value) GetUnsignedInteger() uint64
- func (m *Value) Marshal() (dAtA []byte, err error)
- func (m *Value) MarshalTo(dAtA []byte) (int, error)
- func (m *Value) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Value) ProtoMessage()
- func (m *Value) Reset()
- func (m *Value) Size() (n int)
- func (m *Value) String() string
- func (m *Value) Unmarshal(dAtA []byte) error
- func (m *Value) XXX_DiscardUnknown()
- func (m *Value) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Value) XXX_Merge(src proto.Message)
- func (*Value) XXX_OneofWrappers() []interface{}
- func (m *Value) XXX_Size() int
- func (m *Value) XXX_Unmarshal(b []byte) error
- type ValueArray
- func (*ValueArray) Descriptor() ([]byte, []int)
- func (m *ValueArray) GetItems() []*Value
- func (m *ValueArray) Marshal() (dAtA []byte, err error)
- func (m *ValueArray) MarshalTo(dAtA []byte) (int, error)
- func (m *ValueArray) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ValueArray) ProtoMessage()
- func (m *ValueArray) Reset()
- func (m *ValueArray) Size() (n int)
- func (m *ValueArray) String() string
- func (m *ValueArray) Unmarshal(dAtA []byte) error
- func (m *ValueArray) XXX_DiscardUnknown()
- func (m *ValueArray) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ValueArray) XXX_Merge(src proto.Message)
- func (m *ValueArray) XXX_Size() int
- func (m *ValueArray) XXX_Unmarshal(b []byte) error
- type ValueNull
- type ValueObject
- func (*ValueObject) Descriptor() ([]byte, []int)
- func (m *ValueObject) GetFields() map[string]*Value
- func (m *ValueObject) Marshal() (dAtA []byte, err error)
- func (m *ValueObject) MarshalTo(dAtA []byte) (int, error)
- func (m *ValueObject) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ValueObject) ProtoMessage()
- func (m *ValueObject) Reset()
- func (m *ValueObject) Size() (n int)
- func (m *ValueObject) String() string
- func (m *ValueObject) Unmarshal(dAtA []byte) error
- func (m *ValueObject) XXX_DiscardUnknown()
- func (m *ValueObject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ValueObject) XXX_Merge(src proto.Message)
- func (m *ValueObject) XXX_Size() int
- func (m *ValueObject) XXX_Unmarshal(b []byte) error
- type Value_Array
- type Value_Boolean
- type Value_Float
- type Value_Integer
- type Value_Null
- type Value_Object
- type Value_String_
- type Value_Timestamp
- type Value_UnsignedInteger
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthEvent = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowEvent = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupEvent = fmt.Errorf("proto: unexpected end of group") )
View Source
var ValueNull_name = map[int32]string{
0: "NULL_VALUE",
}
View Source
var ValueNull_value = map[string]int32{
"NULL_VALUE": 0,
}
Functions ¶
func ToLogEvent ¶
ToLogEvent returns a log event from a protocol buffer message.
Types ¶
type Log ¶
type Log struct { Object *ValueObject `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Log) Descriptor ¶
func (*Log) GetObject ¶
func (m *Log) GetObject() *ValueObject
func (*Log) ProtoMessage ¶
func (*Log) ProtoMessage()
func (*Log) XXX_DiscardUnknown ¶
func (m *Log) XXX_DiscardUnknown()
func (*Log) XXX_Unmarshal ¶
type MessageWrapper ¶
type MessageWrapper struct { // Types that are valid to be assigned to Message: // *MessageWrapper_Log Message isMessageWrapper_Message `protobuf_oneof:"message"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func FromEvent ¶
func FromEvent(evt *event.Event) *MessageWrapper
FromEvent returns a protocol buffer message containing the log event.
func (*MessageWrapper) Descriptor ¶
func (*MessageWrapper) Descriptor() ([]byte, []int)
func (*MessageWrapper) GetLog ¶
func (m *MessageWrapper) GetLog() *Log
func (*MessageWrapper) GetMessage ¶
func (m *MessageWrapper) GetMessage() isMessageWrapper_Message
func (*MessageWrapper) Marshal ¶
func (m *MessageWrapper) Marshal() (dAtA []byte, err error)
func (*MessageWrapper) MarshalToSizedBuffer ¶
func (m *MessageWrapper) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MessageWrapper) ProtoMessage ¶
func (*MessageWrapper) ProtoMessage()
func (*MessageWrapper) Reset ¶
func (m *MessageWrapper) Reset()
func (*MessageWrapper) Size ¶
func (m *MessageWrapper) Size() (n int)
func (*MessageWrapper) String ¶
func (m *MessageWrapper) String() string
func (*MessageWrapper) Unmarshal ¶
func (m *MessageWrapper) Unmarshal(dAtA []byte) error
func (*MessageWrapper) XXX_DiscardUnknown ¶
func (m *MessageWrapper) XXX_DiscardUnknown()
func (*MessageWrapper) XXX_Marshal ¶
func (m *MessageWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MessageWrapper) XXX_Merge ¶
func (m *MessageWrapper) XXX_Merge(src proto.Message)
func (*MessageWrapper) XXX_OneofWrappers ¶
func (*MessageWrapper) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*MessageWrapper) XXX_Size ¶
func (m *MessageWrapper) XXX_Size() int
func (*MessageWrapper) XXX_Unmarshal ¶
func (m *MessageWrapper) XXX_Unmarshal(b []byte) error
type MessageWrapper_Log ¶
type MessageWrapper_Log struct {
Log *Log `protobuf:"bytes,1,opt,name=log,proto3,oneof" json:"log,omitempty"`
}
func (*MessageWrapper_Log) MarshalTo ¶
func (m *MessageWrapper_Log) MarshalTo(dAtA []byte) (int, error)
func (*MessageWrapper_Log) MarshalToSizedBuffer ¶
func (m *MessageWrapper_Log) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MessageWrapper_Log) Size ¶
func (m *MessageWrapper_Log) Size() (n int)
type Value ¶
type Value struct { // Types that are valid to be assigned to Kind: // *Value_Null // *Value_Array // *Value_Boolean // *Value_Float // *Value_Integer // *Value_Object // *Value_String_ // *Value_Timestamp // *Value_UnsignedInteger Kind isValue_Kind `protobuf_oneof:"kind"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Value) Descriptor ¶
func (*Value) GetArray ¶
func (m *Value) GetArray() *ValueArray
func (*Value) GetBoolean ¶
func (*Value) GetInteger ¶
func (*Value) GetObject ¶
func (m *Value) GetObject() *ValueObject
func (*Value) GetString_ ¶
func (*Value) GetTimestamp ¶
func (*Value) GetUnsignedInteger ¶
func (*Value) ProtoMessage ¶
func (*Value) ProtoMessage()
func (*Value) XXX_DiscardUnknown ¶
func (m *Value) XXX_DiscardUnknown()
func (*Value) XXX_Marshal ¶
func (*Value) XXX_OneofWrappers ¶
func (*Value) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*Value) XXX_Unmarshal ¶
type ValueArray ¶
type ValueArray struct { Items []*Value `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ValueArray) Descriptor ¶
func (*ValueArray) Descriptor() ([]byte, []int)
func (*ValueArray) GetItems ¶
func (m *ValueArray) GetItems() []*Value
func (*ValueArray) Marshal ¶
func (m *ValueArray) Marshal() (dAtA []byte, err error)
func (*ValueArray) MarshalToSizedBuffer ¶
func (m *ValueArray) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ValueArray) ProtoMessage ¶
func (*ValueArray) ProtoMessage()
func (*ValueArray) Reset ¶
func (m *ValueArray) Reset()
func (*ValueArray) Size ¶
func (m *ValueArray) Size() (n int)
func (*ValueArray) String ¶
func (m *ValueArray) String() string
func (*ValueArray) Unmarshal ¶
func (m *ValueArray) Unmarshal(dAtA []byte) error
func (*ValueArray) XXX_DiscardUnknown ¶
func (m *ValueArray) XXX_DiscardUnknown()
func (*ValueArray) XXX_Marshal ¶
func (m *ValueArray) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ValueArray) XXX_Merge ¶
func (m *ValueArray) XXX_Merge(src proto.Message)
func (*ValueArray) XXX_Size ¶
func (m *ValueArray) XXX_Size() int
func (*ValueArray) XXX_Unmarshal ¶
func (m *ValueArray) XXX_Unmarshal(b []byte) error
type ValueNull ¶
type ValueNull int32
`ValueNull` is a singleton enumeration to represent the null value for the `Value` type union.
const ( // Null value. ValueNull_NULL_VALUE ValueNull = 0 )
func (ValueNull) EnumDescriptor ¶
type ValueObject ¶
type ValueObject struct { Fields map[string]*Value `` /* 153-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ValueObject) Descriptor ¶
func (*ValueObject) Descriptor() ([]byte, []int)
func (*ValueObject) GetFields ¶
func (m *ValueObject) GetFields() map[string]*Value
func (*ValueObject) Marshal ¶
func (m *ValueObject) Marshal() (dAtA []byte, err error)
func (*ValueObject) MarshalToSizedBuffer ¶
func (m *ValueObject) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ValueObject) ProtoMessage ¶
func (*ValueObject) ProtoMessage()
func (*ValueObject) Reset ¶
func (m *ValueObject) Reset()
func (*ValueObject) Size ¶
func (m *ValueObject) Size() (n int)
func (*ValueObject) String ¶
func (m *ValueObject) String() string
func (*ValueObject) Unmarshal ¶
func (m *ValueObject) Unmarshal(dAtA []byte) error
func (*ValueObject) XXX_DiscardUnknown ¶
func (m *ValueObject) XXX_DiscardUnknown()
func (*ValueObject) XXX_Marshal ¶
func (m *ValueObject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ValueObject) XXX_Merge ¶
func (m *ValueObject) XXX_Merge(src proto.Message)
func (*ValueObject) XXX_Size ¶
func (m *ValueObject) XXX_Size() int
func (*ValueObject) XXX_Unmarshal ¶
func (m *ValueObject) XXX_Unmarshal(b []byte) error
type Value_Array ¶
type Value_Array struct {
Array *ValueArray `protobuf:"bytes,2,opt,name=array,proto3,oneof" json:"array,omitempty"`
}
func (*Value_Array) MarshalToSizedBuffer ¶
func (m *Value_Array) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Value_Array) Size ¶
func (m *Value_Array) Size() (n int)
type Value_Boolean ¶
type Value_Boolean struct {
Boolean bool `protobuf:"varint,3,opt,name=boolean,proto3,oneof" json:"boolean,omitempty"`
}
func (*Value_Boolean) MarshalToSizedBuffer ¶
func (m *Value_Boolean) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Value_Boolean) Size ¶
func (m *Value_Boolean) Size() (n int)
type Value_Float ¶
type Value_Float struct {
Float float64 `protobuf:"fixed64,4,opt,name=float,proto3,oneof" json:"float,omitempty"`
}
func (*Value_Float) MarshalToSizedBuffer ¶
func (m *Value_Float) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Value_Float) Size ¶
func (m *Value_Float) Size() (n int)
type Value_Integer ¶
type Value_Integer struct {
Integer int64 `protobuf:"varint,5,opt,name=integer,proto3,oneof" json:"integer,omitempty"`
}
func (*Value_Integer) MarshalToSizedBuffer ¶
func (m *Value_Integer) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Value_Integer) Size ¶
func (m *Value_Integer) Size() (n int)
type Value_Null ¶
type Value_Null struct {
Null ValueNull `protobuf:"varint,1,opt,name=null,proto3,enum=protobuf.ValueNull,oneof" json:"null,omitempty"`
}
func (*Value_Null) MarshalToSizedBuffer ¶
func (m *Value_Null) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Value_Null) Size ¶
func (m *Value_Null) Size() (n int)
type Value_Object ¶
type Value_Object struct {
Object *ValueObject `protobuf:"bytes,6,opt,name=object,proto3,oneof" json:"object,omitempty"`
}
func (*Value_Object) MarshalToSizedBuffer ¶
func (m *Value_Object) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Value_Object) Size ¶
func (m *Value_Object) Size() (n int)
type Value_String_ ¶
type Value_String_ struct {
String_ []byte `protobuf:"bytes,7,opt,name=string,proto3,oneof" json:"string,omitempty"`
}
func (*Value_String_) MarshalToSizedBuffer ¶
func (m *Value_String_) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Value_String_) Size ¶
func (m *Value_String_) Size() (n int)
type Value_Timestamp ¶
type Value_Timestamp struct {
Timestamp int64 `protobuf:"varint,8,opt,name=timestamp,proto3,oneof" json:"timestamp,omitempty"`
}
func (*Value_Timestamp) MarshalToSizedBuffer ¶
func (m *Value_Timestamp) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Value_Timestamp) Size ¶
func (m *Value_Timestamp) Size() (n int)
type Value_UnsignedInteger ¶
type Value_UnsignedInteger struct {
UnsignedInteger uint64 `protobuf:"varint,9,opt,name=unsigned_integer,json=unsignedInteger,proto3,oneof" json:"unsigned_integer,omitempty"`
}
func (*Value_UnsignedInteger) MarshalTo ¶
func (m *Value_UnsignedInteger) MarshalTo(dAtA []byte) (int, error)
func (*Value_UnsignedInteger) MarshalToSizedBuffer ¶
func (m *Value_UnsignedInteger) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Value_UnsignedInteger) Size ¶
func (m *Value_UnsignedInteger) Size() (n int)
Click to show internal directories.
Click to hide internal directories.