go-vitess.v1: gopkg.in/src-d/go-vitess.v1/vt/proto/logutil Index | Files

package logutil

import "gopkg.in/src-d/go-vitess.v1/vt/proto/logutil"

Index

Package Files

logutil.pb.go

Variables

var Level_name = map[int32]string{
    0:  "INFO",
    1:  "WARNING",
    2:  "ERROR",
    3:  "CONSOLE",
}
var Level_value = map[string]int32{
    "INFO":    0,
    "WARNING": 1,
    "ERROR":   2,
    "CONSOLE": 3,
}

type Event Uses

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 Uses

func (*Event) Descriptor() ([]byte, []int)

func (*Event) GetFile Uses

func (m *Event) GetFile() string

func (*Event) GetLevel Uses

func (m *Event) GetLevel() Level

func (*Event) GetLine Uses

func (m *Event) GetLine() int64

func (*Event) GetTime Uses

func (m *Event) GetTime() *Time

func (*Event) GetValue Uses

func (m *Event) GetValue() string

func (*Event) ProtoMessage Uses

func (*Event) ProtoMessage()

func (*Event) Reset Uses

func (m *Event) Reset()

func (*Event) String Uses

func (m *Event) String() string

func (*Event) XXX_DiscardUnknown Uses

func (m *Event) XXX_DiscardUnknown()

func (*Event) XXX_Marshal Uses

func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Event) XXX_Merge Uses

func (dst *Event) XXX_Merge(src proto.Message)

func (*Event) XXX_Size Uses

func (m *Event) XXX_Size() int

func (*Event) XXX_Unmarshal Uses

func (m *Event) XXX_Unmarshal(b []byte) error

type Level Uses

type Level int32

Level is the level of the log messages.

const (
    // The usual logging levels.
    // Should be logged using logging facility.
    Level_INFO    Level = 0
    Level_WARNING Level = 1
    Level_ERROR   Level = 2
    // For messages that may contains non-logging events.
    // Should be logged to console directly.
    Level_CONSOLE Level = 3
)

func (Level) EnumDescriptor Uses

func (Level) EnumDescriptor() ([]byte, []int)

func (Level) String Uses

func (x Level) String() string

type Time Uses

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 Uses

func (*Time) Descriptor() ([]byte, []int)

func (*Time) GetNanoseconds Uses

func (m *Time) GetNanoseconds() int32

func (*Time) GetSeconds Uses

func (m *Time) GetSeconds() int64

func (*Time) ProtoMessage Uses

func (*Time) ProtoMessage()

func (*Time) Reset Uses

func (m *Time) Reset()

func (*Time) String Uses

func (m *Time) String() string

func (*Time) XXX_DiscardUnknown Uses

func (m *Time) XXX_DiscardUnknown()

func (*Time) XXX_Marshal Uses

func (m *Time) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Time) XXX_Merge Uses

func (dst *Time) XXX_Merge(src proto.Message)

func (*Time) XXX_Size Uses

func (m *Time) XXX_Size() int

func (*Time) XXX_Unmarshal Uses

func (m *Time) XXX_Unmarshal(b []byte) error

Package logutil imports 3 packages (graph) and is imported by 26 packages. Updated 2019-06-13. Refresh now. Tools for package owners.