Ember+ loadable plugin
Source
return nil, nil, errs.Wrapf(err, "failed to handle application with type %x", asn1.ApplicationByte(t))
/*
** Copyright (C) 2001-2024 Zabbix SIA
**
** This program is free software: you can redistribute it and/or modify it under the terms of
** the GNU Affero General Public License as published by the Free Software Foundation, version 3.
**
** This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
** without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
** See the GNU Affero General Public License for more details.
**
** You should have received a copy of the GNU Affero General Public License along with this program.
** If not, see <https://www.gnu.org/licenses/>.
**/
package ember
import (
"strconv"
"strings"
"golang.zabbix.com/plugin/ember-plus/ember/asn1"
"golang.zabbix.com/sdk/errs"
)
const (
// tag for defining glow node tag.
nodeTag = 3
// tag for defining glow function tag.
functionTag = 20
// parameterTag glow parameter tag.
parameterTag = 1
)
// ErrElementNotFound error when element is not found.
var ErrElementNotFound = errs.New("element not found")
// node hold information about node and qualified node parameter fields.
type node struct {
Path string `json:"path"`
ElementType ElementType `json:"element_type"`
Children []*Element `json:"children"`
Identifier string `json:"identifier"`
Description string `json:"description"`
IsOnline bool `json:"is_online"`
IsRoot bool `json:"is_root"`
}
// function hold information about function parameter fields.
type function struct {
Path string `json:"path"`
ElementType ElementType `json:"element_type"`
Children []*Element `json:"children"`
Identifier string `json:"identifier"`
Description string `json:"description"`
}
// parameter hold information about parameter and qualified parameter fields.
type parameter struct {
Path string `json:"path"`
ElementType ElementType `json:"element_type"`
Children []*Element `json:"children,omitempty"`
Identifier string `json:"identifier,omitempty"`
Description string `json:"description,omitempty"`