entry

package
v1.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2020 License: GPL-3.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

View Source
const (
	LevelError = "ERROR"
	LevelInfo  = "OK"
	LevelWarn  = "WARN"
)

Variables

This section is empty.

Functions

func FormatTime

func FormatTime(time time.Time) string

func MarshalToBytes

func MarshalToBytes(entry *Entry) ([]byte, error)

func ParserTime

func ParserTime(s string) (time.Time, error)

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 UnmarshalNext

func UnmarshalNext(r io.Reader) (*Entry, error)

func (*Entry) Descriptor

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

func (*Entry) GetErrorText

func (m *Entry) GetErrorText() string

func (*Entry) GetEvent

func (m *Entry) GetEvent() string

func (*Entry) GetHost

func (m *Entry) GetHost() string

func (*Entry) GetLevel

func (m *Entry) GetLevel() string

func (*Entry) GetModuleName

func (m *Entry) GetModuleName() string

func (*Entry) GetRequest

func (m *Entry) GetRequest() []byte

func (*Entry) GetResponse

func (m *Entry) GetResponse() []byte

func (*Entry) GetTime

func (m *Entry) GetTime() string

func (*Entry) ProtoMessage

func (*Entry) ProtoMessage()

func (*Entry) Reset

func (m *Entry) Reset()

func (*Entry) String

func (m *Entry) String() string

func (*Entry) XXX_DiscardUnknown

func (m *Entry) XXX_DiscardUnknown()

func (*Entry) XXX_Marshal

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

func (*Entry) XXX_Merge

func (m *Entry) XXX_Merge(src proto.Message)

func (*Entry) XXX_Size

func (m *Entry) XXX_Size() int

func (*Entry) XXX_Unmarshal

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

type Level

type Level string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL