Versions in this module Expand all Collapse all v0 v0.1.0 Sep 29, 2026 Changes in this version + func CommunityAllowed(allow []string, got string) bool + func GoSNMPParams(cfg ListenConfig, log *slog.Logger) (*gosnmp.GoSNMP, error) + func ListenChanged(old, new ListenConfig) bool + func NewFactory() receiver.Factory + func NormalizeOID(oid string) string + func PDUKind(t gosnmp.PDUType) string + type Config struct + Attributes map[string]string + Communities []string + DropUndefined bool + IncludeCommunity bool + ListenAddress string + MIBPaths []string + V3 *V3Config + func (cfg *Config) Validate() error + type DecodeOptions struct + IncludeCommunity bool + Translator Translator + type GosmiTranslator struct + func (g *GosmiTranslator) Lookup(oid string) (Lookup, error) + type ListenConfig struct + Communities []string + DropUndefined bool + IncludeCommunity bool + ListenAddress string + MIBPaths []string + V3 *V3Config + type Lookup struct + MIB string + Name string + type NoopTranslator struct + func (NoopTranslator) Lookup(oid string) (Lookup, error) + type Record struct + AgentAddress string + Community string + ContextName string + EngineID string + Enterprise string + GenericTrap *int + MIB string + PDUType string + Source string + SpecificTrap *int + SysUpTime uint + Time time.Time + TrapName string + TrapOID string + Varbinds []Varbind + Version string + func Decode(packet *gosnmp.SnmpPacket, addr *net.UDPAddr, now time.Time, ...) Record + func (r Record) MarshalJSONLine() ([]byte, error) + func (r Record) Resolved() bool + type Translator interface + Lookup func(oid string) (Lookup, error) + func NewGosmiTranslator(paths []string, log *slog.Logger) (Translator, error) + type V3Config struct + AuthPassword string + AuthProtocol string + PrivPassword string + PrivProtocol string + SecurityLevel string + User string + type Varbind struct + Name string + OID string + Type string + Value any