Documentation ¶
Index ¶
- Constants
- func NewParser(c conf.MapConf) (parser.Parser, error)
- type Parser
- func (krp *Parser) Name() string
- func (krp *Parser) Parse(lines []string) ([]Data, error)
- func (krp *Parser) ParseCode(fields []string) int
- func (krp *Parser) ParseDuration(fields []string) int
- func (krp *Parser) ParseIp(fields []string) string
- func (krp *Parser) ParseLogTime(fields []string) int64
- func (krp *Parser) ParseMethod(fields []string) string
- func (krp *Parser) ParseRespCL(fields []string) int
- func (krp *Parser) ParseTopic(fields []string) string
- func (krp *Parser) Type() string
Constants ¶
View Source
const ( KEY_SRC_IP = "source_ip" KEY_METHOD = "method" KEY_TOPIC = "topic" KEY_CODE = "code" KEY_RESP_LEN = "resp_len" KEY_DURATION = "duration" KEY_LOG_TIME = "log_time" KEY_ERROR = "error" KEY_WARN = "warn" EMPTY_STRING = "" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
func (*Parser) ParseDuration ¶
func (*Parser) ParseLogTime ¶
func (*Parser) ParseMethod ¶
func (*Parser) ParseRespCL ¶
func (*Parser) ParseTopic ¶
Click to show internal directories.
Click to hide internal directories.