Documentation ¶
Index ¶
- Variables
- type Event
- func (*Event) Descriptor() ([]byte, []int)
- func (m *Event) GetFile() string
- func (m *Event) GetLevel() Level
- func (m *Event) GetLine() int64
- func (m *Event) GetTime() *Time
- func (m *Event) GetValue() string
- func (*Event) ProtoMessage()
- func (m *Event) Reset()
- func (m *Event) String() string
- func (m *Event) XXX_DiscardUnknown()
- func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Event) XXX_Merge(src proto.Message)
- func (m *Event) XXX_Size() int
- func (m *Event) XXX_Unmarshal(b []byte) error
- type Level
- type Time
- func (*Time) Descriptor() ([]byte, []int)
- func (m *Time) GetNanoseconds() int32
- func (m *Time) GetSeconds() int64
- func (*Time) ProtoMessage()
- func (m *Time) Reset()
- func (m *Time) String() string
- func (m *Time) XXX_DiscardUnknown()
- func (m *Time) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Time) XXX_Merge(src proto.Message)
- func (m *Time) XXX_Size() int
- func (m *Time) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Level_name = map[int32]string{
0: "INFO",
1: "WARNING",
2: "ERROR",
3: "CONSOLE",
}
View Source
var Level_value = map[string]int32{
"INFO": 0,
"WARNING": 1,
"ERROR": 2,
"CONSOLE": 3,
}
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct { Time *Time `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"` Level Level `protobuf:"varint,2,opt,name=level,proto3,enum=logutil.Level" json:"level,omitempty"` File string `protobuf:"bytes,3,opt,name=file,proto3" json:"file,omitempty"` Line int64 `protobuf:"varint,4,opt,name=line,proto3" json:"line,omitempty"` Value string `protobuf:"bytes,5,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Event is a single logging event
func (*Event) Descriptor ¶
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) XXX_DiscardUnknown ¶
func (m *Event) XXX_DiscardUnknown()
func (*Event) XXX_Marshal ¶
func (*Event) XXX_Unmarshal ¶
type Time ¶
type Time struct { Seconds int64 `protobuf:"varint,1,opt,name=seconds,proto3" json:"seconds,omitempty"` Nanoseconds int32 `protobuf:"varint,2,opt,name=nanoseconds,proto3" json:"nanoseconds,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Time represents a time stamp in nanoseconds. In go, use logutil library to convert times.
func (*Time) Descriptor ¶
func (*Time) GetNanoseconds ¶
func (*Time) GetSeconds ¶
func (*Time) ProtoMessage ¶
func (*Time) ProtoMessage()
func (*Time) XXX_DiscardUnknown ¶
func (m *Time) XXX_DiscardUnknown()
func (*Time) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.