Documentation
¶
Index ¶
- Constants
- func FormatTime(time time.Time) string
- func MarshalToBytes(entry *Entry) ([]byte, error)
- func ParserTime(s string) (time.Time, error)
- type Entry
- func (*Entry) Descriptor() ([]byte, []int)
- func (m *Entry) GetErrorText() string
- func (m *Entry) GetEvent() string
- func (m *Entry) GetHost() string
- func (m *Entry) GetLevel() string
- func (m *Entry) GetModuleName() string
- func (m *Entry) GetRequest() []byte
- func (m *Entry) GetResponse() []byte
- func (m *Entry) GetTime() string
- func (*Entry) ProtoMessage()
- func (m *Entry) Reset()
- func (m *Entry) String() string
- func (m *Entry) XXX_DiscardUnknown()
- func (m *Entry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Entry) XXX_Merge(src proto.Message)
- func (m *Entry) XXX_Size() int
- func (m *Entry) XXX_Unmarshal(b []byte) error
- type Level
Constants ¶
View Source
const ( LevelError = "ERROR" LevelInfo = "OK" LevelWarn = "WARN" )
Variables ¶
This section is empty.
Functions ¶
func FormatTime ¶
func MarshalToBytes ¶
Types ¶
type Entry ¶
type Entry struct { ModuleName string `protobuf:"bytes,1,opt,name=moduleName,proto3" json:"moduleName,omitempty"` Host string `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"` Event string `protobuf:"bytes,3,opt,name=event,proto3" json:"event,omitempty"` Level string `protobuf:"bytes,4,opt,name=level,proto3" json:"level,omitempty"` Time string `protobuf:"bytes,5,opt,name=time,proto3" json:"time,omitempty"` Request []byte `protobuf:"bytes,6,opt,name=request,proto3" json:"request,omitempty"` Response []byte `protobuf:"bytes,7,opt,name=response,proto3" json:"response,omitempty"` ErrorText string `protobuf:"bytes,8,opt,name=errorText,proto3" json:"errorText,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Entry) Descriptor ¶
func (*Entry) GetErrorText ¶
func (*Entry) GetModuleName ¶
func (*Entry) GetRequest ¶
func (*Entry) GetResponse ¶
func (*Entry) ProtoMessage ¶
func (*Entry) ProtoMessage()
func (*Entry) XXX_DiscardUnknown ¶
func (m *Entry) XXX_DiscardUnknown()
func (*Entry) XXX_Marshal ¶
func (*Entry) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.