Documentation ¶
Index ¶
- Constants
- Variables
- func Gb18030ToUtf8(s []byte) ([]byte, error)
- func Gb2312ToUtf8(s []byte) ([]byte, error)
- func GbkToUtf8(s []byte) ([]byte, error)
- func New(globalConfig define.Config, taskConfig define.TaskConfig) define.Task
- func Nochange(s []byte) ([]byte, error)
- type Event
- type EventCounter
- type Gather
- type OutputData
- type Sender
Constants ¶
View Source
const ( // dimension list EventCommunityKey = "community" EventVersionKey = "version" EventEnterpriseKey = "enterprise" EventGenericTrapKey = "generic_trap" EventSpecificTrapKey = "specific_trap" EventSnmpTrapOIDKey = "snmptrapoid" EventDisplayNameKey = "display_name" EventAgentAddressKey = "agent_address" EventAggentPortKey = "agent_port" EventServerIPKey = "server_ip" EventServerPortKey = "server_port" EventTimestampKey = "timestamp" )
Variables ¶
View Source
var (
ErrWrongVersion = errors.New("wrong snmp version")
)
ErrWrongVersion :
Functions ¶
Types ¶
type EventCounter ¶
type EventCounter struct {
// contains filtered or unexported fields
}
type Gather ¶
Gather :
func (*Gather) TrapHandler ¶
func (g *Gather) TrapHandler(packet *gosnmp.SnmpPacket, addr *net.UDPAddr)
TrapHandler 处理主逻辑
type OutputData ¶
type OutputData struct {
// contains filtered or unexported fields
}
func (*OutputData) AsMapStr ¶
func (o *OutputData) AsMapStr() common.MapStr
func (*OutputData) GetType ¶
func (o *OutputData) GetType() string
Click to show internal directories.
Click to hide internal directories.