field

package
v0.0.0-...-63bff7e Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2018 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Overview

generated by log_xfields_generator -input /home/haolin/golang/example.v2/src/gopcp.v2/helper/log/field -output /home/haolin/golang/example.v2/src/gopcp.v2/helper/log/field generation time: 2016-12-29T12:10:06.552 DO NOT EDIT!!

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Field

type Field interface {
	Name() string
	Type() FieldType
	Value() interface{}
}

Field 代表日志字段的接口。

func Bool

func Bool(name string, value bool) Field

func Float64

func Float64(name string, value float64) Field

func Int64

func Int64(name string, value int64) Field

func Object

func Object(name string, value interface{}) Field

func String

func String(name string, value string) Field

type FieldType

type FieldType int

FieldType 代表日志字段的类型。

const (
	UnknownType FieldType = 0
	BoolType    FieldType = 1
	Int64Type   FieldType = 2
	Float64Type FieldType = 3
	StringType  FieldType = 4
	ObjectType  FieldType = 5
)

日志字段类型常量。

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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