SYMBOL INDEX (2842 symbols across 309 files) FILE: examples/pkg/capabilities_rpc/main.go function main (line 21) | func main() { FILE: examples/pkg/get_rpc/main.go function main (line 21) | func main() { FILE: examples/pkg/set_rpc/main.go function main (line 21) | func main() { FILE: examples/pkg/subscribe_rpc/main.go function main (line 22) | func main() { FILE: examples/plugins/demo/main.go constant processorType (line 16) | processorType = "event-add-device_function" constant loggingPrefix (line 17) | loggingPrefix = "[" + processorType + "] " type MyEventProcessor (line 20) | type MyEventProcessor struct method Init (line 30) | func (p *MyEventProcessor) Init(cfg interface{}, opts ...formatters.Op... method Apply (line 41) | func (p *MyEventProcessor) Apply(event ...*formatters.EventMsg) []*for... method Close (line 52) | func (p *MyEventProcessor) Close() error { method WithActions (line 56) | func (p *MyEventProcessor) WithActions(act map[string]map[string]inter... method WithTargets (line 60) | func (p *MyEventProcessor) WithTargets(tcs map[string]*types.TargetCon... method WithProcessors (line 64) | func (p *MyEventProcessor) WithProcessors(procs map[string]map[string]... method WithLogger (line 68) | func (p *MyEventProcessor) WithLogger(l *log.Logger) { method setupLogger (line 71) | func (p *MyEventProcessor) setupLogger() { function main (line 77) | func main() { FILE: examples/plugins/event-add-hostname/event-add-hostname.go constant processorType (line 20) | processorType = "event-add-hostname" constant loggingPrefix (line 21) | loggingPrefix = "[" + processorType + "] " constant hostnameCmd (line 22) | hostnameCmd = "hostname" type addHostnameProcessor (line 25) | type addHostnameProcessor struct method Init (line 41) | func (p *addHostnameProcessor) Init(cfg interface{}, opts ...formatter... method Apply (line 57) | func (p *addHostnameProcessor) Apply(event ...*formatters.EventMsg) []... method Close (line 74) | func (p *addHostnameProcessor) Close() error { method WithActions (line 78) | func (p *addHostnameProcessor) WithActions(act map[string]map[string]i... method WithTargets (line 82) | func (p *addHostnameProcessor) WithTargets(tcs map[string]*types.Targe... method WithProcessors (line 86) | func (p *addHostnameProcessor) WithProcessors(procs map[string]map[str... method WithLogger (line 90) | func (p *addHostnameProcessor) WithLogger(l *log.Logger) { method setupLogger (line 93) | func (p *addHostnameProcessor) setupLogger() { method readHostname (line 103) | func (p *addHostnameProcessor) readHostname() error { function main (line 119) | func main() { FILE: examples/plugins/event-gnmi-get/event-gnmi-get.go constant processorType (line 30) | processorType = "event-gnmi-get" constant loggingPrefix (line 31) | loggingPrefix = "[" + processorType + "] " constant defaultTarget (line 32) | defaultTarget = `{{ index .Tags "source" }}` type gNMIGetProcessor (line 35) | type gNMIGetProcessor struct method Init (line 70) | func (p *gNMIGetProcessor) Init(cfg interface{}, opts ...formatters.Op... method Apply (line 112) | func (p *gNMIGetProcessor) Apply(event ...*formatters.EventMsg) []*for... method Close (line 135) | func (p *gNMIGetProcessor) Close() error { method WithActions (line 139) | func (p *gNMIGetProcessor) WithActions(act map[string]map[string]inter... method WithTargets (line 143) | func (p *gNMIGetProcessor) WithTargets(tcs map[string]*types.TargetCon... method WithProcessors (line 147) | func (p *gNMIGetProcessor) WithProcessors(procs map[string]map[string]... method WithLogger (line 151) | func (p *gNMIGetProcessor) WithLogger(l *log.Logger) { method setupLogger (line 154) | func (p *gNMIGetProcessor) setupLogger() { method readPaths (line 165) | func (p *gNMIGetProcessor) readPaths(e *formatters.EventMsg) (string, ... method gnmiGet (line 200) | func (p *gNMIGetProcessor) gnmiGet(targetName string, e *formatters.Ev... method selectTarget (line 230) | func (p *gNMIGetProcessor) selectTarget(tName string) (*types.TargetCo... method createGetRequest (line 252) | func (p *gNMIGetProcessor) createGetRequest(e *formatters.EventMsg) (*... method extractTags (line 286) | func (p *gNMIGetProcessor) extractTags(rsp *gnmi.GetResponse, mapping ... type pathToTag (line 58) | type pathToTag struct type readValues (line 65) | type readValues struct function extractValue (line 301) | func extractValue(tv *gnmi.TypedValue) string { function main (line 341) | func main() { FILE: examples/plugins/go-event-plugin/event-go-plugin.go constant processorType (line 16) | processorType = "event-go-plugin" constant loggingPrefix (line 17) | loggingPrefix = "[" + processorType + "] " type goSampleProcessorPlugin (line 20) | type goSampleProcessorPlugin struct method Init (line 30) | func (p *goSampleProcessorPlugin) Init(cfg interface{}, opts ...format... method Apply (line 47) | func (p *goSampleProcessorPlugin) Apply(event ...*formatters.EventMsg)... method Close (line 53) | func (p *goSampleProcessorPlugin) Close() error { method WithActions (line 57) | func (p *goSampleProcessorPlugin) WithActions(act map[string]map[strin... method WithTargets (line 61) | func (p *goSampleProcessorPlugin) WithTargets(tcs map[string]*types.Ta... method WithProcessors (line 65) | func (p *goSampleProcessorPlugin) WithProcessors(procs map[string]map[... method WithLogger (line 69) | func (p *goSampleProcessorPlugin) WithLogger(l *log.Logger) { function main (line 72) | func main() { FILE: examples/plugins/minimal/event-my-processor.go constant processorType (line 17) | processorType = "event-my-processor" type myProcessor (line 20) | type myProcessor struct method Init (line 25) | func (p *myProcessor) Init(cfg interface{}, opts ...formatters.Option)... method Apply (line 39) | func (p *myProcessor) Apply(event ...*formatters.EventMsg) []*formatte... method Close (line 44) | func (p *myProcessor) Close() error { method WithActions (line 48) | func (p *myProcessor) WithActions(act map[string]map[string]interface{... method WithTargets (line 51) | func (p *myProcessor) WithTargets(tcs map[string]*types.TargetConfig) { method WithProcessors (line 54) | func (p *myProcessor) WithProcessors(procs map[string]map[string]any) { method WithLogger (line 57) | func (p *myProcessor) WithLogger(l *log.Logger) { function main (line 60) | func main() { FILE: main.go function main (line 15) | func main() { FILE: pkg/actions/action.go type Action (line 19) | type Action interface type Context (line 39) | type Context struct type Option (line 57) | type Option type Initializer (line 61) | type Initializer function Register (line 63) | func Register(name string, initFn Initializer) { function DecodeConfig (line 67) | func DecodeConfig(src, dst interface{}) error { function WithTargets (line 80) | func WithTargets(tcs map[string]*types.TargetConfig) Option { function WithLogger (line 86) | func WithLogger(l *log.Logger) Option { FILE: pkg/actions/gnmi_action/gnmi_action.go constant defaultRPC (line 37) | defaultRPC = "get" constant loggingPrefix (line 38) | loggingPrefix = "[gnmi_action] " constant actionType (line 39) | actionType = "gnmi" constant defaultDataType (line 40) | defaultDataType = "ALL" constant defaultTarget (line 41) | defaultTarget = `{{ index .Input.Tags "source" }}` constant defaultEncoding (line 42) | defaultEncoding = "JSON" constant defaultFormat (line 43) | defaultFormat = "json" constant rpcGet (line 47) | rpcGet = "get" constant rpcSet (line 48) | rpcSet = "set" constant rpcSetUpdate (line 49) | rpcSetUpdate = "set-update" constant rpcSetReplace (line 50) | rpcSetReplace = "set-replace" constant rpcSetDelete (line 51) | rpcSetDelete = "set-delete" constant rpcDelete (line 52) | rpcDelete = "delete" constant rpcSub (line 53) | rpcSub = "sub" constant rpcSubscribe (line 54) | rpcSubscribe = "subscribe" function init (line 57) | func init() { type gnmiAction (line 67) | type gnmiAction struct method Init (line 105) | func (g *gnmiAction) Init(cfg map[string]interface{}, opts ...actions.... method Run (line 129) | func (g *gnmiAction) Run(ctx context.Context, aCtx *actions.Context) (... method NName (line 212) | func (g *gnmiAction) NName() string { return g.Name } method setDefaults (line 214) | func (g *gnmiAction) setDefaults() { method validate (line 239) | func (g *gnmiAction) validate() error { method parseTemplates (line 266) | func (g *gnmiAction) parseTemplates() error { method createTemplates (line 284) | func (g *gnmiAction) createTemplates(n string, s []string) ([]*templat... method createGetRequest (line 296) | func (g *gnmiAction) createGetRequest(in *actions.Context) (*gnmi.GetR... method createSetRequest (line 323) | func (g *gnmiAction) createSetRequest(in *actions.Context) (*gnmi.SetR... method createSubscribeRequest (line 370) | func (g *gnmiAction) createSubscribeRequest(in *actions.Context) (*gnm... method selectTargets (line 398) | func (g *gnmiAction) selectTargets(tName string) ([]*types.TargetConfi... method runRPC (line 423) | func (g *gnmiAction) runRPC(ctx context.Context, tc *types.TargetConfi... method runGet (line 436) | func (g *gnmiAction) runGet(ctx context.Context, tc *types.TargetConfi... method runSet (line 455) | func (g *gnmiAction) runSet(ctx context.Context, tc *types.TargetConfi... method runSubscribe (line 474) | func (g *gnmiAction) runSubscribe(ctx context.Context, tc *types.Targe... type gnmiResponse (line 509) | type gnmiResponse struct FILE: pkg/actions/gnmi_action/gnmi_action_test.go type getRequestTestItem (line 21) | type getRequestTestItem struct type setRequestTestItem (line 26) | type setRequestTestItem struct function TestGnmiGetRequest (line 408) | func TestGnmiGetRequest(t *testing.T) { function TestGnmiSetRequest (line 439) | func TestGnmiSetRequest(t *testing.T) { FILE: pkg/actions/gnmi_action/options.go method WithTargets (line 19) | func (g *gnmiAction) WithTargets(tcs map[string]*types.TargetConfig) { method WithLogger (line 26) | func (g *gnmiAction) WithLogger(logger *log.Logger) { FILE: pkg/actions/http_action/http_action.go constant defaultMethod (line 32) | defaultMethod = "GET" constant defaultTimeout (line 33) | defaultTimeout = 5 * time.Second constant loggingPrefix (line 34) | loggingPrefix = "[http_action] " constant actionType (line 35) | actionType = "http" constant defaultBodyTemplate (line 36) | defaultBodyTemplate = "{{ json . }}" function init (line 39) | func init() { type httpAction (line 47) | type httpAction struct method Init (line 61) | func (h *httpAction) Init(cfg map[string]interface{}, opts ...actions.... method Run (line 86) | func (h *httpAction) Run(ctx context.Context, aCtx *actions.Context) (... method NName (line 145) | func (h *httpAction) NName() string { return h.Name } method setDefaults (line 147) | func (h *httpAction) setDefaults() error { method WithTargets (line 187) | func (h *httpAction) WithTargets(map[string]*types.TargetConfig) {} method WithLogger (line 189) | func (h *httpAction) WithLogger(logger *log.Logger) { FILE: pkg/actions/http_action/http_action_test.go type item (line 30) | type item struct function TestHTTPAction (line 454) | func TestHTTPAction(t *testing.T) { function echo (line 525) | func echo() http.Handler { FILE: pkg/actions/script_action/options.go method WithTargets (line 19) | func (s *scriptAction) WithTargets(map[string]*types.TargetConfig) {} method WithLogger (line 21) | func (s *scriptAction) WithLogger(logger *log.Logger) { FILE: pkg/actions/script_action/script_action.go constant loggingPrefix (line 25) | loggingPrefix = "[script_action] " constant actionType (line 26) | actionType = "script" constant defaultShell (line 27) | defaultShell = "/bin/bash" function init (line 30) | func init() { type scriptAction (line 38) | type scriptAction struct method Init (line 48) | func (s *scriptAction) Init(cfg map[string]interface{}, opts ...action... method Run (line 68) | func (s *scriptAction) Run(_ context.Context, aCtx *actions.Context) (... method NName (line 104) | func (s *scriptAction) NName() string { return s.Name } method setDefaults (line 106) | func (s *scriptAction) setDefaults() error { FILE: pkg/actions/template_action/options.go method WithTargets (line 19) | func (t *templateAction) WithTargets(map[string]*types.TargetConfig) {} method WithLogger (line 21) | func (t *templateAction) WithLogger(logger *log.Logger) { FILE: pkg/actions/template_action/template_action.go constant loggingPrefix (line 25) | loggingPrefix = "[template_action] " constant actionType (line 26) | actionType = "template" constant defaultTemplate (line 27) | defaultTemplate = "{{ . }}" function init (line 30) | func init() { type templateAction (line 38) | type templateAction struct method Init (line 49) | func (t *templateAction) Init(cfg map[string]interface{}, opts ...acti... method Run (line 82) | func (t *templateAction) Run(_ context.Context, aCtx *actions.Context)... method NName (line 114) | func (t *templateAction) NName() string { return t.Name } method setDefaults (line 116) | func (t *templateAction) setDefaults() error { FILE: pkg/api/gnmi_msgs.go constant DefaultGNMIVersion (line 29) | DefaultGNMIVersion = "0.7.0" constant encodingJSON (line 30) | encodingJSON = "json" constant encodingJSON_IETF (line 31) | encodingJSON_IETF = "json_ietf" type GNMIOption (line 37) | type GNMIOption function apply (line 49) | func apply(m proto.Message, opts ...GNMIOption) error { function NewCapabilitiesRequest (line 60) | func NewCapabilitiesRequest(opts ...GNMIOption) (*gnmi.CapabilityRequest... function NewCapabilitiesResponse (line 71) | func NewCapabilitiesResponse(opts ...GNMIOption) (*gnmi.CapabilityRespon... function NewGetRequest (line 85) | func NewGetRequest(opts ...GNMIOption) (*gnmi.GetRequest, error) { function NewGetResponse (line 96) | func NewGetResponse(opts ...GNMIOption) (*gnmi.GetResponse, error) { function NewSetRequest (line 107) | func NewSetRequest(opts ...GNMIOption) (*gnmi.SetRequest, error) { function NewSetResponse (line 115) | func NewSetResponse(opts ...GNMIOption) (*gnmi.SetResponse, error) { function NewSubscribeRequest (line 126) | func NewSubscribeRequest(opts ...GNMIOption) (*gnmi.SubscribeRequest, er... function NewSubscribePollRequest (line 139) | func NewSubscribePollRequest(opts ...GNMIOption) (*gnmi.SubscribeRequest... function NewSubscribeResponse (line 151) | func NewSubscribeResponse(opts ...GNMIOption) (*gnmi.SubscribeResponse, ... function NewSubscribeSyncResponse (line 166) | func NewSubscribeSyncResponse(opts ...GNMIOption) (*gnmi.SubscribeRespon... function Version (line 182) | func Version(v string) func(msg proto.Message) error { function SupportedEncoding (line 198) | func SupportedEncoding(encodings ...string) func(msg proto.Message) error { function SupportedModel (line 223) | func SupportedModel(name, org, version string) func(msg proto.Message) e... function Extension (line 248) | func Extension(ext *gnmi_ext.Extension) func(msg proto.Message) error { function Extension_CommitRequest (line 294) | func Extension_CommitRequest(id string, dur time.Duration) func(msg prot... function Extension_CommitConfirm (line 322) | func Extension_CommitConfirm(id string) func(msg proto.Message) error { function Extension_CommitCancel (line 348) | func Extension_CommitCancel(id string) func(msg proto.Message) error { function Extension_CommitSetRollbackDuration (line 374) | func Extension_CommitSetRollbackDuration(id string, dur time.Duration) f... function Extension_Depth (line 403) | func Extension_Depth(lvl uint32) func(msg proto.Message) error { function Extension_HistorySnapshotTime (line 430) | func Extension_HistorySnapshotTime(tm time.Time) func(msg proto.Message)... function Extension_HistoryRange (line 458) | func Extension_HistoryRange(start, end time.Time) func(msg proto.Message... function Prefix (line 489) | func Prefix(prefix string) func(msg proto.Message) error { function Target (line 526) | func Target(target string) func(msg proto.Message) error { function Path (line 568) | func Path(p string) func(msg proto.Message) error { function Encoding (line 608) | func Encoding(encoding string) func(msg proto.Message) error { function EncodingJSON (line 637) | func EncodingJSON() func(msg proto.Message) error { function EncodingBYTES (line 643) | func EncodingBYTES() func(msg proto.Message) error { function EncodingPROTO (line 649) | func EncodingPROTO() func(msg proto.Message) error { function EncodingASCII (line 655) | func EncodingASCII() func(msg proto.Message) error { function EncodingJSON_IETF (line 661) | func EncodingJSON_IETF() func(msg proto.Message) error { function EncodingCustom (line 668) | func EncodingCustom(enc int) func(msg proto.Message) error { function DataType (line 693) | func DataType(datat string) func(msg proto.Message) error { function DataTypeALL (line 716) | func DataTypeALL() func(msg proto.Message) error { function DataTypeCONFIG (line 721) | func DataTypeCONFIG() func(msg proto.Message) error { function DataTypeSTATE (line 726) | func DataTypeSTATE() func(msg proto.Message) error { function DataTypeOPERATIONAL (line 731) | func DataTypeOPERATIONAL() func(msg proto.Message) error { function UseModel (line 737) | func UseModel(name, org, version string) func(msg proto.Message) error { function Update (line 779) | func Update(opts ...GNMIOption) func(msg proto.Message) error { function Replace (line 814) | func Replace(opts ...GNMIOption) func(msg proto.Message) error { function Value (line 840) | func Value(data interface{}, encoding string) func(msg proto.Message) er... function value (line 859) | func value(data interface{}, encoding string) (*gnmi.TypedValue, error) { function Delete (line 1051) | func Delete(p string) func(msg proto.Message) error { function SubscriptionListMode (line 1085) | func SubscriptionListMode(mode string) func(msg proto.Message) error { function SubscriptionListModeSTREAM (line 1113) | func SubscriptionListModeSTREAM() func(msg proto.Message) error { function SubscriptionListModeONCE (line 1118) | func SubscriptionListModeONCE() func(msg proto.Message) error { function SubscriptionListModePOLL (line 1123) | func SubscriptionListModePOLL() func(msg proto.Message) error { function Qos (line 1128) | func Qos(qos uint32) func(msg proto.Message) error { function AllowAggregation (line 1149) | func AllowAggregation(b bool) func(msg proto.Message) error { function UpdatesOnly (line 1170) | func UpdatesOnly(b bool) func(msg proto.Message) error { function Subscription (line 1192) | func Subscription(opts ...GNMIOption) func(msg proto.Message) error { function SubscriptionMode (line 1221) | func SubscriptionMode(mode string) func(msg proto.Message) error { function SubscriptionModeTARGET_DEFINED (line 1241) | func SubscriptionModeTARGET_DEFINED() func(msg proto.Message) error { function SubscriptionModeON_CHANGE (line 1246) | func SubscriptionModeON_CHANGE() func(msg proto.Message) error { function SubscriptionModeSAMPLE (line 1251) | func SubscriptionModeSAMPLE() func(msg proto.Message) error { function SampleInterval (line 1256) | func SampleInterval(d time.Duration) func(msg proto.Message) error { function HeartbeatInterval (line 1272) | func HeartbeatInterval(d time.Duration) func(msg proto.Message) error { function SuppressRedundant (line 1288) | func SuppressRedundant(s bool) func(msg proto.Message) error { function Notification (line 1305) | func Notification(opts ...GNMIOption) func(msg proto.Message) error { function Timestamp (line 1339) | func Timestamp(t int64) func(msg proto.Message) error { function TimestampNow (line 1357) | func TimestampNow() func(msg proto.Message) error { function Atomic (line 1362) | func Atomic(b bool) func(msg proto.Message) error { function UpdateResult (line 1376) | func UpdateResult(opts ...GNMIOption) func(msg proto.Message) error { function Operation (line 1398) | func Operation(oper string) func(msg proto.Message) error { function OperationINVALID (line 1418) | func OperationINVALID() func(msg proto.Message) error { function OperationDELETE (line 1423) | func OperationDELETE() func(msg proto.Message) error { function OperationREPLACE (line 1428) | func OperationREPLACE() func(msg proto.Message) error { function OperationUPDATE (line 1433) | func OperationUPDATE() func(msg proto.Message) error { function UnionReplace (line 1439) | func UnionReplace(opts ...GNMIOption) func(msg proto.Message) error { FILE: pkg/api/gnmi_msgs_test.go function TestNewCapabilitiesRequest (line 25) | func TestNewCapabilitiesRequest(t *testing.T) { type capResponseInput (line 42) | type capResponseInput struct function TestNewCapabilitiesResponse (line 92) | func TestNewCapabilitiesResponse(t *testing.T) { type getRequestInput (line 117) | type getRequestInput struct function TestNewGetRequest (line 380) | func TestNewGetRequest(t *testing.T) { type getResponseInput (line 398) | type getResponseInput struct function TestNewGetResponse (line 491) | func TestNewGetResponse(t *testing.T) { type setRequestInput (line 510) | type setRequestInput struct function TestNewSetRequest (line 777) | func TestNewSetRequest(t *testing.T) { type setResponseInput (line 795) | type setResponseInput struct function TestNewSetResponse (line 859) | func TestNewSetResponse(t *testing.T) { type subscribeRequestInput (line 878) | type subscribeRequestInput struct function TestNewSubscribeRequest (line 1229) | func TestNewSubscribeRequest(t *testing.T) { type subscribeResponseInput (line 1247) | type subscribeResponseInput struct function TestNewSubscribeResponse (line 1304) | func TestNewSubscribeResponse(t *testing.T) { function TestNewSubscribeRequestPoll (line 1322) | func TestNewSubscribeRequestPoll(t *testing.T) { function TestNewSubscribeResponseSync (line 1342) | func TestNewSubscribeResponseSync(t *testing.T) { type valueInput (line 1364) | type valueInput struct function TestValue (line 1637) | func TestValue(t *testing.T) { function TestVersion (line 1664) | func TestVersion(t *testing.T) { function TestSupportedEncoding (line 1687) | func TestSupportedEncoding(t *testing.T) { function TestSupportedModel (line 1720) | func TestSupportedModel(t *testing.T) { FILE: pkg/api/path/path.go function CreatePrefix (line 33) | func CreatePrefix(prefix, target string) (*gnmi.Path, error) { function ParsePath (line 49) | func ParsePath(p string) (*gnmi.Path, error) { function toPathElems (line 75) | func toPathElems(p string) ([]*gnmi.PathElem, error) { function toPathElem (line 129) | func toPathElem(s string) (*gnmi.PathElem, error) { function parseXPathKeys (line 157) | func parseXPathKeys(s string) (map[string]string, error) { function PathElems (line 209) | func PathElems(pf, p *gnmi.Path) []*gnmi.PathElem { function GnmiPathToXPath (line 215) | func GnmiPathToXPath(p *gnmi.Path, noKeys bool) string { function writeKey (line 259) | func writeKey(sb *strings.Builder, k, v string) { FILE: pkg/api/path/path_test.go type outKeysSet (line 368) | type outKeysSet struct type outPathElemSet (line 372) | type outPathElemSet struct function TestCreatePrefix (line 486) | func TestCreatePrefix(t *testing.T) { function TestParsePath (line 508) | func TestParsePath(t *testing.T) { function TestParseXPathKeys (line 528) | func TestParseXPathKeys(t *testing.T) { function TestStringToPathElem (line 542) | func TestStringToPathElem(t *testing.T) { function BenchmarkParsePath (line 560) | func BenchmarkParsePath(b *testing.B) { function TestGnmiPathToXPath (line 571) | func TestGnmiPathToXPath(t *testing.T) { FILE: pkg/api/server/options.go method serverOpts (line 26) | func (s *gNMIServer) serverOpts() ([]grpc.ServerOption, error) { method interceptorsOpts (line 50) | func (s *gNMIServer) interceptorsOpts() []grpc.ServerOption { type rateLimiterInterceptor (line 72) | type rateLimiterInterceptor struct method Limit (line 76) | func (r *rateLimiterInterceptor) Limit() bool { method tlsServerOpts (line 80) | func (s *gNMIServer) tlsServerOpts() (grpc.ServerOption, error) { method createTLSConfig (line 95) | func (s *gNMIServer) createTLSConfig() (*tls.Config, error) { method readCerts (line 128) | func (s *gNMIServer) readCerts(chi *tls.ClientHelloInfo) (*tls.Certifica... FILE: pkg/api/server/server.go type Config (line 37) | type Config struct method setDefaults (line 114) | func (c *Config) setDefaults() error { type gNMIServer (line 76) | type gNMIServer struct method Start (line 148) | func (s *gNMIServer) Start(ctx context.Context) error { method Capabilities (line 196) | func (s *gNMIServer) Capabilities(ctx context.Context, req *gnmi.Capab... method Get (line 210) | func (s *gNMIServer) Get(ctx context.Context, req *gnmi.GetRequest) (*... method Set (line 224) | func (s *gNMIServer) Set(ctx context.Context, req *gnmi.SetRequest) (*... method Subscribe (line 238) | func (s *gNMIServer) Subscribe(stream gnmi.GNMI_SubscribeServer) error { method acquireUnarySem (line 264) | func (s *gNMIServer) acquireUnarySem(ctx context.Context) error { method releaseUnarySem (line 276) | func (s *gNMIServer) releaseUnarySem() { method acquireStreamSem (line 283) | func (s *gNMIServer) acquireStreamSem(ctx context.Context) error { method releaseStreamSem (line 295) | func (s *gNMIServer) releaseStreamSem() { type CapabilitiesHandler (line 98) | type CapabilitiesHandler type GetHandler (line 100) | type GetHandler type SetHandler (line 102) | type SetHandler type SubscribeHandler (line 104) | type SubscribeHandler type Option (line 106) | type Option function defaultCapabilitiesHandlerFunc (line 108) | func defaultCapabilitiesHandlerFunc(ctx context.Context, req *gnmi.Capab... function New (line 124) | func New(c Config, opts ...Option) (*gNMIServer, error) { function WithLogger (line 303) | func WithLogger(l *log.Logger) func(*gNMIServer) { function WithRegistry (line 309) | func WithRegistry(reg *prometheus.Registry) func(*gNMIServer) { function WithCapabilitiesHandler (line 315) | func WithCapabilitiesHandler(h CapabilitiesHandler) func(*gNMIServer) { function WithGetHandler (line 321) | func WithGetHandler(h GetHandler) func(*gNMIServer) { function WithSetHandler (line 327) | func WithSetHandler(h SetHandler) func(*gNMIServer) { function WithSubscribeHandler (line 333) | func WithSubscribeHandler(h SubscribeHandler) func(*gNMIServer) { FILE: pkg/api/target.go type TargetOption (line 25) | type TargetOption function NewTarget (line 27) | func NewTarget(opts ...TargetOption) (*target.Target, error) { function Name (line 59) | func Name(name string) TargetOption { function Address (line 68) | func Address(addr string) TargetOption { function Username (line 80) | func Username(username string) TargetOption { function Password (line 88) | func Password(password string) TargetOption { function Timeout (line 96) | func Timeout(timeout time.Duration) TargetOption { function Insecure (line 105) | func Insecure(i bool) TargetOption { function SkipVerify (line 114) | func SkipVerify(i bool) TargetOption { function TLSCA (line 122) | func TLSCA(tlsca string) TargetOption { function TLSCert (line 130) | func TLSCert(cert string) TargetOption { function TLSKey (line 138) | func TLSKey(key string) TargetOption { function TLSMinVersion (line 146) | func TLSMinVersion(v string) TargetOption { function TLSMaxVersion (line 154) | func TLSMaxVersion(v string) TargetOption { function TLSVersion (line 162) | func TLSVersion(v string) TargetOption { function TLSConfig (line 170) | func TLSConfig(tlsconfig *tls.Config) TargetOption { function LogTLSSecret (line 179) | func LogTLSSecret(b bool) TargetOption { function Gzip (line 188) | func Gzip(b bool) TargetOption { function Token (line 196) | func Token(token string) TargetOption { FILE: pkg/api/target/subscribe.go method Subscribe (line 27) | func (t *Target) Subscribe(ctx context.Context, req *gnmi.SubscribeReque... method SubscribeChan (line 159) | func (t *Target) SubscribeChan(ctx context.Context, req *gnmi.SubscribeR... method attemptSubscription (line 198) | func (t *Target) attemptSubscription(ctx context.Context, req *gnmi.Subs... method handleSTREAMMode (line 254) | func (t *Target) handleSTREAMMode(nctx, ctx context.Context, client gnmi... method handleONCEMode (line 270) | func (t *Target) handleONCEMode(nctx, ctx context.Context, client gnmi.G... method handlePOLLMode (line 292) | func (t *Target) handlePOLLMode(nctx, ctx context.Context, client gnmi.G... function isCancellationError (line 320) | func isCancellationError(err error) bool { function sendError (line 329) | func sendError(errCh chan *TargetError, ctx context.Context, subscriptio... method SubscribeStreamChan (line 341) | func (t *Target) SubscribeStreamChan(ctx context.Context, req *gnmi.Subs... method SubscribeOnceChan (line 415) | func (t *Target) SubscribeOnceChan(ctx context.Context, req *gnmi.Subscr... method SubscribeOnce (line 446) | func (t *Target) SubscribeOnce(ctx context.Context, req *gnmi.SubscribeR... method SubscribePoll (line 469) | func (t *Target) SubscribePoll(ctx context.Context, subName string) error { method ReadSubscriptions (line 483) | func (t *Target) ReadSubscriptions() (chan *SubscribeResponse, chan *Tar... method NumberOfOnceSubscriptions (line 487) | func (t *Target) NumberOfOnceSubscriptions() int { method DecodeProtoBytes (line 499) | func (t *Target) DecodeProtoBytes(resp *gnmi.SubscribeResponse) error { method DeleteSubscription (line 524) | func (t *Target) DeleteSubscription(name string) { method StopSubscription (line 535) | func (t *Target) StopSubscription(name string) { method listenPolls (line 546) | func (t *Target) listenPolls(ctx context.Context) { method handleStreamSubscriptionRcv (line 563) | func (t *Target) handleStreamSubscriptionRcv(ctx context.Context, stream... method handleONCESubscriptionRcv (line 584) | func (t *Target) handleONCESubscriptionRcv(ctx context.Context, stream g... method handlePollSubscriptionRcv (line 609) | func (t *Target) handlePollSubscriptionRcv(ctx context.Context, stream g... FILE: pkg/api/target/target.go type TargetError (line 31) | type TargetError struct type SubscribeResponse (line 37) | type SubscribeResponse struct type Target (line 44) | type Target struct method CreateGNMIClient (line 81) | func (t *Target) CreateGNMIClient(ctx context.Context, opts ...grpc.Di... method createDialer (line 138) | func (t *Target) createDialer(addr string) func(context.Context, strin... method createProxyDialer (line 153) | func (t *Target) createProxyDialer(addr string) func(context.Context, ... method createCustomDialer (line 168) | func (t *Target) createCustomDialer(addr string) func(context.Context,... method callOpts (line 188) | func (t *Target) callOpts() []grpc.CallOption { method appendRequestMetadata (line 218) | func (t *Target) appendRequestMetadata(ctx context.Context) context.Co... method appendCredentials (line 224) | func (t *Target) appendCredentials(ctx context.Context) context.Context { method appendMetadata (line 238) | func (t *Target) appendMetadata(ctx context.Context) context.Context { method Capabilities (line 247) | func (t *Target) Capabilities(ctx context.Context, ext ...*gnmi_ext.Ex... method Get (line 252) | func (t *Target) Get(ctx context.Context, req *gnmi.GetRequest) (*gnmi... method Set (line 257) | func (t *Target) Set(ctx context.Context, req *gnmi.SetRequest) (*gnmi... method StopSubscriptions (line 261) | func (t *Target) StopSubscriptions() { method Close (line 276) | func (t *Target) Close() error { method SubscribeClientStates (line 286) | func (t *Target) SubscribeClientStates() map[string]bool { method ConnState (line 300) | func (t *Target) ConnState() string { method WaitForConnStateChange (line 310) | func (t *Target) WaitForConnStateChange(ctx context.Context, sourceSta... method ConnectivityState (line 319) | func (t *Target) ConnectivityState() connectivity.State { function NewTarget (line 65) | func NewTarget(c *types.TargetConfig) *Target { FILE: pkg/api/target_test.go type input (line 19) | type input struct function TestNewTarget (line 139) | func TestNewTarget(t *testing.T) { FILE: pkg/api/testutils/utils.go function CapabilitiesResponsesEqual (line 20) | func CapabilitiesResponsesEqual(rsp1, rsp2 *gnmi.CapabilityResponse) bool { function GetRequestsEqual (line 49) | func GetRequestsEqual(req1, req2 *gnmi.GetRequest) bool { function SetRequestsEqual (line 85) | func SetRequestsEqual(req1, req2 *gnmi.SetRequest) bool { function SubscribeRequestsEqual (line 124) | func SubscribeRequestsEqual(req1, req2 *gnmi.SubscribeRequest) bool { function GetResponsesEqual (line 215) | func GetResponsesEqual(rsp1, rsp2 *gnmi.GetResponse) bool { function SetResponsesEqual (line 233) | func SetResponsesEqual(rsp1, rsp2 *gnmi.SetResponse) bool { function SubscribeResponsesEqual (line 251) | func SubscribeResponsesEqual(rsp1, rsp2 *gnmi.SubscribeResponse) bool { function GnmiPathsEqual (line 292) | func GnmiPathsEqual(p1, p2 *gnmi.Path) bool { function GnmiSubscriptionEqual (line 319) | func GnmiSubscriptionEqual(s1, s2 *gnmi.Subscription) bool { function GnmiUpdatesEqual (line 341) | func GnmiUpdatesEqual(u1, u2 *gnmi.Update) bool { function GnmiNotificationsEqual (line 357) | func GnmiNotificationsEqual(n1, n2 *gnmi.Notification) bool { function GnmiUpdateResultEqual (line 384) | func GnmiUpdateResultEqual(u1, u2 *gnmi.UpdateResult) bool { function GnmiValuesEqual (line 400) | func GnmiValuesEqual(v1, v2 *gnmi.TypedValue) bool { function RegisterOpEqual (line 603) | func RegisterOpEqual(r1, r2 *tpb.RegisterOp) bool { function TunnelDataEqual (line 675) | func TunnelDataEqual(r1, r2 *tpb.Data) bool { FILE: pkg/api/tunnel.go type TunnelOption (line 21) | type TunnelOption function applyTunnelOpts (line 25) | func applyTunnelOpts(m proto.Message, opts ...TunnelOption) error { function NewRegisterOpTarget (line 34) | func NewRegisterOpTarget(opts ...TunnelOption) (*tpb.RegisterOp, error) { function NewRegisterOpSession (line 45) | func NewRegisterOpSession(opts ...TunnelOption) (*tpb.RegisterOp, error) { function NewRegisterOpSubscription (line 56) | func NewRegisterOpSubscription(opts ...TunnelOption) (*tpb.RegisterOp, e... function NewData (line 67) | func NewData(opts ...TunnelOption) (*tpb.Data, error) { function TunnelTarget (line 78) | func TunnelTarget(opts ...TunnelOption) func(msg proto.Message) error { function TunnelSession (line 101) | func TunnelSession(opts ...TunnelOption) func(msg proto.Message) error { function TunnelSubscription (line 124) | func TunnelSubscription(opts ...TunnelOption) func(msg proto.Message) er... function TargetOpRemove (line 148) | func TargetOpRemove() func(msg proto.Message) error { function Accept (line 163) | func Accept(b bool) func(msg proto.Message) error { function TargetName (line 182) | func TargetName(n string) func(msg proto.Message) error { function TargetType (line 199) | func TargetType(typ string) func(msg proto.Message) error { function Error (line 218) | func Error(e string) func(msg proto.Message) error { function TargetOpAdd (line 239) | func TargetOpAdd() func(msg proto.Message) error { function Tag (line 254) | func Tag(t int32) func(msg proto.Message) error { function SubscriptionOpSubscribe (line 273) | func SubscriptionOpSubscribe() func(msg proto.Message) error { function SubscriptionOpUnsubscribe (line 289) | func SubscriptionOpUnsubscribe() func(msg proto.Message) error { function Data (line 307) | func Data(d []byte) func(msg proto.Message) error { function Close (line 321) | func Close(b bool) func(msg proto.Message) error { FILE: pkg/api/tunnel_test.go type registerOpInput (line 20) | type registerOpInput struct function TestNewRegister (line 229) | func TestNewRegister(t *testing.T) { type dataInput (line 295) | type dataInput struct function TestNewData (line 327) | func TestNewData(t *testing.T) { FILE: pkg/api/types/sasl.go type SASL (line 3) | type SASL struct FILE: pkg/api/types/subscription.go constant notApplicable (line 19) | notApplicable = "NA" type SubscriptionConfig (line 23) | type SubscriptionConfig struct method String (line 51) | func (sc *SubscriptionConfig) String() string { method PathsString (line 59) | func (sc *SubscriptionConfig) PathsString() string { method PrefixString (line 63) | func (sc *SubscriptionConfig) PrefixString() string { method ModeString (line 70) | func (sc *SubscriptionConfig) ModeString() string { method SampleIntervalString (line 77) | func (sc *SubscriptionConfig) SampleIntervalString() string { method ModelsString (line 87) | func (sc *SubscriptionConfig) ModelsString() string { method QosString (line 91) | func (sc *SubscriptionConfig) QosString() string { method HeartbeatIntervalString (line 98) | func (sc *SubscriptionConfig) HeartbeatIntervalString() string { method SuppressRedundantString (line 105) | func (sc *SubscriptionConfig) SuppressRedundantString() string { method UpdatesOnlyString (line 109) | func (sc *SubscriptionConfig) UpdatesOnlyString() string { type HistoryConfig (line 44) | type HistoryConfig struct FILE: pkg/api/types/target.go function ciphersMap (line 34) | func ciphersMap() map[string]uint16 { type TargetConfig (line 123) | type TargetConfig struct method String (line 174) | func (tc TargetConfig) String() string { method DeepCopy (line 196) | func (tc *TargetConfig) DeepCopy() *TargetConfig { method SetTLSConfig (line 260) | func (tc *TargetConfig) SetTLSConfig(tlsConfig *tls.Config) { method NewTLSConfig (line 265) | func (tc *TargetConfig) NewTLSConfig() (*tls.Config, error) { method GrpcDialOptions (line 327) | func (tc *TargetConfig) GrpcDialOptions() ([]grpc.DialOption, error) { method UsernameString (line 403) | func (tc *TargetConfig) UsernameString() string { method PasswordString (line 410) | func (tc *TargetConfig) PasswordString() string { method InsecureString (line 417) | func (tc *TargetConfig) InsecureString() string { method TLSCAString (line 424) | func (tc *TargetConfig) TLSCAString() string { method TLSKeyString (line 431) | func (tc *TargetConfig) TLSKeyString() string { method TLSCertString (line 438) | func (tc *TargetConfig) TLSCertString() string { method SkipVerifyString (line 445) | func (tc *TargetConfig) SkipVerifyString() string { method SubscriptionString (line 452) | func (tc *TargetConfig) SubscriptionString() string { method OutputsString (line 456) | func (tc *TargetConfig) OutputsString() string { method BufferSizeString (line 460) | func (tc *TargetConfig) BufferSizeString() string { method getTLSMinVersion (line 464) | func (tc *TargetConfig) getTLSMinVersion() uint16 { method getTLSMaxVersion (line 472) | func (tc *TargetConfig) getTLSMaxVersion() uint16 { method Equal (line 495) | func (tc *TargetConfig) Equal(other *TargetConfig) bool { type ClientKeepalive (line 168) | type ClientKeepalive struct function clonePtr (line 188) | func clonePtr[T any](p *T) *T { function tlsVersionStringToUint (line 480) | func tlsVersionStringToUint(v string) uint16 { FILE: pkg/api/types/tls.go type TLSConfig (line 5) | type TLSConfig struct method Validate (line 13) | func (t *TLSConfig) Validate() error { method Equal (line 29) | func (t *TLSConfig) Equal(other *TLSConfig) bool { FILE: pkg/api/utils/tls.go function NewTLSConfig (line 33) | func NewTLSConfig(ca, cert, key, clientAuth string, skipVerify, genSelfS... function SelfSignedCerts (line 115) | func SelfSignedCerts() (tls.Certificate, error) { function ReadLocalFile (line 153) | func ReadLocalFile(ctx context.Context, path string) ([]byte, error) { function readFromStdin (line 184) | func readFromStdin(ctx context.Context) ([]byte, error) { function LoadCACertificates (line 209) | func LoadCACertificates(caPath string) (*x509.CertPool, error) { function loadCACertificatesToPool (line 241) | func loadCACertificatesToPool(filePath string, certPool *x509.CertPool) ... FILE: pkg/api/utils/utils.go constant DefaultLoggingFlags (line 18) | DefaultLoggingFlags = log.LstdFlags | log.Lmicroseconds | log.Lmsgprefix function MergeMaps (line 21) | func MergeMaps(dst, src map[string]any) map[string]any { function mapify (line 41) | func mapify(i interface{}) (map[string]interface{}, bool) { function GetHost (line 53) | func GetHost(hostport string) string { function Convert (line 61) | func Convert(i interface{}) interface{} { FILE: pkg/api/utils/utils_test.go function TestConvert (line 61) | func TestConvert(t *testing.T) { function TestMergeMaps (line 73) | func TestMergeMaps(t *testing.T) { FILE: pkg/app/api.go method newAPIServer (line 35) | func (a *App) newAPIServer() (*http.Server, error) { type APIErrors (line 91) | type APIErrors struct method handleConfigTargetsGet (line 95) | func (a *App) handleConfigTargetsGet(w http.ResponseWriter, r *http.Requ... method handleConfigTargetsPost (line 130) | func (a *App) handleConfigTargetsPost(w http.ResponseWriter, r *http.Req... method handleConfigTargetsSubscriptions (line 148) | func (a *App) handleConfigTargetsSubscriptions(w http.ResponseWriter, r ... method handleConfigTargetsDelete (line 185) | func (a *App) handleConfigTargetsDelete(w http.ResponseWriter, r *http.R... method handleConfigSubscriptions (line 196) | func (a *App) handleConfigSubscriptions(w http.ResponseWriter, r *http.R... method handleConfigOutputs (line 200) | func (a *App) handleConfigOutputs(w http.ResponseWriter, r *http.Request) { method handleConfigClustering (line 204) | func (a *App) handleConfigClustering(w http.ResponseWriter, r *http.Requ... method handleConfigAPIServer (line 208) | func (a *App) handleConfigAPIServer(w http.ResponseWriter, r *http.Reque... method handleConfigGNMIServer (line 212) | func (a *App) handleConfigGNMIServer(w http.ResponseWriter, r *http.Requ... method handleConfigInputs (line 216) | func (a *App) handleConfigInputs(w http.ResponseWriter, r *http.Request) { method handleConfigProcessors (line 220) | func (a *App) handleConfigProcessors(w http.ResponseWriter, r *http.Requ... method handleConfig (line 224) | func (a *App) handleConfig(w http.ResponseWriter, r *http.Request) { method handleTargetsGet (line 249) | func (a *App) handleTargetsGet(w http.ResponseWriter, r *http.Request) { method handleTargetsPost (line 264) | func (a *App) handleTargetsPost(w http.ResponseWriter, r *http.Request) { method handleTargetsDelete (line 280) | func (a *App) handleTargetsDelete(w http.ResponseWriter, r *http.Request) { type clusteringResponse (line 300) | type clusteringResponse struct type clusterMember (line 307) | type clusterMember struct method handleClusteringGet (line 315) | func (a *App) handleClusteringGet(w http.ResponseWriter, r *http.Request) { method handleHealthzGet (line 374) | func (a *App) handleHealthzGet(w http.ResponseWriter, r *http.Request) { method handleAdminShutdown (line 389) | func (a *App) handleAdminShutdown(w http.ResponseWriter, r *http.Request) { method handleClusteringMembersGet (line 394) | func (a *App) handleClusteringMembersGet(w http.ResponseWriter, r *http.... method handleClusteringLeaderGet (line 444) | func (a *App) handleClusteringLeaderGet(w http.ResponseWriter, r *http.R... method handleClusteringLeaderDelete (line 496) | func (a *App) handleClusteringLeaderDelete(w http.ResponseWriter, r *htt... method handleClusteringDrainInstance (line 515) | func (a *App) handleClusteringDrainInstance(w http.ResponseWriter, r *ht... method handleClusterRebalance (line 578) | func (a *App) handleClusterRebalance(w http.ResponseWriter, r *http.Requ... function headersMiddleware (line 598) | func headersMiddleware(next http.Handler) http.Handler { method loggingMiddleware (line 605) | func (a *App) loggingMiddleware(next http.Handler) http.Handler { method handlerCommonGet (line 614) | func (a *App) handlerCommonGet(w http.ResponseWriter, i interface{}) { method getLeaderName (line 630) | func (a *App) getLeaderName(ctx context.Context) (string, error) { method getInstanceTargets (line 639) | func (a *App) getInstanceTargets(ctx context.Context, instance string) (... function getServiceScheme (line 660) | func getServiceScheme(service *lockers.Service) string { FILE: pkg/app/app.go constant defaultHTTPClientTimeout (line 58) | defaultHTTPClientTimeout = 5 * time.Second type App (line 65) | type App struct method Context (line 171) | func (a *App) Context() context.Context { method InitGlobalFlags (line 178) | func (a *App) InitGlobalFlags() { method PreRunE (line 237) | func (a *App) PreRunE(cmd *cobra.Command, args []string) error { method validateGlobals (line 278) | func (a *App) validateGlobals() error { method logConfigKVs (line 305) | func (a *App) logConfigKVs() { method PrintMsg (line 325) | func (a *App) PrintMsg(address string, msgName string, msg proto.Messa... method createCollectorDialOpts (line 375) | func (a *App) createCollectorDialOpts() { method watchConfig (line 402) | func (a *App) watchConfig() { method loadTargets (line 408) | func (a *App) loadTargets(e fsnotify.Event) { method startAPIServer (line 496) | func (a *App) startAPIServer() { method LoadProtoFiles (line 523) | func (a *App) LoadProtoFiles() (desc.Descriptor, error) { method GetTargets (line 545) | func (a *App) GetTargets() (map[string]*types.TargetConfig, error) { method CreateGNMIClient (line 575) | func (a *App) CreateGNMIClient(ctx context.Context, t *target.Target) ... function New (line 125) | func New() *App { FILE: pkg/app/capabilities.go method CapPreRunE (line 23) | func (a *App) CapPreRunE(cmd *cobra.Command, _ []string) error { method CapRunE (line 34) | func (a *App) CapRunE(cmd *cobra.Command, args []string) error { method ReqCapabilities (line 63) | func (a *App) ReqCapabilities(ctx context.Context, tc *types.TargetConfi... method InitCapabilitiesFlags (line 88) | func (a *App) InitCapabilitiesFlags(cmd *cobra.Command) { FILE: pkg/app/clustering.go constant defaultClusterName (line 32) | defaultClusterName = "default-cluster" constant retryTimer (line 33) | retryTimer = 10 * time.Second constant lockWaitTime (line 34) | lockWaitTime = 100 * time.Millisecond constant apiServiceName (line 35) | apiServiceName = "gnmic-api" constant protocolTagName (line 36) | protocolTagName = "__protocol" constant maxRebalanceLoop (line 37) | maxRebalanceLoop = 100 method InitLocker (line 45) | func (a *App) InitLocker() error { method leaderKey (line 69) | func (a *App) leaderKey() string { method inCluster (line 73) | func (a *App) inCluster() bool { method apiServiceRegistration (line 80) | func (a *App) apiServiceRegistration() { method startCluster (line 123) | func (a *App) startCluster() { method watchMembers (line 182) | func (a *App) watchMembers(ctx context.Context) { method updateServices (line 212) | func (a *App) updateServices(srvs []*lockers.Service) { method dispatchTargets (line 258) | func (a *App) dispatchTargets(ctx context.Context) { method dispatchTargetsOnce (line 282) | func (a *App) dispatchTargetsOnce(ctx context.Context) { method dispatchTarget (line 304) | func (a *App) dispatchTarget(ctx context.Context, tc *types.TargetConfig... method selectService (line 389) | func (a *App) selectService(tags []string, denied ...string) (*lockers.S... method getInstancesLoad (line 444) | func (a *App) getInstancesLoad(instances ...string) (map[string]int, err... method getLowLoadInstance (line 485) | func (a *App) getLowLoadInstance(load map[string]int) string { method getHighAndLowInstance (line 499) | func (a *App) getHighAndLowInstance(load map[string]int) (string, string) { method getTargetToInstanceMapping (line 516) | func (a *App) getTargetToInstanceMapping(ctx context.Context) (map[strin... method getInstanceToTargetsMapping (line 531) | func (a *App) getInstanceToTargetsMapping(ctx context.Context) (map[stri... method getInstancesTagsMatches (line 552) | func (a *App) getInstancesTagsMatches(tags []string) map[string]int { method getHighestTagsMatches (line 575) | func (a *App) getHighestTagsMatches(tagsCount map[string]int) []string { method deleteTarget (line 591) | func (a *App) deleteTarget(ctx context.Context, name string) error { method assignTarget (line 625) | func (a *App) assignTarget(ctx context.Context, tc *types.TargetConfig, ... method unassignTarget (line 668) | func (a *App) unassignTarget(ctx context.Context, name string, serviceID... method getServiceScheme (line 692) | func (a *App) getServiceScheme(service *lockers.Service) string { method createAPIClient (line 703) | func (a *App) createAPIClient() error { method clusterRebalanceTargets (line 738) | func (a *App) clusterRebalanceTargets() error { FILE: pkg/app/clustering_test.go function TestGetInstancesTagsMatches (line 231) | func TestGetInstancesTagsMatches(t *testing.T) { function TestGetHighestTagsMatches (line 244) | func TestGetHighestTagsMatches(t *testing.T) { FILE: pkg/app/const.go constant defaultGrpcPort (line 14) | defaultGrpcPort = "57400" constant msgSize (line 15) | msgSize = 512 * 1024 * 1024 constant defaultRetryTimer (line 16) | defaultRetryTimer = 10 * time.Second constant defaultPprofAddr (line 17) | defaultPprofAddr = "127.0.0.1:6060" constant formatJSON (line 19) | formatJSON = "json" constant formatPROTOJSON (line 20) | formatPROTOJSON = "protojson" constant formatPROTOTEXT (line 21) | formatPROTOTEXT = "prototext" constant formatEvent (line 22) | formatEvent = "event" constant formatPROTO (line 23) | formatPROTO = "proto" constant formatFLAT (line 24) | formatFLAT = "flat" FILE: pkg/app/diff.go type targetDiffResponse (line 32) | type targetDiffResponse struct method InitDiffFlags (line 39) | func (a *App) InitDiffFlags(cmd *cobra.Command) { method DiffPreRunE (line 59) | func (a *App) DiffPreRunE(cmd *cobra.Command, args []string) error { method DiffRunE (line 77) | func (a *App) DiffRunE(cmd *cobra.Command, args []string) error { method diff (line 137) | func (a *App) diff(ctx context.Context, cmd *cobra.Command, ref *types.T... method subscribeBasedDiff (line 144) | func (a *App) subscribeBasedDiff(ctx context.Context, cmd *cobra.Command... method getBasedDiff (line 261) | func (a *App) getBasedDiff(ctx context.Context, ref *types.TargetConfig,... method responsesDiff (line 322) | func (a *App) responsesDiff(r1, r2 []proto.Message) error { type diff (line 354) | type diff struct type diffs (line 360) | type diffs method String (line 362) | func (ds diffs) String() string { FILE: pkg/app/generate.go type keyOpts (line 32) | type keyOpts struct method format (line 37) | func (ko *keyOpts) format(s string) string { method GenerateRunE (line 47) | func (a *App) GenerateRunE(cmd *cobra.Command, args []string) error { method GeneratePreRunE (line 102) | func (a *App) GeneratePreRunE(cmd *cobra.Command, args []string) error { method yangFilesPreProcessing (line 110) | func (a *App) yangFilesPreProcessing() error { method GenerateSetRequestRunE (line 151) | func (a *App) GenerateSetRequestRunE(cmd *cobra.Command, args []string) ... method InitGenerateFlags (line 202) | func (a *App) InitGenerateFlags(cmd *cobra.Command) { method InitGenerateSetRequestFlags (line 218) | func (a *App) InitGenerateSetRequestFlags(cmd *cobra.Command) { method generateYangSchema (line 228) | func (a *App) generateYangSchema(files, excludes []string) error { method createSetRequestFile (line 287) | func (a *App) createSetRequestFile(m map[string]interface{}) (*config.Se... function buildRootEntry (line 332) | func buildRootEntry() *yang.Entry { function updateAnnotation (line 345) | func updateAnnotation(entry *yang.Entry) { function toMap (line 382) | func toMap(e *yang.Entry, configOnly bool, kopts *keyOpts) interface{} { function pathToUpdateItem (line 454) | func pathToUpdateItem(p string, m map[string]interface{}, kopts *keyOpts... function getSubMapByPath (line 462) | func getSubMapByPath(p string, m map[string]interface{}, kopts *keyOpts)... function resolveGlobs (line 509) | func resolveGlobs(globs []string) ([]string, error) { function walkDir (line 529) | func walkDir(path, ext string) ([]string, error) { function findYangFiles (line 554) | func findYangFiles(files []string) ([]string, error) { FILE: pkg/app/generatePath.go method GeneratePathPreRunE (line 19) | func (a *App) GeneratePathPreRunE(cmd *cobra.Command, args []string) err... method GeneratePathRunE (line 30) | func (a *App) GeneratePathRunE(cmd *cobra.Command, args []string) error { method InitGeneratePathFlags (line 49) | func (a *App) InitGeneratePathFlags(cmd *cobra.Command) { FILE: pkg/app/get.go method GetPreRunE (line 27) | func (a *App) GetPreRunE(cmd *cobra.Command, args []string) error { method GetRun (line 47) | func (a *App) GetRun(cmd *cobra.Command, args []string) error { method GetRequest (line 93) | func (a *App) GetRequest(ctx context.Context, tc *types.TargetConfig) { method getRequest (line 114) | func (a *App) getRequest(ctx context.Context, tc *types.TargetConfig, re... method getModels (line 148) | func (a *App) getModels(ctx context.Context, tc *types.TargetConfig) ([]... method filterModels (line 156) | func (a *App) filterModels(ctx context.Context, tc *types.TargetConfig, ... method InitGetFlags (line 198) | func (a *App) InitGetFlags(cmd *cobra.Command) { method intializeEventProcessors (line 217) | func (a *App) intializeEventProcessors() ([]formatters.EventProcessor, e... method handleGetRequestEvent (line 250) | func (a *App) handleGetRequestEvent(ctx context.Context, evps []formatte... type getResponseEvents (line 305) | type getResponseEvents struct FILE: pkg/app/getset.go method GetSetPreRunE (line 28) | func (a *App) GetSetPreRunE(cmd *cobra.Command, args []string) error { method GetSetRunE (line 40) | func (a *App) GetSetRunE(cmd *cobra.Command, args []string) error { method GetSetRequest (line 73) | func (a *App) GetSetRequest(ctx context.Context, tc *types.TargetConfig,... method InitGetSetFlags (line 166) | func (a *App) InitGetSetFlags(cmd *cobra.Command) { FILE: pkg/app/gnmi_client.go method ClientCapabilities (line 20) | func (a *App) ClientCapabilities(ctx context.Context, tc *types.TargetCo... method ClientGet (line 45) | func (a *App) ClientGet(ctx context.Context, tc *types.TargetConfig, req... method ClientSet (line 68) | func (a *App) ClientSet(ctx context.Context, tc *types.TargetConfig, req... FILE: pkg/app/gnmi_client_subscribe.go type subscriptionRequest (line 31) | type subscriptionRequest struct method TargetSubscribeStream (line 38) | func (a *App) TargetSubscribeStream(ctx context.Context, tc *types.Targe... method TargetSubscribeOnce (line 113) | func (a *App) TargetSubscribeOnce(ctx context.Context, tc *types.TargetC... method TargetSubscribePoll (line 132) | func (a *App) TargetSubscribePoll(ctx context.Context, tc *types.TargetC... method clientSubscribe (line 153) | func (a *App) clientSubscribe(ctx context.Context, tc *types.TargetConfi... method clientSubscribeOnce (line 224) | func (a *App) clientSubscribeOnce(ctx context.Context, tc *types.TargetC... method clientSubscribePoll (line 300) | func (a *App) clientSubscribePoll(ctx context.Context, targetName, subsc... FILE: pkg/app/gnmi_server.go type streamClient (line 36) | type streamClient struct method startGnmiServer (line 44) | func (a *App) startGnmiServer() error { method registerGNMIServer (line 93) | func (a *App) registerGNMIServer(ctx context.Context, defaultTags ...str... method handleONCESubscriptionRequest (line 195) | func (a *App) handleONCESubscriptionRequest(sc *streamClient) { method handleStreamSubscriptionRequest (line 245) | func (a *App) handleStreamSubscriptionRequest(sc *streamClient) { method handlePolledSubscription (line 373) | func (a *App) handlePolledSubscription(sc *streamClient) { method handlegNMIcInternalGet (line 410) | func (a *App) handlegNMIcInternalGet(ctx context.Context, req *gnmi.GetR... method handlegNMIGetPath (line 431) | func (a *App) handlegNMIGetPath(elems []*gnmi.PathElem, enc gnmi.Encodin... function targetConfigToNotification (line 480) | func targetConfigToNotification(tc *types.TargetConfig, e gnmi.Encoding)... function subscriptionConfigToNotification (line 812) | func subscriptionConfigToNotification(sub *types.SubscriptionConfig, e g... method serverGetHandler (line 842) | func (a *App) serverGetHandler(ctx context.Context, req *gnmi.GetRequest... method serverSetHandler (line 944) | func (a *App) serverSetHandler(ctx context.Context, req *gnmi.SetRequest... method serverSubscribeHandler (line 1028) | func (a *App) serverSubscribeHandler(req *gnmi.SubscribeRequest, stream ... FILE: pkg/app/inputs.go method InitInput (line 18) | func (a *App) InitInput(ctx context.Context, name string, tcs map[string... method InitInputs (line 48) | func (a *App) InitInputs(ctx context.Context) { FILE: pkg/app/loaders.go method startLoader (line 19) | func (a *App) startLoader(ctx context.Context) { method startLoaderProxy (line 113) | func (a *App) startLoaderProxy(ctx context.Context) { FILE: pkg/app/locker.go method targetLockKey (line 13) | func (a *App) targetLockKey(s string) string { FILE: pkg/app/logging.go method logError (line 17) | func (a *App) logError(err error) { method checkErrors (line 31) | func (a *App) checkErrors() error { FILE: pkg/app/metrics.go constant clusterMetricsUpdatePeriod (line 21) | clusterMetricsUpdatePeriod = 10 * time.Second method registerTargetMetrics (line 68) | func (a *App) registerTargetMetrics() { method startClusterMetrics (line 150) | func (a *App) startClusterMetrics() { FILE: pkg/app/outputs.go method InitOutput (line 20) | func (a *App) InitOutput(ctx context.Context, name string, tcs map[strin... method InitOutputs (line 55) | func (a *App) InitOutputs(ctx context.Context) { method AddOutputConfig (line 62) | func (a *App) AddOutputConfig(name string, cfg map[string]interface{}) e... method DeleteOutput (line 78) | func (a *App) DeleteOutput(name string) error { FILE: pkg/app/path.go type pathGenOpts (line 27) | type pathGenOpts struct type generatedPath (line 39) | type generatedPath struct method PathCmdRun (line 51) | func (a *App) PathCmdRun(d, f, e []string, pgo pathGenOpts) error { method PathPreRunE (line 167) | func (a *App) PathPreRunE(cmd *cobra.Command, args []string) error { method PathRunE (line 178) | func (a *App) PathRunE(cmd *cobra.Command, args []string) error { method InitPathFlags (line 195) | func (a *App) InitPathFlags(cmd *cobra.Command) { function collectSchemaNodes (line 208) | func collectSchemaNodes(e *yang.Entry, leafOnly bool) []*yang.Entry { method generatePath (line 280) | func (a *App) generatePath(entry *yang.Entry, pType string) *generatedPa... method generateTypeInfo (line 352) | func (a *App) generateTypeInfo(e *yang.Entry) string { function getAnnotation (line 428) | func getAnnotation(entry *yang.Entry, name string) any { function isState (line 438) | func isState(e *yang.Entry) bool { function collapsePrefixes (line 449) | func collapsePrefixes(p string) string { function getPrefixElem (line 469) | func getPrefixElem(pe string) (string, string) { FILE: pkg/app/path_test.go function TestCollapsePrefixes (line 40) | func TestCollapsePrefixes(t *testing.T) { FILE: pkg/app/plugins.go method initPluginManager (line 5) | func (a *App) initPluginManager() error { method CleanupPlugins (line 17) | func (a *App) CleanupPlugins() { FILE: pkg/app/pprof.go type pprofServer (line 9) | type pprofServer struct method Start (line 19) | func (p *pprofServer) Start(address string) { method ErrChan (line 33) | func (p *pprofServer) ErrChan() <-chan error { function newPprofServer (line 13) | func newPprofServer() *pprofServer { FILE: pkg/app/processor.go method ProcessorPreRunE (line 20) | func (a *App) ProcessorPreRunE(cmd *cobra.Command, args []string) error { method ProcessorRunE (line 30) | func (a *App) ProcessorRunE(cmd *cobra.Command, args []string) error { method InitProcessorFlags (line 115) | func (a *App) InitProcessorFlags(cmd *cobra.Command) { method promFormat (line 126) | func (a *App) promFormat(rrevs [][]*formatters.EventMsg, outName string)... FILE: pkg/app/prompt.go method PromptRunE (line 23) | func (a *App) PromptRunE(cmd *cobra.Command, args []string) error { method PromptPreRunE (line 58) | func (a *App) PromptPreRunE(cmd *cobra.Command, args []string) error { method InitPromptFlags (line 81) | func (a *App) InitPromptFlags(cmd *cobra.Command) { FILE: pkg/app/proxy.go type targetSubscribeResponse (line 36) | type targetSubscribeResponse struct method ProxyPreRunE (line 41) | func (a *App) ProxyPreRunE(cmd *cobra.Command, args []string) error { method ProxyRunE (line 47) | func (a *App) ProxyRunE(cmd *cobra.Command, args []string) error { method startGNMIProxyServer (line 85) | func (a *App) startGNMIProxyServer(ctx context.Context) error { method proxyGetHandler (line 110) | func (a *App) proxyGetHandler(ctx context.Context, req *gnmi.GetRequest)... method proxySetHandler (line 197) | func (a *App) proxySetHandler(ctx context.Context, req *gnmi.SetRequest)... method proxySubscribeHandler (line 281) | func (a *App) proxySubscribeHandler(req *gnmi.SubscribeRequest, stream g... method proxySubscribeONCEHandler (line 318) | func (a *App) proxySubscribeONCEHandler(req *gnmi.SubscribeRequest, stre... method proxySubscribeSTREAMHandler (line 424) | func (a *App) proxySubscribeSTREAMHandler(req *gnmi.SubscribeRequest, st... function getTargetFromSubscribeRequest (line 522) | func getTargetFromSubscribeRequest(req *gnmi.SubscribeRequest) string { method selectTargets (line 531) | func (a *App) selectTargets(ctx context.Context, tn string) (map[string]... method createTarget (line 587) | func (a *App) createTarget(ctx context.Context, tc *types.TargetConfig) ... FILE: pkg/app/routes.go method routes (line 17) | func (a *App) routes() { method clusterRoutes (line 26) | func (a *App) clusterRoutes(r *mux.Router) { method configRoutes (line 35) | func (a *App) configRoutes(r *mux.Router) { method targetRoutes (line 60) | func (a *App) targetRoutes(r *mux.Router) { method healthRoutes (line 68) | func (a *App) healthRoutes(r *mux.Router) { method adminRoutes (line 72) | func (a *App) adminRoutes(r *mux.Router) { FILE: pkg/app/set-to-notifs.go method InitDiffSetToNotifsFlags (line 29) | func (a *App) InitDiffSetToNotifsFlags(cmd *cobra.Command) { method DiffSetToNotifsRunE (line 43) | func (a *App) DiffSetToNotifsRunE(cmd *cobra.Command, args []string) err... FILE: pkg/app/set.go method SetPreRunE (line 24) | func (a *App) SetPreRunE(cmd *cobra.Command, args []string) error { method SetRunE (line 40) | func (a *App) SetRunE(cmd *cobra.Command, args []string) error { method SetRequest (line 72) | func (a *App) SetRequest(ctx context.Context, tc *types.TargetConfig) { method setRequest (line 84) | func (a *App) setRequest(ctx context.Context, tc *types.TargetConfig, re... method InitSetFlags (line 108) | func (a *App) InitSetFlags(cmd *cobra.Command) { FILE: pkg/app/setrequest.go method InitDiffSetRequestFlags (line 29) | func (a *App) InitDiffSetRequestFlags(cmd *cobra.Command) { method DiffSetRequestRunE (line 43) | func (a *App) DiffSetRequestRunE(cmd *cobra.Command, args []string) error { FILE: pkg/app/subscribe.go constant initLockerRetryTimer (line 37) | initLockerRetryTimer = 1 * time.Second method SubscribePreRunE (line 40) | func (a *App) SubscribePreRunE(cmd *cobra.Command, args []string) error { method SubscribeRunE (line 52) | func (a *App) SubscribeRunE(cmd *cobra.Command, args []string) error { method subscribeStream (line 145) | func (a *App) subscribeStream(ctx context.Context, tc *types.TargetConfi... method subscribeOnce (line 150) | func (a *App) subscribeOnce(ctx context.Context, tc *types.TargetConfig) { method subscribePoll (line 158) | func (a *App) subscribePoll(ctx context.Context, tc *types.TargetConfig) { method InitSubscribeFlags (line 164) | func (a *App) InitSubscribeFlags(cmd *cobra.Command) { method readConfigs (line 197) | func (a *App) readConfigs() error { constant subscriptionModeONCE (line 223) | subscriptionModeONCE = "ONCE" constant subscriptionModePOLL (line 224) | subscriptionModePOLL = "POLL" method StartTargetsManager (line 227) | func (a *App) StartTargetsManager(ctx context.Context) { method export (line 346) | func (a *App) export(ctx context.Context, rsp *gnmi.SubscribeResponse, m... method updateCache (line 381) | func (a *App) updateCache(ctx context.Context, rsp *gnmi.SubscribeRespon... method subscriptionMode (line 407) | func (a *App) subscriptionMode(name string) string { method polledSubscriptionsTargets (line 415) | func (a *App) polledSubscriptionsTargets() map[string][]string { method handlePolledSubscriptions (line 430) | func (a *App) handlePolledSubscriptions() error { method startIO (line 564) | func (a *App) startIO() { function allSubscriptionsModeOnce (line 592) | func allSubscriptionsModeOnce(subs map[string]*types.SubscriptionConfig)... function allSubscriptionsModePoll (line 604) | func allSubscriptionsModePoll(subs map[string]*types.SubscriptionConfig)... FILE: pkg/app/subscribe_once.go method SubscribeRunONCE (line 19) | func (a *App) SubscribeRunONCE(_ *cobra.Command, _ []string) error { FILE: pkg/app/subscribe_poll.go method SubscribeRunPoll (line 18) | func (a *App) SubscribeRunPoll(cmd *cobra.Command, args []string) error { FILE: pkg/app/subscribe_prompt.go method SubscribeRunPrompt (line 19) | func (a *App) SubscribeRunPrompt(cmd *cobra.Command, args []string) error { FILE: pkg/app/target.go method initTarget (line 24) | func (a *App) initTarget(tc *types.TargetConfig) (*target.Target, error) { method stopTarget (line 48) | func (a *App) stopTarget(ctx context.Context, name string) error { method DeleteTarget (line 68) | func (a *App) DeleteTarget(ctx context.Context, name string) error { method UpdateTargetSubscription (line 99) | func (a *App) UpdateTargetSubscription(ctx context.Context, name string,... method AddTargetConfig (line 120) | func (a *App) AddTargetConfig(tc *types.TargetConfig) { method parseProtoFiles (line 138) | func (a *App) parseProtoFiles(t *target.Target) error { method targetConfigExists (line 158) | func (a *App) targetConfigExists(name string) bool { FILE: pkg/app/tree.go method InitTreeFlags (line 11) | func (a *App) InitTreeFlags(cmd *cobra.Command) { method RunETree (line 22) | func (a *App) RunETree(cmd *cobra.Command, args []string) error { method tree (line 31) | func (a *App) tree(c *cobra.Command, indent string) error { function treeFlat (line 68) | func treeFlat(c *cobra.Command, prefix string) { FILE: pkg/app/tunnel.go method initTunnelServer (line 30) | func (a *App) initTunnelServer(tsc tunnel.ServerConfig) error { method startTunnelServer (line 47) | func (a *App) startTunnelServer(tsc tunnel.ServerConfig) error { method gRPCTunnelServerOpts (line 99) | func (a *App) gRPCTunnelServerOpts() ([]grpc.ServerOption, error) { method tunServerAddTargetHandler (line 132) | func (a *App) tunServerAddTargetHandler(tt tunnel.Target) error { method tunServerAddTargetSubscribeHandler (line 145) | func (a *App) tunServerAddTargetSubscribeHandler(tt tunnel.Target) error { method tunServerDeleteTargetHandler (line 169) | func (a *App) tunServerDeleteTargetHandler(tt tunnel.Target) error { method tunServerRegisterHandler (line 184) | func (a *App) tunServerRegisterHandler(ss tunnel.ServerSession) error { method tunServerHandler (line 188) | func (a *App) tunServerHandler(ss tunnel.ServerSession, rwc io.ReadWrite... method tunDialerFn (line 193) | func (a *App) tunDialerFn(ctx context.Context, tc *types.TargetConfig) f... method getTunnelTargetMatch (line 211) | func (a *App) getTunnelTargetMatch(tt tunnel.Target) *types.TargetConfig { FILE: pkg/app/utils.go method printCapResponse (line 18) | func (a *App) printCapResponse(printPrefix string, msg *gnmi.CapabilityR... function indent (line 45) | func indent(prefix, s string) string { FILE: pkg/app/version.go method VersionRun (line 27) | func (a *App) VersionRun(cmd *cobra.Command, args []string) { method VersionUpgradeRun (line 53) | func (a *App) VersionUpgradeRun(cmd *cobra.Command, args []string) error { function downloadFile (line 82) | func downloadFile(url string, file *os.File) error { FILE: pkg/cache/cache.go type CacheType (line 22) | type CacheType constant cacheType_OC (line 25) | cacheType_OC CacheType = "oc" constant cacheType_Redis (line 26) | cacheType_Redis CacheType = "redis" constant cacheType_NATS (line 27) | cacheType_NATS CacheType = "nats" constant cacheType_JS (line 28) | cacheType_JS CacheType = "jetstream" constant ReadMode_Once (line 32) | ReadMode_Once = "once" constant ReadMode_StreamOnChange (line 33) | ReadMode_StreamOnChange = "stream_on_change" constant ReadMode_StreamSample (line 34) | ReadMode_StreamSample = "stream_sample" type Cache (line 37) | type Cache interface type Config (line 54) | type Config struct method setDefaults (line 71) | func (c *Config) setDefaults() { function New (line 105) | func New(c *Config, opts ...Option) (Cache, error) { type ReadOpts (line 126) | type ReadOpts struct method setDefaults (line 141) | func (ro *ReadOpts) setDefaults() { type Notification (line 160) | type Notification struct FILE: pkg/cache/jetstream_cache.go constant loggingPrefixJetStream (line 32) | loggingPrefixJetStream = "[cache:jetstream] " constant reconnectTimer (line 33) | reconnectTimer = 5 * time.Second constant defaultFetchBatchSize (line 34) | defaultFetchBatchSize = 100 constant defaultFetchWaitTime (line 35) | defaultFetchWaitTime = 100 * time.Millisecond constant defaultExpiration (line 36) | defaultExpiration = time.Minute constant defaultMaxMsgs (line 37) | defaultMaxMsgs = 1024 * 1024 constant defaultMaxBytes (line 38) | defaultMaxBytes = 1024 * 1024 * 1024 constant defaultNATSAddress (line 39) | defaultNATSAddress = "127.0.0.1" constant jetStreamSyncName (line 40) | jetStreamSyncName = "gnmic-jetstream-cache" type jetStreamCache (line 43) | type jetStreamCache struct method SetLogger (line 100) | func (c *jetStreamCache) SetLogger(logger *log.Logger) { method start (line 108) | func (c *jetStreamCache) start() { method createStream (line 159) | func (c *jetStreamCache) createStream(streamName string, subjects []st... method Write (line 186) | func (c *jetStreamCache) Write(ctx context.Context, subscriptionName s... method writeRemoteJS (line 203) | func (c *jetStreamCache) writeRemoteJS(ctx context.Context, subscripti... method publishNotificationJS (line 245) | func (c *jetStreamCache) publishNotificationJS(ctx context.Context, su... method sync (line 266) | func (c *jetStreamCache) sync(ctx context.Context) { method syncStream (line 298) | func (c *jetStreamCache) syncStream(ctx context.Context, subject strin... method ReadAll (line 324) | func (c *jetStreamCache) ReadAll() (map[string][]*gnmi.Notification, e... method Read (line 328) | func (c *jetStreamCache) Read(sub, target string, p *gnmi.Path) (map[s... method Subscribe (line 332) | func (c *jetStreamCache) Subscribe(ctx context.Context, ro *ReadOpts) ... method Stop (line 336) | func (c *jetStreamCache) Stop() { method DeleteTarget (line 346) | func (c *jetStreamCache) DeleteTarget(name string) { function newJetStreamCache (line 60) | func newJetStreamCache(cfg *Config, opts ...Option) (*jetStreamCache, er... function subjectName (line 356) | func subjectName(streamName, target string, m proto.Message) (string, er... type subjectOpts (line 393) | type subjectOpts struct function gNMIPathToSubject (line 398) | func gNMIPathToSubject(p *gnmi.Path, opts subjectOpts) []string { constant dotReplChar (line 444) | dotReplChar = "^" constant spaceReplChar (line 445) | spaceReplChar = "~" function sanitizeKey (line 451) | func sanitizeKey(k string) string { FILE: pkg/cache/jetstream_cache_test.go function Test_natsCache_Write (line 22) | func Test_natsCache_Write(t *testing.T) { FILE: pkg/cache/nats_cache.go constant loggingPrefixNATS (line 28) | loggingPrefixNATS = "[cache:nats] " constant cacheSubjects (line 29) | cacheSubjects = "gnmic.cache.subjects" constant subjectCacheResetPeriod (line 30) | subjectCacheResetPeriod = 30 * time.Second type natsCache (line 33) | type natsCache struct method start (line 91) | func (c *natsCache) start() { method sync (line 136) | func (c *natsCache) sync(ctx context.Context) { method syncSubject (line 178) | func (c *natsCache) syncSubject(ctx context.Context, subject string) { method Write (line 199) | func (c *natsCache) Write(ctx context.Context, subscriptionName string... method writeRemoteNATS (line 217) | func (c *natsCache) writeRemoteNATS(ctx context.Context, subscriptionN... method publishNotificationNATS (line 237) | func (c *natsCache) publishNotificationNATS(_ context.Context, subscri... method ReadAll (line 249) | func (c *natsCache) ReadAll() (map[string][]*gnmi.Notification, error) { method Read (line 253) | func (c *natsCache) Read(sub, target string, p *gnmi.Path) (map[string... method Subscribe (line 257) | func (c *natsCache) Subscribe(ctx context.Context, ro *ReadOpts) chan ... method Stop (line 261) | func (c *natsCache) Stop() { method SetLogger (line 271) | func (c *natsCache) SetLogger(logger *log.Logger) { method DeleteTarget (line 279) | func (c *natsCache) DeleteTarget(name string) { function newNATSCache (line 51) | func newNATSCache(cfg *Config, opts ...Option) (*natsCache, error) { FILE: pkg/cache/oc_cache.go constant loggingPrefixOC (line 31) | loggingPrefixOC = "[cache:oc] " constant defaultTimeout (line 32) | defaultTimeout = 10 * time.Second type gnmiCache (line 35) | type gnmiCache struct method loadConfig (line 50) | func (gc *gnmiCache) loadConfig(gcc *Config) { method SetLogger (line 90) | func (gc *gnmiCache) SetLogger(logger *log.Logger) { method Write (line 97) | func (gc *gnmiCache) Write(ctx context.Context, measName string, m pro... method ReadAll (line 163) | func (gc *gnmiCache) ReadAll() (map[string][]*gnmi.Notification, error) { method Read (line 167) | func (gc *gnmiCache) Read(sub, target string, p *gnmi.Path) (map[strin... method Subscribe (line 171) | func (gc *gnmiCache) Subscribe(ctx context.Context, ro *ReadOpts) chan... method subscribe (line 183) | func (gc *gnmiCache) subscribe(ctx context.Context, ro *ReadOpts, ch c... method handleSingleQuery (line 196) | func (gc *gnmiCache) handleSingleQuery(ctx context.Context, ro *ReadOp... method handleSampledQuery (line 296) | func (gc *gnmiCache) handleSampledQuery(ctx context.Context, ro *ReadO... method handleOnChangeQuery (line 314) | func (gc *gnmiCache) handleOnChangeQuery(ctx context.Context, ro *Read... method Stop (line 384) | func (gc *gnmiCache) Stop() {} method read (line 386) | func (gc *gnmiCache) read(sub, target string, p *gnmi.Path) map[string... method getCaches (line 448) | func (gc *gnmiCache) getCaches(names ...string) map[string]*subCache { method DeleteTarget (line 468) | func (gc *gnmiCache) DeleteTarget(name string) { type subCache (line 45) | type subCache struct method update (line 80) | func (gc *subCache) update(n *ctree.Leaf) { function newGNMICache (line 56) | func newGNMICache(cfg *Config, loggingPrefix string, opts ...Option) *gn... type matchClient (line 476) | type matchClient struct method Update (line 481) | func (m *matchClient) Update(n interface{}) { FILE: pkg/cache/oc_cache_test.go function Test_gnmiCache_read (line 20) | func Test_gnmiCache_read(t *testing.T) { FILE: pkg/cache/options.go type Option (line 13) | type Option function WithLogger (line 15) | func WithLogger(logger *log.Logger) Option { FILE: pkg/cache/redis_cache.go constant loggingPrefixRedis (line 28) | loggingPrefixRedis = "[cache:redis] " constant cacheChannelsChannel (line 29) | cacheChannelsChannel = "gnmic_cache_channels" constant defaultRedisAddress (line 30) | defaultRedisAddress = "127.0.0.1:6379" type redisCache (line 33) | type redisCache struct method SetLogger (line 91) | func (c *redisCache) SetLogger(logger *log.Logger) { method Write (line 99) | func (c *redisCache) Write(ctx context.Context, subscriptionName strin... method writeRemoteREDIS (line 117) | func (c *redisCache) writeRemoteREDIS(ctx context.Context, subscriptio... method publishNotificationREDIS (line 137) | func (c *redisCache) publishNotificationREDIS(ctx context.Context, sub... method ReadAll (line 159) | func (c *redisCache) ReadAll() (map[string][]*gnmi.Notification, error) { method Read (line 163) | func (c *redisCache) Read(sub, target string, p *gnmi.Path) (map[strin... method sync (line 167) | func (c *redisCache) sync(ctx context.Context) { method syncChannel (line 211) | func (c *redisCache) syncChannel(ctx context.Context, channel string) { method Subscribe (line 235) | func (c *redisCache) Subscribe(ctx context.Context, ro *ReadOpts) chan... method Stop (line 239) | func (c *redisCache) Stop() { method DeleteTarget (line 246) | func (c *redisCache) DeleteTarget(name string) { function newRedisCache (line 45) | func newRedisCache(cfg *Config, opts ...Option) (*redisCache, error) { FILE: pkg/cmd/capabilities/capabilities.go function New (line 17) | func New(gApp *app.App) *cobra.Command { FILE: pkg/cmd/collector/collector.go function New (line 25) | func New(gApp *app.App) *cobra.Command { function getAPIServerURL (line 47) | func getAPIServerURL(store store.Store[any]) (string, error) { function getAPIServerClient (line 68) | func getAPIServerClient(store store.Store[any]) (*http.Client, error) { FILE: pkg/cmd/collector/inputs.go function newCollectorInputsCmd (line 25) | func newCollectorInputsCmd(gApp *app.App) *cobra.Command { function newCollectorInputsListCmd (line 41) | func newCollectorInputsListCmd(gApp *app.App) *cobra.Command { function newCollectorInputsGetCmd (line 111) | func newCollectorInputsGetCmd(gApp *app.App) *cobra.Command { function newCollectorInputsSetCmd (line 180) | func newCollectorInputsSetCmd(gApp *app.App) *cobra.Command { function newCollectorInputsDeleteCmd (line 231) | func newCollectorInputsDeleteCmd(gApp *app.App) *cobra.Command { function tableFormatInputVertical (line 277) | func tableFormatInputVertical(input map[string]any) [][]string { function tableFormatInputsList (line 297) | func tableFormatInputsList(inputs []map[string]any) [][]string { FILE: pkg/cmd/collector/ouputs.go function newCollectorOutputsCmd (line 25) | func newCollectorOutputsCmd(gApp *app.App) *cobra.Command { function newCollectorOutputsListCmd (line 43) | func newCollectorOutputsListCmd(gApp *app.App) *cobra.Command { function newCollectorOutputsGetCmd (line 111) | func newCollectorOutputsGetCmd(gApp *app.App) *cobra.Command { function newCollectorOutputsSetCmd (line 179) | func newCollectorOutputsSetCmd(gApp *app.App) *cobra.Command { function newCollectorOutputsDeleteCmd (line 229) | func newCollectorOutputsDeleteCmd(gApp *app.App) *cobra.Command { function tableFormatOutputVertical (line 274) | func tableFormatOutputVertical(output map[string]any) [][]string { function tableFormatOutputsList (line 295) | func tableFormatOutputsList(outputs []map[string]any) [][]string { FILE: pkg/cmd/collector/processors.go function newCollectorProcessorsCmd (line 17) | func newCollectorProcessorsCmd(gApp *app.App) *cobra.Command { function newCollectorProcessorsListCmd (line 33) | func newCollectorProcessorsListCmd(gApp *app.App) *cobra.Command { function newCollectorProcessorsGetCmd (line 97) | func newCollectorProcessorsGetCmd(gApp *app.App) *cobra.Command { function newCollectorProcessorsSetCmd (line 163) | func newCollectorProcessorsSetCmd(gApp *app.App) *cobra.Command { function newCollectorProcessorsDeleteCmd (line 173) | func newCollectorProcessorsDeleteCmd(gApp *app.App) *cobra.Command { function tableFormatProcessorsList (line 183) | func tableFormatProcessorsList(processors []apiserver.ProcessorConfigRes... function tableFormatProcessorVertical (line 195) | func tableFormatProcessorVertical(processor apiserver.ProcessorConfigRes... function formatProcessorConfig (line 201) | func formatProcessorConfig(config any) string { FILE: pkg/cmd/collector/subscriptions.go function newCollectorSubscriptionsCmd (line 31) | func newCollectorSubscriptionsCmd(gApp *app.App) *cobra.Command { function newCollectorSubscriptionsListCmd (line 50) | func newCollectorSubscriptionsListCmd(gApp *app.App) *cobra.Command { function newCollectorSubscriptionsGetCmd (line 118) | func newCollectorSubscriptionsGetCmd(gApp *app.App) *cobra.Command { function newCollectorSubscriptionsSetCmd (line 184) | func newCollectorSubscriptionsSetCmd(gApp *app.App) *cobra.Command { function newCollectorSubscriptionsDeleteCmd (line 229) | func newCollectorSubscriptionsDeleteCmd(gApp *app.App) *cobra.Command { function formatSubscriptionMode (line 274) | func formatSubscriptionMode(sub *types.SubscriptionConfig) string { function formatSubscriptionConfigVertical (line 290) | func formatSubscriptionConfigVertical(prefix string, cfg *types.Subscrip... function formatStreamSubscriptionConfigVertical (line 328) | func formatStreamSubscriptionConfigVertical(prefix string, cfg *types.Su... function tableFormatSubscriptionVertical (line 343) | func tableFormatSubscriptionVertical(sub *apiserver.SubscriptionResponse... function tableFormatSubscriptionsList (line 385) | func tableFormatSubscriptionsList(subs []*apiserver.SubscriptionResponse... function formatSubscriptionRow (line 416) | func formatSubscriptionRow( function readSubscriptionConfigFromFile (line 464) | func readSubscriptionConfigFromFile(filename string) (*types.Subscriptio... function formatSubscriptionEncoding (line 497) | func formatSubscriptionEncoding(encoding *string) string { FILE: pkg/cmd/collector/targets.go function newCollectorTargetsCmd (line 31) | func newCollectorTargetsCmd(gApp *app.App) *cobra.Command { function newCollectorTargetsListCmd (line 48) | func newCollectorTargetsListCmd(gApp *app.App) *cobra.Command { function newCollectorTargetsGetCmd (line 108) | func newCollectorTargetsGetCmd(gApp *app.App) *cobra.Command { function newCollectorTargetsSetCmd (line 178) | func newCollectorTargetsSetCmd(gApp *app.App) *cobra.Command { function newCollectorTargetsDeleteCmd (line 219) | func newCollectorTargetsDeleteCmd(gApp *app.App) *cobra.Command { function formatValue (line 263) | func formatValue(v any) string { function formatValueShort (line 329) | func formatValueShort(v any) string { function tableFormatTargetVertical (line 351) | func tableFormatTargetVertical(target *apiserver.TargetResponse) [][]str... function tableFormatTargetsList (line 393) | func tableFormatTargetsList(targets []*apiserver.TargetResponse) [][]str... function readTargetConfigFromFile (line 414) | func readTargetConfigFromFile(filename string) (*types.TargetConfig, []b... FILE: pkg/cmd/completion.go function newCompletionCmd (line 19) | func newCompletionCmd(gApp *app.App) *cobra.Command { FILE: pkg/cmd/diff/diff.go function New (line 17) | func New(gApp *app.App) *cobra.Command { function newDiffSetRequestCmd (line 33) | func newDiffSetRequestCmd(gApp *app.App) *cobra.Command { function newDiffSetToNotifsCmd (line 44) | func newDiffSetToNotifsCmd(gApp *app.App) *cobra.Command { FILE: pkg/cmd/generate/generate.go function New (line 17) | func New(gApp *app.App) *cobra.Command { FILE: pkg/cmd/generate/generatePath.go function newGeneratePathCmd (line 17) | func newGeneratePathCmd(gApp *app.App) *cobra.Command { FILE: pkg/cmd/generate/generateSetRequest.go function newGenerateSetRequestCmd (line 17) | func newGenerateSetRequestCmd(gApp *app.App) *cobra.Command { FILE: pkg/cmd/get/get.go function New (line 25) | func New(gApp *app.App) *cobra.Command { FILE: pkg/cmd/getset/getset.go function New (line 17) | func New(gApp *app.App) *cobra.Command { FILE: pkg/cmd/listener/listener.go function New (line 40) | func New(gApp *app.App) *cobra.Command { type dialoutTelemetryServer (line 171) | type dialoutTelemetryServer struct method Publish (line 184) | func (s *dialoutTelemetryServer) Publish(stream nokiasros.DialoutTelem... FILE: pkg/cmd/path/path.go function New (line 17) | func New(gApp *app.App) *cobra.Command { FILE: pkg/cmd/processor/processor.go function New (line 9) | func New(gApp *app.App) *cobra.Command { FILE: pkg/cmd/prompt.go function getColor (line 57) | func getColor(flagName string) goprompt.Color { function newPromptCmd (line 86) | func newPromptCmd() *cobra.Command { function renderTable (line 242) | func renderTable(tabData [][]string, header []string) { function targetTable (line 252) | func targetTable(targetConfigs map[string]*types.TargetConfig, list bool... function subscriptionTable (line 300) | func subscriptionTable(scs map[string]*types.SubscriptionConfig, list bo... function findMatchedXPATH (line 343) | func findMatchedXPATH(entry *yang.Entry, input string, prefixPresent boo... function getDescriptionPrefix (line 420) | func getDescriptionPrefix(entry *yang.Entry) string { function getEntryType (line 433) | func getEntryType(entry *yang.Entry) string { function buildXPATHDescription (line 440) | func buildXPATHDescription(entry *yang.Entry) string { function getPermissions (line 462) | func getPermissions(entry *yang.Entry) string { function findMatchedSchema (line 477) | func findMatchedSchema(entry *yang.Entry, input string) []*yang.Entry { function findDynamicSuggestions (line 545) | func findDynamicSuggestions(annotation string, doc goprompt.Document) []... function subscriptionDescription (line 689) | func subscriptionDescription(sub *types.SubscriptionConfig) string { function showCommandArguments (line 719) | func showCommandArguments(b *goprompt.Buffer) { function ExecutePrompt (line 781) | func ExecutePrompt() { function initPromptCmds (line 856) | func initPromptCmds() { type cmdPrompt (line 877) | type cmdPrompt struct method Run (line 888) | func (co cmdPrompt) Run() { function parsePromptArgs (line 912) | func parsePromptArgs(in string) ([]string, error) { function findSuggestions (line 960) | func findSuggestions(co cmdPrompt, doc goprompt.Document) []goprompt.Sug... FILE: pkg/cmd/prompt_test.go type testItem (line 17) | type testItem struct function TestGetInstancesTagsMatches (line 53) | func TestGetInstancesTagsMatches(t *testing.T) { FILE: pkg/cmd/proxy/proxy.go function New (line 9) | func New(gApp *app.App) *cobra.Command { FILE: pkg/cmd/root.go function newRootCmd (line 55) | func newRootCmd() *cobra.Command { function Execute (line 91) | func Execute() { function init (line 102) | func init() { function initConfig (line 107) | func initConfig() { function setupCloseHandler (line 117) | func setupCloseHandler(cancelFn context.CancelFunc) { FILE: pkg/cmd/set/set.go function New (line 17) | func New(gApp *app.App) *cobra.Command { FILE: pkg/cmd/subscribe/subscribe.go function New (line 34) | func New(gApp *app.App) *cobra.Command { FILE: pkg/cmd/tree/tree.go function New (line 9) | func New(gApp *app.App) *cobra.Command { FILE: pkg/cmd/version/version.go function New (line 17) | func New(gApp *app.App) *cobra.Command { FILE: pkg/cmd/version/versionUpgrade.go function newVersionUpgradeCmd (line 20) | func newVersionUpgradeCmd(gApp *app.App) *cobra.Command { function initVersionUpgradeFlags (line 34) | func initVersionUpgradeFlags(cmd *cobra.Command, gApp *app.App) { FILE: pkg/collector/api/const/const.go constant APIv1 (line 4) | APIv1 = "/api/v1" constant ConfigAPIv1URL (line 5) | ConfigAPIv1URL = APIv1 + "/config" constant TargetsConfigAPIv1URL (line 6) | TargetsConfigAPIv1URL = ConfigAPIv1URL + "/targets" constant TargetsAPIv1URL (line 8) | TargetsAPIv1URL = APIv1 + "/targets" constant SubscriptionsAPIv1URL (line 9) | SubscriptionsAPIv1URL = APIv1 + "/subscriptions" constant OutputsAPIv1URL (line 10) | OutputsAPIv1URL = APIv1 + "/outputs" constant InputsAPIv1URL (line 11) | InputsAPIv1URL = APIv1 + "/inputs" constant AssignmentsAPIv1URL (line 13) | AssignmentsAPIv1URL = APIv1 + "/assignments" constant ProcessorsAPIv1URL (line 14) | ProcessorsAPIv1URL = APIv1 + "/processors" FILE: pkg/collector/api/server/apiserver.go type Server (line 26) | type Server struct method Start (line 65) | func (s *Server) Start(locker lockers.Locker, wg *sync.WaitGroup) error { method Stop (line 121) | func (s *Server) Stop() { function NewServer (line 42) | func NewServer( type APIErrors (line 129) | type APIErrors struct function createListener (line 133) | func createListener(apiCfg *config.APIServer) (net.Listener, error) { FILE: pkg/collector/api/server/apply.go type ConfigApplyRequest (line 17) | type ConfigApplyRequest struct function validateApplyRequest (line 26) | func validateApplyRequest(req *ConfigApplyRequest) error { method handleConfigApply (line 47) | func (s *Server) handleConfigApply(w http.ResponseWriter, r *http.Reques... function decodeRequest (line 243) | func decodeRequest(reader io.Reader) (*ConfigApplyRequest, error) { function decodeRequestMap (line 257) | func decodeRequestMap(reqMap map[string]any) (*ConfigApplyRequest, error) { FILE: pkg/collector/api/server/assignment.go type assignmentConfig (line 13) | type assignmentConfig struct method validate (line 18) | func (a *assignmentConfig) validate() error { type assignement (line 42) | type assignement struct method handleAssignmentPost (line 59) | func (s *Server) handleAssignmentPost(w http.ResponseWriter, r *http.Req... method handleAssignmentDelete (line 112) | func (s *Server) handleAssignmentDelete(w http.ResponseWriter, r *http.R... type assignmentResponse (line 129) | type assignmentResponse struct method handleAssignmentGet (line 134) | func (s *Server) handleAssignmentGet(w http.ResponseWriter, r *http.Requ... FILE: pkg/collector/api/server/cluster.go type clusteringResponse (line 17) | type clusteringResponse struct type clusterMember (line 24) | type clusterMember struct method requireClustering (line 32) | func (s *Server) requireClustering(next http.Handler) http.Handler { method handleClusteringGet (line 43) | func (s *Server) handleClusteringGet(w http.ResponseWriter, r *http.Requ... method handleClusterRebalance (line 110) | func (s *Server) handleClusterRebalance(w http.ResponseWriter, r *http.R... method handleClusteringLeaderGet (line 132) | func (s *Server) handleClusteringLeaderGet(w http.ResponseWriter, r *htt... method handleClusteringLeaderDelete (line 198) | func (s *Server) handleClusteringLeaderDelete(w http.ResponseWriter, r *... method handleClusteringMembersGet (line 218) | func (s *Server) handleClusteringMembersGet(w http.ResponseWriter, r *ht... method handleClusteringDrainInstance (line 281) | func (s *Server) handleClusteringDrainInstance(w http.ResponseWriter, r ... type moveRequest (line 309) | type moveRequest struct method handleClusterMove (line 314) | func (s *Server) handleClusterMove(w http.ResponseWriter, r *http.Reques... method handleConfig (line 352) | func (s *Server) handleConfig(w http.ResponseWriter, r *http.Request) { function sanitizeConfig (line 372) | func sanitizeConfig(res map[string]any) map[string]any { method handleHealthzGet (line 397) | func (s *Server) handleHealthzGet(w http.ResponseWriter, r *http.Request) { method handleAdminShutdown (line 412) | func (s *Server) handleAdminShutdown(w http.ResponseWriter, r *http.Requ... FILE: pkg/collector/api/server/inputs.go method handleConfigInputsGet (line 14) | func (s *Server) handleConfigInputsGet(w http.ResponseWriter, r *http.Re... method handleConfigInputsPost (line 51) | func (s *Server) handleConfigInputsPost(w http.ResponseWriter, r *http.R... method handleConfigInputsProcessorsPatch (line 151) | func (s *Server) handleConfigInputsProcessorsPatch(w http.ResponseWriter... method handleConfigInputsOutputsPatch (line 156) | func (s *Server) handleConfigInputsOutputsPatch(w http.ResponseWriter, r... method handleConfigInputsDelete (line 161) | func (s *Server) handleConfigInputsDelete(w http.ResponseWriter, r *http... FILE: pkg/collector/api/server/metrics.go method registerMetrics (line 5) | func (s *Server) registerMetrics() { FILE: pkg/collector/api/server/outputs.go method handleConfigOutputsGet (line 16) | func (s *Server) handleConfigOutputsGet(w http.ResponseWriter, r *http.R... method handleConfigOutputsPost (line 65) | func (s *Server) handleConfigOutputsPost(w http.ResponseWriter, r *http.... method handleConfigOutputsProcessorsPatch (line 135) | func (s *Server) handleConfigOutputsProcessorsPatch(w http.ResponseWrite... method handleConfigOutputsDelete (line 140) | func (s *Server) handleConfigOutputsDelete(w http.ResponseWriter, r *htt... FILE: pkg/collector/api/server/processors.go type ProcessorConfigResponse (line 12) | type ProcessorConfigResponse struct type ProcessorConfigRequest (line 18) | type ProcessorConfigRequest struct method handleConfigProcessorsGet (line 24) | func (s *Server) handleConfigProcessorsGet(w http.ResponseWriter, r *htt... method handleConfigProcessorsPost (line 101) | func (s *Server) handleConfigProcessorsPost(w http.ResponseWriter, r *ht... method handleConfigProcessorsDelete (line 143) | func (s *Server) handleConfigProcessorsDelete(w http.ResponseWriter, r *... FILE: pkg/collector/api/server/routes.go method routes (line 10) | func (s *Server) routes() { method healthRoutes (line 27) | func (s *Server) healthRoutes(r *mux.Router) { method adminRoutes (line 31) | func (s *Server) adminRoutes(r *mux.Router) { method clusterRoutes (line 35) | func (s *Server) clusterRoutes(r *mux.Router) { method configRoutes (line 47) | func (s *Server) configRoutes(r *mux.Router) { method targetRoutes (line 87) | func (s *Server) targetRoutes(r *mux.Router) { method subscriptionRoutes (line 93) | func (s *Server) subscriptionRoutes(r *mux.Router) { method outputsRoutes (line 98) | func (s *Server) outputsRoutes(r *mux.Router) { method inputsRoutes (line 106) | func (s *Server) inputsRoutes(r *mux.Router) { method processorsRoutes (line 113) | func (s *Server) processorsRoutes(r *mux.Router) { method assignmentRoutes (line 120) | func (s *Server) assignmentRoutes(r *mux.Router) { method sseRoutes (line 127) | func (s *Server) sseRoutes(r *mux.Router) { FILE: pkg/collector/api/server/sse.go type sseEvent (line 26) | type sseEvent struct method handleSSE (line 47) | func (s *Server) handleSSE(w http.ResponseWriter, r *http.Request) { method sendSSEEvent (line 138) | func (s *Server) sendSSEEvent(w http.ResponseWriter, flusher http.Flushe... FILE: pkg/collector/api/server/subscriptions.go method handleConfigSubscriptionsGet (line 15) | func (s *Server) handleConfigSubscriptionsGet(w http.ResponseWriter, r *... method handleConfigSubscriptionsPost (line 73) | func (s *Server) handleConfigSubscriptionsPost(w http.ResponseWriter, r ... method handleConfigSubscriptionsDelete (line 116) | func (s *Server) handleConfigSubscriptionsDelete(w http.ResponseWriter, ... type SubscriptionResponse (line 134) | type SubscriptionResponse struct type TargetStateInfo (line 141) | type TargetStateInfo struct method handleSubscriptionsGet (line 147) | func (s *Server) handleSubscriptionsGet(w http.ResponseWriter, r *http.R... FILE: pkg/collector/api/server/targets.go method handleConfigTargetsGet (line 18) | func (s *Server) handleConfigTargetsGet(w http.ResponseWriter, r *http.R... method handleConfigTargetsPost (line 68) | func (s *Server) handleConfigTargetsPost(w http.ResponseWriter, r *http.... method handleConfigTargetsSubscriptionsPatch (line 161) | func (s *Server) handleConfigTargetsSubscriptionsPatch(w http.ResponseWr... method handleConfigTargetsOutputsPatch (line 228) | func (s *Server) handleConfigTargetsOutputsPatch(w http.ResponseWriter, ... method handleConfigTargetsDelete (line 283) | func (s *Server) handleConfigTargetsDelete(w http.ResponseWriter, r *htt... type TargetResponse (line 295) | type TargetResponse struct method handleTargetsGet (line 301) | func (s *Server) handleTargetsGet(w http.ResponseWriter, r *http.Request) { function targetResponseFromState (line 335) | func targetResponseFromState(name string, cfg *types.TargetConfig, ts *c... method handleTargetsStatePost (line 344) | func (s *Server) handleTargetsStatePost(w http.ResponseWriter, r *http.R... FILE: pkg/collector/api/server/tunnel_target_match.go constant tunnelTargetMatchesPath (line 14) | tunnelTargetMatchesPath = "tunnel-target-matches" method handleConfigTunnelTargetMatchesGet (line 17) | func (s *Server) handleConfigTunnelTargetMatchesGet(w http.ResponseWrite... method handleConfigTunnelTargetMatchesPost (line 54) | func (s *Server) handleConfigTunnelTargetMatchesPost(w http.ResponseWrit... method handleConfigTunnelTargetMatchesDelete (line 78) | func (s *Server) handleConfigTunnelTargetMatchesDelete(w http.ResponseWr... FILE: pkg/collector/collector.go constant defaultPipelineBufferSize (line 39) | defaultPipelineBufferSize = 1_000_000 constant initLockerRetryTimer (line 40) | initLockerRetryTimer = 1 * time.Second type Collector (line 43) | type Collector struct method Start (line 93) | func (c *Collector) Start() error { method Stop (line 141) | func (c *Collector) Stop() { method getLocker (line 150) | func (c *Collector) getLocker() error { method CollectorPreRunE (line 181) | func (c *Collector) CollectorPreRunE(cmd *cobra.Command, args []string... method CollectorRunE (line 214) | func (c *Collector) CollectorRunE(cmd *cobra.Command, _ []string) error { method InitCollectorFlags (line 222) | func (c *Collector) InitCollectorFlags(cmd *cobra.Command) { method initCache (line 228) | func (c *Collector) initCache() error { function New (line 63) | func New(ctx context.Context, configStore store.Store[any]) *Collector { FILE: pkg/collector/env/env.go function ExpandClusterEnv (line 11) | func ExpandClusterEnv(clusteringConfig *config.Clustering) { function ExpandAPIEnv (line 28) | func ExpandAPIEnv(apiConfig *config.APIServer) { function expandLockerEnv (line 42) | func expandLockerEnv(locker map[string]any) { function expandMapEnv (line 46) | func expandMapEnv(m map[string]any) { function expandSliceEnv (line 70) | func expandSliceEnv(s []any) { FILE: pkg/collector/env/env_test.go function TestExpandClusterEnv (line 12) | func TestExpandClusterEnv(t *testing.T) { function TestExpandAPIEnv (line 183) | func TestExpandAPIEnv(t *testing.T) { FILE: pkg/collector/managers/cluster/assigner.go type Assignment (line 17) | type Assignment struct type assignmentConfig (line 22) | type assignmentConfig struct type Assigner (line 27) | type Assigner interface constant httpScheme (line 33) | httpScheme = "http" constant httpsScheme (line 34) | httpsScheme = "https" constant protocolLabel (line 35) | protocolLabel = "__protocol" type restAssigner (line 38) | type restAssigner struct method Assign (line 54) | func (p *restAssigner) Assign(ctx context.Context, targetToMember map[... method assignOne (line 78) | func (p *restAssigner) assignOne(ctx context.Context, address string, ... method Unassign (line 101) | func (p *restAssigner) Unassign(ctx context.Context, member *Member, t... function NewAssigner (line 44) | func NewAssigner(store *collstore.Store) Assigner { FILE: pkg/collector/managers/cluster/cluster_manager.go constant protocolTagName (line 30) | protocolTagName = "__protocol" constant retryRegistrationBackoff (line 31) | retryRegistrationBackoff = 2 * time.Second type ClusterManager (line 34) | type ClusterManager struct method Start (line 73) | func (c *ClusterManager) Start(ctx context.Context, locker lockers.Loc... method Stop (line 159) | func (c *ClusterManager) Stop() error { method runCampaign (line 166) | func (c *ClusterManager) runCampaign(ctx context.Context) error { method startRegistration (line 232) | func (c *ClusterManager) startRegistration(ctx context.Context) error { method runLeader (line 268) | func (c *ClusterManager) runLeader(ctx context.Context) error { method WithdrawLeader (line 357) | func (c *ClusterManager) WithdrawLeader(ctx context.Context, cooldown ... method IsLeader (line 362) | func (c *ClusterManager) IsLeader(ctx context.Context) (bool, error) { method snapshotMembers (line 370) | func (c *ClusterManager) snapshotMembers() map[string]*Member { method reconcileAssignments (line 378) | func (c *ClusterManager) reconcileAssignments(ctx context.Context, mem... method handleTargetCreate (line 443) | func (c *ClusterManager) handleTargetCreate(ctx context.Context, targe... method assignTarget (line 459) | func (c *ClusterManager) assignTarget(ctx context.Context, target stri... method getAssignments (line 476) | func (c *ClusterManager) getAssignments(ctx context.Context) (map[stri... method getAssignment (line 499) | func (c *ClusterManager) getAssignment(ctx context.Context, target str... method GetMembers (line 510) | func (c *ClusterManager) GetMembers(ctx context.Context) (map[string]*... method populateMemberLoad (line 519) | func (c *ClusterManager) populateMemberLoad(ctx context.Context, membe... method getMembersLoad (line 559) | func (c *ClusterManager) getMembersLoad(ctx context.Context) (map[stri... method getLeastLoadedMember (line 576) | func (c *ClusterManager) getLeastLoadedMember(assignments map[string]*... method getMostLoadedMember (line 590) | func (c *ClusterManager) getMostLoadedMember(members map[string]*Membe... method handleTargetDelete (line 603) | func (c *ClusterManager) handleTargetDelete(ctx context.Context, targe... method deleteTargetFromMembers (line 630) | func (c *ClusterManager) deleteTargetFromMembers(ctx context.Context, ... method targetLockHolder (line 653) | func (c *ClusterManager) targetLockHolder(ctx context.Context, target ... method GetInstanceToTargetsMapping (line 667) | func (c *ClusterManager) GetInstanceToTargetsMapping(ctx context.Conte... method GetLeaderName (line 685) | func (c *ClusterManager) GetLeaderName(ctx context.Context) (string, e... method DrainMember (line 697) | func (c *ClusterManager) DrainMember(ctx context.Context, toBeDrained ... method asyncVerifyLock (line 731) | func (c *ClusterManager) asyncVerifyLock(ctx context.Context, target, ... function NewClusterManager (line 61) | func NewClusterManager(store *collstore.Store) *ClusterManager { FILE: pkg/collector/managers/cluster/election.go constant recampaignBackoff (line 18) | recampaignBackoff = 200 * time.Millisecond constant recampaignJitterRatio (line 19) | recampaignJitterRatio = 0.2 type Election (line 22) | type Election interface type election (line 32) | type election struct method Campaign (line 82) | func (e *election) Campaign(ctx context.Context) (term int64, err erro... method Observe (line 149) | func (e *election) Observe(ctx context.Context) <-chan struct{} { method Withdraw (line 156) | func (e *election) Withdraw() error { method leaderKey (line 187) | func (e *election) leaderKey() string { method keepalive (line 193) | func (e *election) keepalive(ctx context.Context, key string) { method signalLoss (line 218) | func (e *election) signalLoss() { function NewElection (line 51) | func NewElection(locker lockers.Locker, clustering *config.Clustering, l... function tryAcquire (line 243) | func tryAcquire(ctx context.Context, lk lockers.Locker, key string, hold... function renew (line 292) | func renew(ctx context.Context, lk lockers.Locker, key string, holder []... function holder (line 306) | func holder(ctx context.Context, lk lockers.Locker, key string) (string,... FILE: pkg/collector/managers/cluster/membership.go constant apiServiceName (line 15) | apiServiceName = "gnmic-api" type Membership (line 18) | type Membership interface type Registration (line 24) | type Registration struct type Member (line 32) | type Member struct method String (line 40) | func (m *Member) String() string { type membership (line 45) | type membership struct method GetMembers (line 56) | func (m *membership) GetMembers(ctx context.Context) (map[string]*Memb... method Watch (line 72) | func (m *membership) Watch(ctx context.Context) (<-chan map[string]*Me... method Register (line 109) | func (m *membership) Register(ctx context.Context, clusterName string,... method serviceName (line 125) | func (m *membership) serviceName() string { function NewMembership (line 52) | func NewMembership(locker lockers.Locker, config *config.Clustering, log... FILE: pkg/collector/managers/cluster/placement.go function pickAssignee (line 10) | func pickAssignee( function tieBreak (line 34) | func tieBreak(targetName, memberA, memberB string) bool { function fnv64 (line 48) | func fnv64(s string) uint64 { FILE: pkg/collector/managers/cluster/rebalance.go method RebalanceTargets (line 11) | func (c *ClusterManager) RebalanceTargets(ctx context.Context) error { method RebalanceTargetsV2 (line 80) | func (c *ClusterManager) RebalanceTargetsV2() error { function rebalance (line 144) | func rebalance(members map[string]*Member) map[string]*Member { function calculateMembersQuota (line 249) | func calculateMembersQuota(members map[string]*Member, total int64) map[... type donor (line 280) | type donor struct type receiver (line 289) | type receiver struct FILE: pkg/collector/managers/cluster/utils.go function targetsLockPrefix (line 10) | func targetsLockPrefix(clusterName string) string { function targetLockKey (line 14) | func targetLockKey(target, clusterName string) string { function GetAPIScheme (line 18) | func GetAPIScheme(member *Member) string { function getMemberAddress (line 35) | func getMemberAddress(member *Member) string { function jittered (line 39) | func jittered(d time.Duration) time.Duration { FILE: pkg/collector/managers/inputs/inputs_manager.go type ManagedInput (line 19) | type ManagedInput struct method updateProcessor (line 258) | func (mi *ManagedInput) updateProcessor(name string, cfg map[string]an... type InputsManager (line 26) | type InputsManager struct method Start (line 49) | func (mgr *InputsManager) Start(wg *sync.WaitGroup) error { method Stop (line 111) | func (mgr *InputsManager) Stop() { method createInput (line 123) | func (mgr *InputsManager) createInput(name string, cfg map[string]any) { method updateInput (line 148) | func (mgr *InputsManager) updateInput(name string, cfg map[string]any) { method DeleteInput (line 174) | func (mgr *InputsManager) DeleteInput(name string) error { method trackProcessorsInUse (line 217) | func (mgr *InputsManager) trackProcessorsInUse(in string, procs []stri... method untrackProcessorsInUse (line 226) | func (mgr *InputsManager) untrackProcessorsInUse(in string, procs []st... method ProcessorInUse (line 237) | func (mgr *InputsManager) ProcessorInUse(name string) bool { method updateProcessor (line 247) | func (mgr *InputsManager) updateProcessor(name string, cfg map[string]... method setInputState (line 266) | func (mgr *InputsManager) setInputState(name, state, failedReason stri... method GetInputState (line 280) | func (mgr *InputsManager) GetInputState(name string) *collstore.InputS... method ListInputStates (line 293) | func (mgr *InputsManager) ListInputStates() []*collstore.InputState { function NewInputsManager (line 38) | func NewInputsManager(ctx context.Context, store *collstore.Store, pipel... function extractProcessors (line 196) | func extractProcessors(cfg map[string]any) []string { FILE: pkg/collector/managers/outputs/outputs_manager.go type ManagedOutput (line 24) | type ManagedOutput struct method updateProcessor (line 192) | func (mo *ManagedOutput) updateProcessor(name string, cfg map[string]a... type OutputsManager (line 32) | type OutputsManager struct method Start (line 67) | func (mgr *OutputsManager) Start(cache cache.Cache, wg *sync.WaitGroup... method writeLoop (line 139) | func (mgr *OutputsManager) writeLoop(wg *sync.WaitGroup) { method write (line 159) | func (mgr *OutputsManager) write(e *pipeline.Msg) { method updateProcessor (line 181) | func (mgr *OutputsManager) updateProcessor(name string, cfg map[string... method getOutputsForTarget (line 198) | func (mgr *OutputsManager) getOutputsForTarget(outputs map[string]stru... method createOutput (line 222) | func (mgr *OutputsManager) createOutput(name string, cfg map[string]an... method updateOutput (line 266) | func (mgr *OutputsManager) updateOutput(name string, cfg map[string]an... method StopOutput (line 293) | func (mgr *OutputsManager) StopOutput(name string) error { method DeleteOutput (line 313) | func (mgr *OutputsManager) DeleteOutput(name string) error { method Stop (line 335) | func (mgr *OutputsManager) Stop() { method registerMetrics (line 364) | func (mgr *OutputsManager) registerMetrics() { method WriteToCache (line 372) | func (mgr *OutputsManager) WriteToCache(ctx context.Context, msg *pipe... method trackProcessorsInUse (line 425) | func (mgr *OutputsManager) trackProcessorsInUse(out string, procs []st... method untrackProcessorsInUse (line 434) | func (mgr *OutputsManager) untrackProcessorsInUse(out string, procs []... method ProcessorInUse (line 445) | func (mgr *OutputsManager) ProcessorInUse(name string) bool { method setOutputState (line 457) | func (mgr *OutputsManager) setOutputState(name, state, failedReason st... method getOutputStateStr (line 470) | func (mgr *OutputsManager) getOutputStateStr(name string) string { method GetOutputState (line 479) | func (mgr *OutputsManager) GetOutputState(name string) *collstore.Outp... method ListOutputStates (line 492) | func (mgr *OutputsManager) ListOutputStates() []*collstore.OutputState { type outputStats (line 49) | type outputStats struct function NewOutputsManager (line 54) | func NewOutputsManager(ctx context.Context, store *collstore.Store, pipe... function newOutputStats (line 347) | func newOutputStats() *outputStats { function addTargetToMsg (line 390) | func addTargetToMsg(msg proto.Message, targetName string) proto.Message { function extractProcessors (line 404) | func extractProcessors(cfg map[string]any) []string { FILE: pkg/collector/managers/targets/cluster.go method isClustering (line 10) | func (tm *TargetsManager) isClustering() (*config.Clustering, bool, erro... method amIAssigned (line 25) | func (tm *TargetsManager) amIAssigned(name string) bool { method setAssigned (line 35) | func (tm *TargetsManager) setAssigned(name string, v bool) { method targetLockKey (line 69) | func (tm *TargetsManager) targetLockKey(target string) string { FILE: pkg/collector/managers/targets/loader.go method initLoader (line 10) | func (tm *TargetsManager) initLoader(cfg map[string]any) (loaders.Target... method startLoader (line 28) | func (tm *TargetsManager) startLoader(ctx context.Context, loader loader... FILE: pkg/collector/managers/targets/metrics.go constant targetMetricsUpdatePeriod (line 10) | targetMetricsUpdatePeriod = 10 * time.Second type targetConnectionState (line 13) | type targetConnectionState method String (line 51) | func (tcs targetConnectionState) String() string { constant targetConnectionStateUnknown (line 16) | targetConnectionStateUnknown targetConnectionState = iota constant targetConnectionStateIdle (line 17) | targetConnectionStateIdle constant targetConnectionStateConnecting (line 18) | targetConnectionStateConnecting constant targetConnectionStateReady (line 19) | targetConnectionStateReady constant targetConnectionStateTransientFailure (line 20) | targetConnectionStateTransientFailure constant targetConnectionStateShutdown (line 21) | targetConnectionStateShutdown constant targetConnectionStateUnknownStr (line 25) | targetConnectionStateUnknownStr = "UNKNOWN" constant targetConnectionStateIdleStr (line 26) | targetConnectionStateIdleStr = "IDLE" constant targetConnectionStateConnectingStr (line 27) | targetConnectionStateConnectingStr = "CONNECTING" constant targetConnectionStateReadyStr (line 28) | targetConnectionStateReadyStr = "READY" constant targetConnectionStateTransientFailureStr (line 29) | targetConnectionStateTransientFailureStr = "TRANSIENT_FAILURE" constant targetConnectionStateShutdownStr (line 30) | targetConnectionStateShutdownStr = "SHUTDOWN" function targetConnectionStateFromStr (line 33) | func targetConnectionStateFromStr(str string) targetConnectionState { type targetsStats (line 69) | type targetsStats struct constant subscriptionRequestErrorTypeUnknown (line 78) | subscriptionRequestErrorTypeUnknown string = "UNKNOWN" constant subscriptionRequestErrorTypeCONFIG (line 79) | subscriptionRequestErrorTypeCONFIG string = "CONFIG_ERROR" constant subscriptionRequestErrorTypeGRPC (line 80) | subscriptionRequestErrorTypeGRPC string = "GRPC_ERROR" function newTargetsStats (line 83) | func newTargetsStats() *targetsStats { method registerMetrics (line 118) | func (tm *TargetsManager) registerMetrics() { method updateTargetMetrics (line 149) | func (tm *TargetsManager) updateTargetMetrics(mt *ManagedTarget) { FILE: pkg/collector/managers/targets/targets_manager.go type ManagedTarget (line 36) | type ManagedTarget struct method setLastError (line 55) | func (mt *ManagedTarget) setLastError(msg string) { method getLastError (line 61) | func (mt *ManagedTarget) getLastError() string { method clearLastError (line 67) | func (mt *ManagedTarget) clearLastError() { function newManagedTarget (line 73) | func newManagedTarget(name string, cfg *types.TargetConfig, tunServer *t... type TargetsManager (line 92) | type TargetsManager struct method Start (line 135) | func (tm *TargetsManager) Start(locker lockers.Locker, wg *sync.WaitGr... method Stop (line 305) | func (tm *TargetsManager) Stop() { method apply (line 312) | func (tm *TargetsManager) apply(name string, cfg *types.TargetConfig) { method start (line 443) | func (tm *TargetsManager) start(mt *ManagedTarget) error { method targetGRPCOpts (line 561) | func (tm *TargetsManager) targetGRPCOpts(ctx context.Context, mt *Mana... method tunDialerFn (line 568) | func (tm *TargetsManager) tunDialerFn(ctx context.Context, mt *Managed... method stop (line 582) | func (tm *TargetsManager) stop(mt *ManagedTarget) error { method remove (line 618) | func (tm *TargetsManager) remove(name string) { method applySubscription (line 636) | func (tm *TargetsManager) applySubscription(name string, cfg types.Sub... method removeSubscription (line 675) | func (tm *TargetsManager) removeSubscription(name string) { method reconcileAssignment (line 692) | func (tm *TargetsManager) reconcileAssignment(name string) { method getConfig (line 745) | func (tm *TargetsManager) getConfig(name string) (*types.TargetConfig,... method Lookup (line 754) | func (tm *TargetsManager) Lookup(name string) *ManagedTarget { method ForEach (line 760) | func (tm *TargetsManager) ForEach(fn func(*ManagedTarget)) { method SetIntendedState (line 768) | func (tm *TargetsManager) SetIntendedState(name string, state string) ... method GetIntendedState (line 794) | func (tm *TargetsManager) GetIntendedState(name string) string { method startTargetSubscription (line 802) | func (tm *TargetsManager) startTargetSubscription(mt *ManagedTarget, c... method compareSubscriptions (line 925) | func (tm *TargetsManager) compareSubscriptions(old, new []string) (add... method compareOutputs (line 964) | func (tm *TargetsManager) compareOutputs(old, new *types.TargetConfig)... method watchConnState (line 1096) | func (tm *TargetsManager) watchConnState(ctx context.Context, mt *Mana... method setTargetState (line 1129) | func (tm *TargetsManager) setTargetState(name, state string) { method getTargetStateStr (line 1166) | func (tm *TargetsManager) getTargetStateStr(name string) string { method GetTargetState (line 1175) | func (tm *TargetsManager) GetTargetState(name string) *collstore.Targe... method ListTargetStates (line 1188) | func (tm *TargetsManager) ListTargetStates() []*collstore.TargetState { function NewTargetsManager (line 115) | func NewTargetsManager(ctx context.Context, store *collstore.Store, pipe... function shouldReconnect (line 911) | func shouldReconnect(old, new *types.TargetConfig) bool { function keys (line 1005) | func keys[T any](m map[string]T) []string { type connSpec (line 1014) | type connSpec struct function hashConnSpec (line 1043) | func hashConnSpec(cfg *types.TargetConfig) (uint64, error) { function connSpecFrom (line 1054) | func connSpecFrom(tc *types.TargetConfig) connSpec { function val (line 1085) | func val[T any](p *T) T { FILE: pkg/collector/managers/targets/tunnel_server.go type tunnelServerConfig (line 29) | type tunnelServerConfig struct type tunnelServer (line 38) | type tunnelServer struct method gRPCTunnelServerOpts (line 64) | func (ts *tunnelServer) gRPCTunnelServerOpts() ([]grpc.ServerOption, e... method startTunnelServer (line 100) | func (ts *tunnelServer) startTunnelServer(ctx context.Context) error { method addTargetHandler (line 195) | func (ts *tunnelServer) addTargetHandler(tt tunnel.Target) error { method deleteTargetHandler (line 217) | func (ts *tunnelServer) deleteTargetHandler(tt tunnel.Target) error { method registerHandler (line 232) | func (ts *tunnelServer) registerHandler(ss tunnel.ServerSession) error { method serverHandler (line 236) | func (ts *tunnelServer) serverHandler(ss tunnel.ServerSession, rwc io.... method getTunnelTargetMatch (line 240) | func (ts *tunnelServer) getTunnelTargetMatch(tt tunnel.Target) *types.... method watchTunnelTargetMatches (line 305) | func (ts *tunnelServer) watchTunnelTargetMatches(ctx context.Context, ... method reconcileConnectedTargets (line 338) | func (ts *tunnelServer) reconcileConnectedTargets() { function newTunnelServer (line 53) | func newTunnelServer(s store.Store[any], reg *prometheus.Registry) *tunn... FILE: pkg/collector/store/store.go type Store (line 19) | type Store struct function NewStore (line 26) | func NewStore(configStore zstore.Store[any]) *Store { FILE: pkg/collector/store/types.go constant IntendedStateEnabled (line 15) | IntendedStateEnabled = "enabled" constant IntendedStateDisabled (line 16) | IntendedStateDisabled = "disabled" constant StateRunning (line 18) | StateRunning = "running" constant StateStopped (line 19) | StateStopped = "stopped" constant StateStarting (line 20) | StateStarting = "starting" constant StateFailed (line 21) | StateFailed = "failed" constant StatePaused (line 22) | StatePaused = "paused" constant StateStopping (line 23) | StateStopping = "stopping" constant KindTargets (line 28) | KindTargets = "targets" constant KindOutputs (line 29) | KindOutputs = "outputs" constant KindInputs (line 30) | KindInputs = "inputs" constant KindSubscriptions (line 31) | KindSubscriptions = "subscriptions" constant KindProcessors (line 32) | KindProcessors = "processors" constant KindAssignments (line 33) | KindAssignments = "assignments" constant KindTunnelTargetMatches (line 34) | KindTunnelTargetMatches = "tunnel-target-matches" type ComponentState (line 38) | type ComponentState struct type TargetState (line 47) | type TargetState struct type OutputState (line 54) | type OutputState struct type InputState (line 59) | type InputState struct type SubscriptionState (line 64) | type SubscriptionState struct FILE: pkg/config/actions.go method GetActions (line 17) | func (c *Config) GetActions() (map[string]map[string]interface{}, error) { method validateActionsConfig (line 55) | func (c *Config) validateActionsConfig(acfg map[string]interface{}) error { FILE: pkg/config/api_server.go constant defaultAPIServerAddress (line 20) | defaultAPIServerAddress = ":7890" constant defaultAPIServerTimeout (line 21) | defaultAPIServerTimeout = 10 * time.Second constant trueString (line 22) | trueString = "true" type APIServer (line 25) | type APIServer struct method GetAPIServer (line 35) | func (c *Config) GetAPIServer() error { method setAPIServerDefaults (line 64) | func (c *Config) setAPIServerDefaults() { FILE: pkg/config/clustering.go constant minTargetWatchTimer (line 21) | minTargetWatchTimer = 20 * time.Second constant defaultTargetAssignmentTimeout (line 22) | defaultTargetAssignmentTimeout = 10 * time.Second constant defaultServicesWatchTimer (line 23) | defaultServicesWatchTimer = 1 * time.Minute constant defaultLeaderWaitTimer (line 24) | defaultLeaderWaitTimer = 5 * time.Second type Clustering (line 27) | type Clustering struct method GetClustering (line 40) | func (c *Config) GetClustering() error { method setClusteringDefaults (line 70) | func (c *Config) setClusteringDefaults() { FILE: pkg/config/config.go constant configName (line 43) | configName = ".gnmic" constant configLogPrefix (line 44) | configLogPrefix = "[config] " constant envPrefix (line 45) | envPrefix = "GNMIC" constant trimChars (line 46) | trimChars = " \r\n\t" type Config (line 53) | type Config struct method Load (line 304) | func (c *Config) Load(ctx context.Context) error { method ToStore (line 347) | func (c *Config) ToStore(s store.Store[any]) error { method SetLogger (line 443) | func (c *Config) SetLogger() (io.Writer, int, error) { method SetPersistentFlagsFromFile (line 478) | func (c *Config) SetPersistentFlagsFromFile(cmd *cobra.Command) { method SetLocalFlagsFromFile (line 502) | func (c *Config) SetLocalFlagsFromFile(cmd *cobra.Command) { method setFlagValue (line 515) | func (c *Config) setFlagValue(cmd *cobra.Command, fName string, val in... method CreateGetRequest (line 550) | func (c *Config) CreateGetRequest(tc *types.TargetConfig) (*gnmi.GetRe... method CreateGASGetRequest (line 583) | func (c *Config) CreateGASGetRequest() (*gnmi.GetRequest, error) { method CreateGASSetRequest (line 595) | func (c *Config) CreateGASSetRequest(input interface{}) (*gnmi.SetRequ... method execPathTemplate (line 637) | func (c *Config) execPathTemplate(tplString string, input interface{})... method execValueTemplate (line 677) | func (c *Config) execValueTemplate(tplString string, input interface{}... method CreateSetRequest (line 717) | func (c *Config) CreateSetRequest(targetName string) ([]*gnmi.SetReque... method ValidateSetInput (line 1022) | func (c *Config) ValidateSetInput() error { method expandOSPathFlagValues (line 1124) | func (c *Config) expandOSPathFlagValues() error { type GlobalFlags (line 77) | type GlobalFlags struct type LocalFlags (line 132) | type LocalFlags struct function New (line 282) | func New() *Config { function flagIsSet (line 536) | func flagIsSet(cmd *cobra.Command, name string) bool { function readFile (line 958) | func readFile(name string) ([]byte, error) { function toJSONBytes (line 971) | func toJSONBytes(data []byte) ([]byte, error) { function SanitizeArrayFlagValue (line 994) | func SanitizeArrayFlagValue(ls []string) []string { function ParseAddressField (line 1008) | func ParseAddressField(addr []string) []string { function ExpandOSPaths (line 1085) | func ExpandOSPaths(paths []string) ([]string, error) { function expandOSPath (line 1096) | func expandOSPath(p string) (string, error) { function trimQuotes (line 1137) | func trimQuotes(s string) string { FILE: pkg/config/config_test.go function TestCreateGetRequest (line 586) | func TestCreateGetRequest(t *testing.T) { function TestCreateSetRequest (line 607) | func TestCreateSetRequest(t *testing.T) { function TestExecPathTemplate (line 627) | func TestExecPathTemplate(t *testing.T) { FILE: pkg/config/diff.go method CreateDiffSubscribeRequest (line 23) | func (c *Config) CreateDiffSubscribeRequest(cmd *cobra.Command) (*gnmi.S... method CreateDiffGetRequest (line 39) | func (c *Config) CreateDiffGetRequest() (*gnmi.GetRequest, error) { FILE: pkg/config/environment.go function envToMap (line 19) | func envToMap() map[string]any { function mergeMap (line 36) | func mergeMap(m map[string]any, items []string, v any) { method mergeEnvVars (line 55) | func (c *Config) mergeEnvVars() { method SetGlobalsFromEnv (line 63) | func (c *Config) SetGlobalsFromEnv(cmd *cobra.Command) { function expandMapEnv (line 84) | func expandMapEnv(m map[string]interface{}, fn func(string, string) stri... function expandSliceEnv (line 108) | func expandSliceEnv(parent string, s []any, fn func(string, string) stri... function expandExcept (line 121) | func expandExcept(except ...string) func(string, string) string { function expandAll (line 132) | func expandAll() func(string, string) string { FILE: pkg/config/gnmi_ext.go function createAdditionalRequestExtensions (line 16) | func createAdditionalRequestExtensions( method parseAdditionalRequestExtensions (line 91) | func (c *Config) parseAdditionalRequestExtensions() ([]api.GNMIOption, e... FILE: pkg/config/gnmi_server.go constant defaultAddress (line 23) | defaultAddress = ":57400" constant defaultMaxSubscriptions (line 24) | defaultMaxSubscriptions = 64 constant defaultMaxUnaryRPC (line 25) | defaultMaxUnaryRPC = 64 constant minimumSampleInterval (line 26) | minimumSampleInterval = 1 * time.Millisecond constant defaultSampleInterval (line 27) | defaultSampleInterval = 1 * time.Second constant minimumHeartbeatInterval (line 28) | minimumHeartbeatInterval = 1 * time.Second constant defaultServiceRegistrationAddress (line 30) | defaultServiceRegistrationAddress = "localhost:8500" constant defaultRegistrationCheckInterval (line 31) | defaultRegistrationCheckInterval = 5 * time.Second constant defaultMaxServiceFail (line 32) | defaultMaxServiceFail = 3 type GNMIServer (line 35) | type GNMIServer struct type serviceRegistration (line 58) | type serviceRegistration struct type grpcKeepaliveConfig (line 73) | type grpcKeepaliveConfig struct method Convert (line 97) | func (gkc *grpcKeepaliveConfig) Convert() *keepalive.ServerParameters { method GetGNMIServer (line 110) | func (c *Config) GetGNMIServer() error { method setGnmiServerDefaults (line 183) | func (c *Config) setGnmiServerDefaults() { method setGnmiServerServiceRegistrationDefaults (line 204) | func (c *Config) setGnmiServerServiceRegistrationDefaults() { FILE: pkg/config/inputs.go method GetInputs (line 18) | func (c *Config) GetInputs() (map[string]map[string]interface{}, error) { FILE: pkg/config/loader.go method GetLoader (line 21) | func (c *Config) GetLoader() error { FILE: pkg/config/locker.go method getLocker (line 18) | func (c *Config) getLocker() error { FILE: pkg/config/outputs.go method GetOutputs (line 20) | func (c *Config) GetOutputs() (map[string]map[string]any, error) { function convert (line 84) | func convert(i interface{}) interface{} { type outputSuggestion (line 104) | type outputSuggestion struct method GetOutputsSuggestions (line 109) | func (c *Config) GetOutputsSuggestions() []outputSuggestion { method GetOutputsConfigs (line 134) | func (c *Config) GetOutputsConfigs() [][]string { FILE: pkg/config/outputs_test.go function TestGetOutputs (line 73) | func TestGetOutputs(t *testing.T) { FILE: pkg/config/plugins.go type PluginsConfig (line 7) | type PluginsConfig struct method GetPluginsConfig (line 14) | func (c *Config) GetPluginsConfig() (*PluginsConfig, error) { FILE: pkg/config/processors.go method GetEventProcessors (line 17) | func (c *Config) GetEventProcessors() (map[string]map[string]interface{}... method validateProcessorConfig (line 57) | func (c *Config) validateProcessorConfig(pcfg map[string]interface{}) er... function strInlist (line 66) | func strInlist(s string, ls []string) bool { FILE: pkg/config/processors_test.go function TestGetProcessors (line 105) | func TestGetProcessors(t *testing.T) { FILE: pkg/config/set.go constant varFileSuffix (line 34) | varFileSuffix = "_vars" type UpdateItem (line 37) | type UpdateItem struct type SetRequestFile (line 43) | type SetRequestFile struct type commitAction (line 53) | type commitAction constant commitActionRequest (line 56) | commitActionRequest commitAction = "request" constant commitActionCancel (line 57) | commitActionCancel commitAction = "cancel" constant commitActionConfirm (line 58) | commitActionConfirm commitAction = "confirm" constant commitActionSetRollbackDuration (line 59) | commitActionSetRollbackDuration commitAction = "set-rollback-duration" method ReadSetRequestTemplate (line 62) | func (c *Config) ReadSetRequestTemplate() error { method readTemplateVarsFile (line 84) | func (c *Config) readTemplateVarsFile() error { method CreateSetRequestFromFile (line 121) | func (c *Config) CreateSetRequestFromFile(targetName string) ([]*gnmi.Se... type templateInput (line 277) | type templateInput struct method CreateSetRequestFromProtoFile (line 282) | func (c *Config) CreateSetRequestFromProtoFile() ([]*gnmi.SetRequest, er... FILE: pkg/config/set_test.go function TestCreateSetRequestFromFile (line 474) | func TestCreateSetRequestFromFile(t *testing.T) { FILE: pkg/config/subscriptions.go constant SubscriptionMode_STREAM (line 27) | SubscriptionMode_STREAM = "STREAM" constant SubscriptionMode_ONCE (line 28) | SubscriptionMode_ONCE = "ONCE" constant SubscriptionMode_POLL (line 29) | SubscriptionMode_POLL = "POLL" constant SubscriptionStreamMode_TARGET_DEFINED (line 30) | SubscriptionStreamMode_TARGET_DEFINED = "TARGET_DEFINED" constant SubscriptionStreamMode_ON_CHANGE (line 31) | SubscriptionStreamMode_ON_CHANGE = "ON_CHANGE" constant SubscriptionStreamMode_SAMPLE (line 32) | SubscriptionStreamMode_SAMPLE = "SAMPLE" constant subscriptionDefaultMode (line 35) | subscriptionDefaultMode = SubscriptionMode_STREAM constant subscriptionDefaultStreamMode (line 36) | subscriptionDefaultStreamMode = SubscriptionStreamMode_TARGET_DEFINED constant subscriptionDefaultEncoding (line 37) | subscriptionDefaultEncoding = "JSON" method GetSubscriptions (line 42) | func (c *Config) GetSubscriptions(cmd *cobra.Command) (map[string]*types... method subscriptionConfigFromFlags (line 102) | func (c *Config) subscriptionConfigFromFlags(cmd *cobra.Command) (map[st... method decodeSubscriptionConfig (line 159) | func (c *Config) decodeSubscriptionConfig(sn string, s any, cmd *cobra.C... method setSubscriptionFieldsFromFlags (line 182) | func (c *Config) setSubscriptionFieldsFromFlags(sub *types.SubscriptionC... method GetSubscriptionsFromFile (line 230) | func (c *Config) GetSubscriptionsFromFile() []*types.SubscriptionConfig { function validateSubscriptionsConfig (line 245) | func validateSubscriptionsConfig(subs map[string]*types.SubscriptionConf... function expandSubscriptionEnv (line 265) | func expandSubscriptionEnv(sc *types.SubscriptionConfig) { FILE: pkg/config/subscriptions_test.go function mustParseTime (line 23) | func mustParseTime(tm string) time.Time { function TestGetSubscriptions (line 228) | func TestGetSubscriptions(t *testing.T) { FILE: pkg/config/targets.go constant defaultTargetBufferSize (line 26) | defaultTargetBufferSize = 100 method GetTargets (line 31) | func (c *Config) GetTargets() (map[string]*types.TargetConfig, error) { method SetTargetConfigDefaults (line 126) | func (c *Config) SetTargetConfigDefaults(tc *types.TargetConfig) error { function setTargetConfigDefaultsFromGlobalFlags (line 130) | func setTargetConfigDefaultsFromGlobalFlags(tc *types.TargetConfig, gfla... method SetTargetConfigDefaultsExpandEnv (line 219) | func (c *Config) SetTargetConfigDefaultsExpandEnv(tc *types.TargetConfig... method TargetsList (line 229) | func (c *Config) TargetsList() []*types.TargetConfig { function expandCertPaths (line 240) | func expandCertPaths(tc *types.TargetConfig) error { function expandTargetEnv (line 265) | func expandTargetEnv(tc *types.TargetConfig) { method GetDiffTargets (line 308) | func (c *Config) GetDiffTargets() (*types.TargetConfig, map[string]*type... function SetTargetConfigDefaults (line 347) | func SetTargetConfigDefaults(s store.Store[any], tc *types.TargetConfig)... function SetTargetConfigDefaultsExpandEnv (line 362) | func SetTargetConfigDefaultsExpandEnv(s store.Store[any], tc *types.Targ... FILE: pkg/config/targets_test.go function TestGetTargets (line 323) | func TestGetTargets(t *testing.T) { function TestSetTargetLoaderConfigDefaults (line 400) | func TestSetTargetLoaderConfigDefaults(t *testing.T) { FILE: pkg/config/tunnel_server.go constant defaultTargetWaitTime (line 23) | defaultTargetWaitTime = 2 * time.Second type TunnelServer (line 26) | type TunnelServer struct type TunnelTargetMatch (line 39) | type TunnelTargetMatch struct method GetTunnelServer (line 50) | func (c *Config) GetTunnelServer() error { method setTunnelServerDefaults (line 93) | func (c *Config) setTunnelServerDefaults() { FILE: pkg/file/file.go constant defaultFTPPort (line 34) | defaultFTPPort = 21 constant defaultSFTPPort (line 35) | defaultSFTPPort = 22 function ReadFile (line 42) | func ReadFile(ctx context.Context, path string) ([]byte, error) { function readHTTPFile (line 62) | func readHTTPFile(ctx context.Context, path string) ([]byte, error) { function readFTPFile (line 91) | func readFTPFile(ctx context.Context, path string) ([]byte, error) { function readSFTPFile (line 130) | func readSFTPFile(_ context.Context, path string, checkHostKey bool) ([]... function FileExists (line 221) | func FileExists(filename string) bool { FILE: pkg/formatters/event.go type EventMsg (line 31) | type EventMsg struct method String (line 39) | func (e *EventMsg) String() string { method ToMap (line 324) | func (e *EventMsg) ToMap() map[string]interface{} { function ResponseToEventMsgs (line 45) | func ResponseToEventMsgs(name string, rsp *gnmi.SubscribeResponse, meta ... function GetResponseToEventMsgs (line 75) | func GetResponseToEventMsgs(rsp *gnmi.GetResponse, meta map[string]strin... function updatesToEvent (line 94) | func updatesToEvent(name, prefix string, ts int64, upds []*gnmi.Update, ... function updateToEvent (line 109) | func updateToEvent(name, prefix string, ts int64, upd *gnmi.Update, tags... function deleteToEvent (line 146) | func deleteToEvent(name, prefix string, ts int64, del *gnmi.Path, tags m... function tagsFromGNMIPath (line 182) | func tagsFromGNMIPath(p *gnmi.Path) (string, map[string]string) { function normalizeEmptyRFC7951 (line 224) | func normalizeEmptyRFC7951(v any) any { function getValueFlat (line 253) | func getValueFlat(prefix string, updValue *gnmi.TypedValue) (map[string]... function EventFromMap (line 351) | func EventFromMap(m map[string]interface{}) (*EventMsg, error) { function num64 (line 421) | func num64(n interface{}) interface{} { function addMetaTags (line 451) | func addMetaTags(e *EventMsg, meta map[string]string) { FILE: pkg/formatters/event_add_tag/event_add_tag.go constant processorType (line 26) | processorType = "event-add-tag" constant loggingPrefix (line 27) | loggingPrefix = "[" + processorType + "] " type addTag (line 31) | type addTag struct method Init (line 60) | func (p *addTag) Init(cfg interface{}, opts ...formatters.Option) error { method Apply (line 115) | func (p *addTag) Apply(es ...*formatters.EventMsg) []*formatters.Event... method WithLogger (line 174) | func (p *addTag) WithLogger(l *log.Logger) { method addTags (line 182) | func (p *addTag) addTags(e *formatters.EventMsg) { function init (line 52) | func init() { function compileRegex (line 197) | func compileRegex(expr []string) ([]*regexp.Regexp, error) { FILE: pkg/formatters/event_add_tag/event_add_tag_test.go type item (line 18) | type item struct function TestEventAddTag (line 910) | func TestEventAddTag(t *testing.T) { FILE: pkg/formatters/event_allow/event_allow.go constant processorType (line 26) | processorType = "event-allow" constant loggingPrefix (line 27) | loggingPrefix = "[" + processorType + "] " type allow (line 31) | type allow struct method Init (line 56) | func (d *allow) Init(cfg interface{}, opts ...formatters.Option) error { method Apply (line 119) | func (d *allow) Apply(es ...*formatters.EventMsg) []*formatters.EventM... method WithLogger (line 134) | func (d *allow) WithLogger(l *log.Logger) { method allow (line 142) | func (d *allow) allow(e *formatters.EventMsg) bool { function init (line 48) | func init() { FILE: pkg/formatters/event_allow/event_allow_test.go type item (line 18) | type item struct function TestEventAllow (line 296) | func TestEventAllow(t *testing.T) { FILE: pkg/formatters/event_combine/event_combine.go constant processorType (line 28) | processorType = "event-combine" constant loggingPrefix (line 29) | loggingPrefix = "[" + processorType + "] " type combine (line 33) | type combine struct method Init (line 61) | func (p *combine) Init(cfg any, opts ...formatters.Option) error { method Apply (line 127) | func (p *combine) Apply(es ...*formatters.EventMsg) []*formatters.Even... method WithLogger (line 167) | func (s *combine) WithLogger(l *log.Logger) { method WithTargets (line 175) | func (s *combine) WithTargets(tcs map[string]*types.TargetConfig) { method WithActions (line 179) | func (s *combine) WithActions(act map[string]map[string]any) { method WithProcessors (line 183) | func (s *combine) WithProcessors(procs map[string]map[string]any) { type procseq (line 45) | type procseq struct function init (line 53) | func init() { FILE: pkg/formatters/event_combine/event_combine_test/event_combine_test.go function Test_combine_Apply (line 19) | func Test_combine_Apply(t *testing.T) { FILE: pkg/formatters/event_convert/event_convert.go constant processorType (line 27) | processorType = "event-convert" constant loggingPrefix (line 28) | loggingPrefix = "[" + processorType + "] " type convert (line 32) | type convert struct method Init (line 50) | func (c *convert) Init(cfg interface{}, opts ...formatters.Option) err... method Apply (line 77) | func (c *convert) Apply(es ...*formatters.EventMsg) []*formatters.Even... method WithLogger (line 128) | func (c *convert) WithLogger(l *log.Logger) { function init (line 42) | func init() { function convertToInt (line 136) | func convertToInt(i interface{}) (int, error) { function convertToUint (line 173) | func convertToUint(i interface{}) (uint, error) { function convertToFloat (line 231) | func convertToFloat(i interface{}) (float64, error) { function convertToString (line 274) | func convertToString(i interface{}) (string, error) { FILE: pkg/formatters/event_convert/event_convert_test.go type item (line 19) | type item struct function TestEventConvertToUint (line 533) | func TestEventConvertToUint(t *testing.T) { function TestEventConvertToInt (line 561) | func TestEventConvertToInt(t *testing.T) { function TestEventConvertToString (line 588) | func TestEventConvertToString(t *testing.T) { function TestEventConvertToFloat (line 615) | func TestEventConvertToFloat(t *testing.T) { FILE: pkg/formatters/event_data_convert/event_data_convert.go constant processorType (line 29) | processorType = "event-data-convert" constant loggingPrefix (line 30) | loggingPrefix = "[" + processorType + "] " type dataConvert (line 36) | type dataConvert struct method Init (line 59) | func (c *dataConvert) Init(cfg interface{}, opts ...formatters.Option)... method Apply (line 93) | func (c *dataConvert) Apply(es ...*formatters.EventMsg) []*formatters.... method WithLogger (line 134) | func (c *dataConvert) WithLogger(l *log.Logger) { method convertData (line 142) | func (c *dataConvert) convertData(k string, i interface{}, from *units... method getNewName (line 321) | func (c *dataConvert) getNewName(k string) string { function init (line 51) | func init() { function sToU (line 241) | func sToU(s string) units.Unit { function parseStringUnit (line 293) | func parseStringUnit(s string) (float64, units.Unit, error) { function unitFromName (line 313) | func unitFromName(k string) *units.Unit { FILE: pkg/formatters/event_data_convert/event_data_convert_test.go function Test_dataConvert_Apply (line 20) | func Test_dataConvert_Apply(t *testing.T) { FILE: pkg/formatters/event_date_string/event_date_string.go constant processorType (line 26) | processorType = "event-date-string" constant loggingPrefix (line 27) | loggingPrefix = "[" + processorType + "] " type dateString (line 33) | type dateString struct method Init (line 56) | func (d *dateString) Init(cfg interface{}, opts ...formatters.Option) ... method Apply (line 102) | func (d *dateString) Apply(es ...*formatters.EventMsg) []*formatters.E... method WithLogger (line 166) | func (d *dateString) WithLogger(l *log.Logger) { function init (line 48) | func init() { function convertToInt (line 174) | func convertToInt(i interface{}) (int, error) { FILE: pkg/formatters/event_date_string/event_date_string_test.go type item (line 18) | type item struct function TestEventDateString (line 70) | func TestEventDateString(t *testing.T) { FILE: pkg/formatters/event_delete/event_delete.go constant processorType (line 23) | processorType = "event-delete" constant loggingPrefix (line 24) | loggingPrefix = "[" + processorType + "] " type deletep (line 28) | type deletep struct method Init (line 53) | func (d *deletep) Init(cfg interface{}, opts ...formatters.Option) err... method Apply (line 108) | func (d *deletep) Apply(es ...*formatters.EventMsg) []*formatters.Even... method WithLogger (line 147) | func (d *deletep) WithLogger(l *log.Logger) { function init (line 45) | func init() { FILE: pkg/formatters/event_delete/event_delete_test.go type item (line 18) | type item struct function TestEventDelete (line 638) | func TestEventDelete(t *testing.T) { FILE: pkg/formatters/event_drop/event_drop.go constant processorType (line 26) | processorType = "event-drop" constant loggingPrefix (line 27) | loggingPrefix = "[" + processorType + "] " type drop (line 31) | type drop struct method Init (line 56) | func (d *drop) Init(cfg interface{}, opts ...formatters.Option) error { method Apply (line 119) | func (d *drop) Apply(es ...*formatters.EventMsg) []*formatters.EventMsg { method WithLogger (line 134) | func (d *drop) WithLogger(l *log.Logger) { method drop (line 142) | func (d *drop) drop(e *formatters.EventMsg) bool { function init (line 48) | func init() { FILE: pkg/formatters/event_drop/event_drop_test.go type item (line 18) | type item struct function TestEventDrop (line 156) | func TestEventDrop(t *testing.T) { function BenchmarkApply (line 203) | func BenchmarkApply(b *testing.B) { FILE: pkg/formatters/event_duration_convert/event_duration_convert.go constant processorType (line 25) | processorType = "event-duration-convert" constant loggingPrefix (line 26) | loggingPrefix = "[" + processorType + "] " type durationConvert (line 32) | type durationConvert struct method Init (line 50) | func (c *durationConvert) Init(cfg interface{}, opts ...formatters.Opt... method Apply (line 78) | func (c *durationConvert) Apply(es ...*formatters.EventMsg) []*formatt... method WithLogger (line 112) | func (c *durationConvert) WithLogger(l *log.Logger) { method convertDuration (line 120) | func (c *durationConvert) convertDuration(k string, i interface{}) (in... function init (line 42) | func init() { function parseStringDuration (line 157) | func parseStringDuration(s string) (int64, error) { FILE: pkg/formatters/event_duration_convert/event_duration_convert_test.go constant oneMins (line 21) | oneMins = int64(60) constant oneHs (line 22) | oneHs = int64(60 * 60) constant oneDs (line 23) | oneDs = int64(24 * 60 * 60) constant oneWs (line 24) | oneWs = int64(7 * 24 * 60 * 60) function Test_durationConvert_Apply (line 27) | func Test_durationConvert_Apply(t *testing.T) { FILE: pkg/formatters/event_extract_tags/event_extract_tags.go constant processorType (line 23) | processorType = "event-extract-tags" constant loggingPrefix (line 24) | loggingPrefix = "[" + processorType + "] " type extractTags (line 28) | type extractTags struct method Init (line 52) | func (p *extractTags) Init(cfg interface{}, opts ...formatters.Option)... method Apply (line 108) | func (p *extractTags) Apply(es ...*formatters.EventMsg) []*formatters.... method WithLogger (line 135) | func (p *extractTags) WithLogger(l *log.Logger) { method addTags (line 143) | func (p *extractTags) addTags(e *formatters.EventMsg, re *regexp.Regex... function init (line 44) | func init() { FILE: pkg/formatters/event_extract_tags/event_extract_tags_test.go type item (line 18) | type item struct function TestEventAddTag (line 184) | func TestEventAddTag(t *testing.T) { FILE: pkg/formatters/event_group_by/event_group_by.go constant processorType (line 25) | processorType = "event-group-by" constant loggingPrefix (line 26) | loggingPrefix = "[" + processorType + "] " type groupBy (line 31) | type groupBy struct method Init (line 48) | func (p *groupBy) Init(cfg interface{}, opts ...formatters.Option) err... method Apply (line 68) | func (p *groupBy) Apply(es ...*formatters.EventMsg) []*formatters.Even... method WithLogger (line 100) | func (p *groupBy) WithLogger(l *log.Logger) { method byTagsOld (line 108) | func (p *groupBy) byTagsOld(es []*formatters.EventMsg) []*formatters.E... method byTags (line 166) | func (p *groupBy) byTags(es []*formatters.EventMsg) []*formatters.Even... function init (line 40) | func init() { function generateKeyAndCheck (line 217) | func generateKeyAndCheck(tags map[string]string, keys []string) (uint64,... FILE: pkg/formatters/event_group_by/event_group_by_test.go type item (line 19) | type item struct function TestEventGroupBy (line 606) | func TestEventGroupBy(t *testing.T) { function generateMockEvents (line 639) | func generateMockEvents(numEvents, numTags int) []*formatters.EventMsg { function BenchmarkByTags (line 658) | func BenchmarkByTags(b *testing.B) { function slicesEqual (line 677) | func slicesEqual(slice1, slice2 []*formatters.EventMsg) bool { function eventMsgEqual (line 703) | func eventMsgEqual(a, b *formatters.EventMsg) bool { FILE: pkg/formatters/event_ieeefloat32/event_ieeefloat32.go constant processorType (line 30) | processorType = "event-ieeefloat32" constant loggingPrefix (line 31) | loggingPrefix = "[" + processorType + "] " type ieeefloat32 (line 35) | type ieeefloat32 struct method Init (line 54) | func (p *ieeefloat32) Init(cfg interface{}, opts ...formatters.Option)... method Apply (line 90) | func (p *ieeefloat32) Apply(es ...*formatters.EventMsg) []*formatters.... method WithLogger (line 123) | func (p *ieeefloat32) WithLogger(l *log.Logger) { method decodeBase64String (line 131) | func (p *ieeefloat32) decodeBase64String(e any) (float32, error) { function init (line 46) | func init() { function compileRegex (line 153) | func compileRegex(expr []string) ([]*regexp.Regexp, error) { FILE: pkg/formatters/event_ieeefloat32/event_ieeefloat32_test.go type item (line 18) | type item struct function TestEventIEEEFloat32 (line 97) | func TestEventIEEEFloat32(t *testing.T) { FILE: pkg/formatters/event_jq/event_jq.go constant processorType (line 25) | processorType = "event-jq" constant loggingPrefix (line 26) | loggingPrefix = "[" + processorType + "] " constant defaultCondition (line 27) | defaultCondition = "all([true])" constant defaultExpression (line 28) | defaultExpression = "." type jq (line 32) | type jq struct method Init (line 51) | func (p *jq) Init(cfg interface{}, opts ...formatters.Option) error { method setDefaults (line 82) | func (p *jq) setDefaults() { method Apply (line 91) | func (p *jq) Apply(es ...*formatters.EventMsg) []*formatters.EventMsg { method evaluateCondition (line 119) | func (p *jq) evaluateCondition(input map[string]interface{}) (bool, er... method applyExpression (line 143) | func (p *jq) applyExpression(input []interface{}) ([]*formatters.Event... method WithLogger (line 191) | func (p *jq) WithLogger(l *log.Logger) { function init (line 43) | func init() { FILE: pkg/formatters/event_jq/event_jq_test.go type item (line 21) | type item struct function TestEventJQ (line 744) | func TestEventJQ(t *testing.T) { FILE: pkg/formatters/event_merge/event_merge.go constant processorType (line 22) | processorType = "event-merge" constant loggingPrefix (line 23) | loggingPrefix = "[" + processorType + "] " type merge (line 27) | type merge struct method Init (line 43) | func (p *merge) Init(cfg interface{}, opts ...formatters.Option) error { method Apply (line 63) | func (p *merge) Apply(es ...*formatters.EventMsg) []*formatters.EventM... method WithLogger (line 94) | func (p *merge) WithLogger(l *log.Logger) { function init (line 35) | func init() { function mergeEvents (line 102) | func mergeEvents(e1, e2 *formatters.EventMsg) { FILE: pkg/formatters/event_merge/event_merge_test.go type item (line 18) | type item struct function TestEventMerge (line 203) | func TestEventMerge(t *testing.T) { FILE: pkg/formatters/event_override_ts/event_override_ts.go constant processorType (line 23) | processorType = "event-override-ts" constant loggingPrefix (line 24) | loggingPrefix = "[" + processorType + "] " type overrideTS (line 28) | type overrideTS struct method Init (line 45) | func (o *overrideTS) Init(cfg any, opts ...formatters.Option) error { method Apply (line 67) | func (o *overrideTS) Apply(es ...*formatters.EventMsg) []*formatters.E... method WithLogger (line 88) | func (o *overrideTS) WithLogger(l *log.Logger) { function init (line 37) | func init() { FILE: pkg/formatters/event_override_ts/event_override_ts_test.go type item (line 18) | type item struct function TestEventDateString (line 142) | func TestEventDateString(t *testing.T) { FILE: pkg/formatters/event_plugin/plugin.go type EventProcessorPlugin (line 11) | type EventProcessorPlugin struct method Server (line 15) | func (p *EventProcessorPlugin) Server(*plugin.MuxBroker) (interface{},... method Client (line 19) | func (p *EventProcessorPlugin) Client(b *plugin.MuxBroker, c *rpc.Clie... FILE: pkg/formatters/event_plugin/rpc.go constant processorType (line 15) | processorType = "event-plugin" constant loggingPrefix (line 16) | loggingPrefix = "[" + processorType + "] " type InitArgs (line 19) | type InitArgs struct type ApplyArgs (line 23) | type ApplyArgs struct type ApplyResponse (line 27) | type ApplyResponse struct type Actionresponse (line 32) | type Actionresponse struct type InitResponse (line 33) | type InitResponse struct type Targetresponse (line 34) | type Targetresponse struct type Proccessorresponse (line 35) | type Proccessorresponse struct type eventProcessorRPCServer (line 38) | type eventProcessorRPCServer struct method Init (line 47) | func (s *eventProcessorRPCServer) Init(args *InitArgs, resp *InitRespo... method Apply (line 51) | func (s *eventProcessorRPCServer) Apply(args *ApplyArgs, resp *ApplyRe... method WithActions (line 56) | func (s *eventProcessorRPCServer) WithActions(args map[string]map[stri... method WithTargets (line 61) | func (s *eventProcessorRPCServer) WithTargets(args map[string]*types.T... method WithProcessors (line 66) | func (s *eventProcessorRPCServer) WithProcessors( method WithLogger (line 74) | func (s *eventProcessorRPCServer) WithLogger() error { function init (line 42) | func init() { type EventProcessorRPC (line 78) | type EventProcessorRPC struct method Init (line 83) | func (g *EventProcessorRPC) Init(cfg interface{}, opts ...formatters.O... method Apply (line 94) | func (g *EventProcessorRPC) Apply(event ...*formatters.EventMsg) []*fo... method WithActions (line 104) | func (g *EventProcessorRPC) WithActions(act map[string]map[string]inte... method WithTargets (line 111) | func (g *EventProcessorRPC) WithTargets(tcs map[string]*types.TargetCo... method WithProcessors (line 118) | func (g *EventProcessorRPC) WithProcessors(procs map[string]map[string... method WithLogger (line 125) | func (g *EventProcessorRPC) WithLogger(l *log.Logger) { FILE: pkg/formatters/event_rate_limit/event_rate_limit.go constant processorType (line 21) | processorType = "event-rate-limit" constant loggingPrefix (line 22) | loggingPrefix = "[" + processorType + "] " constant defaultCacheSize (line 23) | defaultCacheSize = 1000 constant oneSecond (line 24) | oneSecond int64 = int64(time.Second) type rateLimit (line 33) | type rateLimit struct method Init (line 57) | func (o *rateLimit) Init(cfg interface{}, opts ...formatters.Option) e... method Apply (line 89) | func (o *rateLimit) Apply(es ...*formatters.EventMsg) []*formatters.Ev... method WithLogger (line 132) | func (o *rateLimit) WithLogger(l *log.Logger) { function init (line 49) | func init() { function hashEvent (line 112) | func hashEvent(e *formatters.EventMsg) string { FILE: pkg/formatters/event_rate_limit/event_rate_limit_test.go type item (line 9) | type item struct function TestRateLimit (line 335) | func TestRateLimit(t *testing.T) { FILE: pkg/formatters/event_starlark/dict.go type isDict (line 20) | type isDict interface type dict (line 27) | type dict struct function newDict (line 34) | func newDict[K comparable, V any](name string, m map[K]V) *dict[K, V] { type builtinMethod (line 41) | type builtinMethod function builtinAttr (line 44) | func builtinAttr(recv starlark.Value, name string, methods map[string]bu... function builtinAttrNames (line 57) | func builtinAttrNames(methods map[string]builtinMethod) []string { method String (line 67) | func (d *dict[K, V]) String() string { method Type (line 73) | func (d *dict[K, V]) Type() string { method Freeze (line 78) | func (d *dict[K, V]) Freeze() { method Truth (line 83) | func (d *dict[K, V]) Truth() starlark.Bool { method Hash (line 88) | func (d *dict[K, V]) Hash() (uint32, error) { method AttrNames (line 93) | func (d *dict[K, V]) AttrNames() []string { method Attr (line 98) | func (d *dict[K, V]) Attr(name string) (starlark.Value, error) { method Get (line 114) | func (d *dict[K, V]) Get(key starlark.Value) (v starlark.Value, found bo... method SetKey (line 132) | func (d *dict[K, V]) SetKey(k, v starlark.Value) error { method Items (line 158) | func (d *dict[K, V]) Items() []starlark.Tuple { method Clear (line 175) | func (d *dict[K, V]) Clear() error { method Delete (line 185) | func (d *dict[K, V]) Delete(k starlark.Value) (v starlark.Value, found b... method Iterate (line 207) | func (d *dict[K, V]) Iterate() starlark.Iterator { type tag (line 219) | type tag struct type dictIterator (line 224) | type dictIterator struct method Next (line 230) | func (i *dictIterator[K, V]) Next(p *starlark.Value) bool { method Done (line 247) | func (i *dictIterator[K, V]) Done() { function dictClear (line 254) | func dictClear(b *starlark.Builtin, args starlark.Tuple, kwargs []starla... function dictPop (line 263) | func dictPop(b *starlark.Builtin, args starlark.Tuple, kwargs []starlark... function dictGet (line 283) | func dictGet(b *starlark.Builtin, args starlark.Tuple, kwargs []starlark... function dictSetDefault (line 302) | func dictSetDefault(b *starlark.Builtin, args starlark.Tuple, kwargs []s... function dictUpdate (line 324) | func dictUpdate(b *starlark.Builtin, args starlark.Tuple, kwargs []starl... function dictItems (line 400) | func dictItems(b *starlark.Builtin, args starlark.Tuple, kwargs []starla... function dictKeys (line 413) | func dictKeys(b *starlark.Builtin, args starlark.Tuple, kwargs []starlar... function dictValues (line 427) | func dictValues(b *starlark.Builtin, args starlark.Tuple, kwargs []starl... FILE: pkg/formatters/event_starlark/event.go type event (line 22) | type event struct method String (line 41) | func (s *event) String() string { method Type (line 47) | func (s *event) Type() string { return "Event" } method Freeze (line 50) | func (s *event) Freeze() { s.frozen = true } method Truth (line 53) | func (s *event) Truth() starlark.Bool { return starlark.True } method Hash (line 56) | func (s *event) Hash() (uint32, error) { return 0, errors.New("not has... method AttrNames (line 59) | func (s *event) AttrNames() []string { method Attr (line 64) | func (s *event) Attr(name string) (starlark.Value, error) { method SetField (line 83) | func (s *event) SetField(name string, value starlark.Value) error { method SetName (line 105) | func (s *event) SetName(name starlark.Value) error { method Tags (line 113) | func (s *event) Tags() starlark.Value { method Values (line 117) | func (s *event) Values() starlark.Value { method Deletes (line 121) | func (s *event) Deletes() starlark.Value { method Timestamp (line 133) | func (s *event) Timestamp() starlark.Int { method SetTimestamp (line 137) | func (s *event) SetTimestamp(value starlark.Value) error { method SetTags (line 151) | func (s *event) SetTags(value starlark.Value) error { method SetValues (line 160) | func (s *event) SetValues(value starlark.Value) error { method SetDeletes (line 169) | func (s *event) SetDeletes(value starlark.Value) error { function fromEvent (line 27) | func fromEvent(ev *formatters.EventMsg) *event { function toEvent (line 33) | func toEvent(sev *event) *formatters.EventMsg { function newEvent (line 178) | func newEvent(_ *starlark.Thread, _ *starlark.Builtin, args starlark.Tup... function toValues (line 224) | func toValues(value starlark.Value) (map[string]any, error) { function toTags (line 246) | func toTags(value starlark.Value) (map[string]string, error) { function toDeletes (line 268) | func toDeletes(value starlark.Value) ([]string, error) { function toStarlarkValue (line 293) | func toStarlarkValue(value any) (starlark.Value, error) { function toGoVal (line 337) | func toGoVal(value starlark.Value) (any, error) { function copyEvent (line 356) | func copyEvent(_ *starlark.Thread, _ *starlark.Builtin, args starlark.Tu... FILE: pkg/formatters/event_starlark/event_starlark.go constant processorType (line 30) | processorType = "event-starlark" constant loggingPrefix (line 31) | loggingPrefix = "[" + processorType + "] " type starlarkProc (line 35) | type starlarkProc struct method Init (line 57) | func (p *starlarkProc) Init(cfg interface{}, opts ...formatters.Option... method validate (line 110) | func (p *starlarkProc) validate() error { method Apply (line 120) | func (p *starlarkProc) Apply(es ...*formatters.EventMsg) []*formatters... method WithLogger (line 186) | func (p *starlarkProc) WithLogger(l *log.Logger) { method sourceProgram (line 194) | func (p *starlarkProc) sourceProgram(builtins starlark.StringDict) (*s... function init (line 49) | func init() { function loadModule (line 208) | func loadModule(module string) (starlark.StringDict, error) { FILE: pkg/formatters/event_starlark/event_starlark_test.go function Test_starlarkProc_Apply (line 20) | func Test_starlarkProc_Apply(t *testing.T) { FILE: pkg/formatters/event_strings/event_strings.go constant processorType (line 28) | processorType = "event-strings" constant loggingPrefix (line 29) | loggingPrefix = "[" + processorType + "] " constant nameField (line 30) | nameField = "name" constant valueField (line 31) | valueField = "value" type stringsp (line 35) | type stringsp struct method Init (line 88) | func (s *stringsp) Init(cfg interface{}, opts ...formatters.Option) er... method Apply (line 155) | func (s *stringsp) Apply(es ...*formatters.EventMsg) []*formatters.Eve... method WithLogger (line 194) | func (s *stringsp) WithLogger(l *log.Logger) { method applyValueTransformations (line 202) | func (s *stringsp) applyValueTransformations(e *formatters.EventMsg, k... method applyTagTransformations (line 214) | func (s *stringsp) applyTagTransformations(e *formatters.EventMsg, k, ... type transform (line 53) | type transform struct method apply (line 232) | func (t *transform) apply(k string, v interface{}) (string, interface{... method replace (line 254) | func (t *transform) replace(k string, v interface{}) (string, interfac... method trimPrefix (line 266) | func (t *transform) trimPrefix(k string, v interface{}) (string, inter... method trimSuffix (line 278) | func (t *transform) trimSuffix(k string, v interface{}) (string, inter... method toTitle (line 290) | func (t *transform) toTitle(k string, v interface{}) (string, interfac... method toLower (line 302) | func (t *transform) toLower(k string, v interface{}) (string, interfac... method toUpper (line 314) | func (t *transform) toUpper(k string, v interface{}) (string, interfac... method split (line 326) | func (t *transform) split(k string, v interface{}) (string, interface{... method pathBase (line 348) | func (t *transform) pathBase(k string, v interface{}) (string, interfa... function init (line 80) | func init() { FILE: pkg/formatters/event_strings/event_strings_test.go type item (line 18) | type item struct function TestEventStrings (line 534) | func TestEventStrings(t *testing.T) { FILE: pkg/formatters/event_test.go type item (line 20) | type item struct function TestToMap (line 100) | func TestToMap(t *testing.T) { function TestFromMap (line 117) | func TestFromMap(t *testing.T) { function TestTagsFromGNMIPath (line 138) | func TestTagsFromGNMIPath(t *testing.T) { function Test_getValueFlat (line 274) | func Test_getValueFlat(t *testing.T) { function TestResponseToEventMsgs (line 355) | func TestResponseToEventMsgs(t *testing.T) { FILE: pkg/formatters/event_time_epoch/event_time_epoch.go constant processorType (line 24) | processorType = "event-time-epoch" constant loggingPrefix (line 25) | loggingPrefix = "[" + processorType + "] " type epoch (line 29) | type epoch struct method Init (line 49) | func (d *epoch) Init(cfg any, opts ...formatters.Option) error { method Apply (line 80) | func (d *epoch) Apply(es ...*formatters.EventMsg) []*formatters.EventM... method WithLogger (line 120) | func (d *epoch) WithLogger(l *log.Logger) { function init (line 41) | func init() { FILE: pkg/formatters/event_time_epoch/event_time_epoch_test.go function Test_epoch_Apply (line 20) | func Test_epoch_Apply(t *testing.T) { FILE: pkg/formatters/event_to_tag/event_to_tag.go constant processorType (line 24) | processorType = "event-to-tag" constant loggingPrefix (line 25) | loggingPrefix = "[" + processorType + "] " type toTag (line 30) | type toTag struct method Init (line 52) | func (t *toTag) Init(cfg interface{}, opts ...formatters.Option) error { method Apply (line 87) | func (t *toTag) Apply(es ...*formatters.EventMsg) []*formatters.EventM... method Apply2 (line 124) | func (t *toTag) Apply2(es ...*formatters.EventMsg) []*formatters.Event... method WithLogger (line 156) | func (t *toTag) WithLogger(l *log.Logger) { function init (line 44) | func init() { FILE: pkg/formatters/event_to_tag/event_to_tag_test.go type item (line 20) | type item struct function TestEventToTag (line 227) | func TestEventToTag(t *testing.T) { function generateTestMessages (line 259) | func generateTestMessages(count int) []*formatters.EventMsg { function BenchmarkApply (line 276) | func BenchmarkApply(b *testing.B) { function BenchmarkApply2 (line 297) | func BenchmarkApply2(b *testing.B) { FILE: pkg/formatters/event_trigger/event_trigger.go constant processorType (line 35) | processorType = "event-trigger" constant loggingPrefix (line 36) | loggingPrefix = "[" + processorType + "] " constant defaultCondition (line 37) | defaultCondition = "any([true])" type trigger (line 41) | type trigger struct method Init (line 73) | func (p *trigger) Init(cfg interface{}, opts ...formatters.Option) err... method Apply (line 117) | func (p *trigger) Apply(es ...*formatters.EventMsg) []*formatters.Even... method WithLogger (line 144) | func (p *trigger) WithLogger(l *log.Logger) { method WithTargets (line 152) | func (p *trigger) WithTargets(tcs map[string]*types.TargetConfig) { method WithActions (line 156) | func (p *trigger) WithActions(acts map[string]map[string]interface{}) { method initializeAction (line 163) | func (p *trigger) initializeAction(cfg map[string]interface{}) error { method String (line 187) | func (p *trigger) String() string { method setDefaults (line 195) | func (p *trigger) setDefaults() error { method readVars (line 214) | func (p *trigger) readVars() error { method triggerActions (line 232) | func (p *trigger) triggerActions(e *formatters.EventMsg) { method evalOccurrencesWithinWindow (line 245) | func (p *trigger) evalOccurrencesWithinWindow(now time.Time) bool { method WithProcessors (line 284) | func (p *trigger) WithProcessors(procs map[string]map[string]any) {} function init (line 65) | func init() { FILE: pkg/formatters/event_trigger/event_trigger_test.go type item (line 22) | type item struct function TestEventTrigger (line 322) | func TestEventTrigger(t *testing.T) { function TestOccurrenceTrigger (line 358) | func TestOccurrenceTrigger(t *testing.T) { FILE: pkg/formatters/event_value_tag/event_value_tag.go constant processorType (line 23) | processorType = "event-value-tag" constant loggingPrefix (line 24) | loggingPrefix = "[" + processorType + "] " type valueTag (line 27) | type valueTag struct method Init (line 42) | func (vt *valueTag) Init(cfg interface{}, opts ...formatters.Option) e... method Apply (line 70) | func (vt *valueTag) Apply(evs ...*formatters.EventMsg) []*formatters.E... method WithLogger (line 88) | func (vt *valueTag) WithLogger(l *log.Logger) { method WithProcessors (line 109) | func (vt *valueTag) WithProcessors(procs map[string]map[string]any) {} method buildApplyRules (line 111) | func (vt *valueTag) buildApplyRules(evs []*formatters.EventMsg) []*tag... function init (line 36) | func init() { type tagVal (line 65) | type tagVal struct function compareTags (line 97) | func compareTags(a map[string]string, b map[string]string) bool { function copyTags (line 128) | func copyTags(src map[string]string) map[string]string { FILE: pkg/formatters/event_value_tag/event_value_tag_test.go type item (line 20) | type item struct function TestEventValueTag (line 387) | func TestEventValueTag(t *testing.T) { function generateEventMsgs (line 416) | func generateEventMsgs(numEvents, numValues int, targetKey, targetValue ... function BenchmarkBuildApplyRules (line 432) | func BenchmarkBuildApplyRules(b *testing.B) { function BenchmarkBuildApplyRules2 (line 442) | func BenchmarkBuildApplyRules2(b *testing.B) { method buildApplyRules2 (line 453) | func (vt *valueTag) buildApplyRules2(evs []*formatters.EventMsg) []*tagV... FILE: pkg/formatters/event_value_tag_v2/event_value_tag_v2.go constant processorType (line 26) | processorType = "event-value-tag-v2" constant loggingPrefix (line 27) | loggingPrefix = "[" + processorType + "] " type valueTag (line 36) | type valueTag struct method Init (line 58) | func (vt *valueTag) Init(cfg interface{}, opts ...formatters.Option) e... method Apply (line 97) | func (vt *valueTag) Apply(evs ...*formatters.EventMsg) []*formatters.E... method WithLogger (line 129) | func (vt *valueTag) WithLogger(l *log.Logger) { method applyRuleKey (line 152) | func (vt *valueTag) applyRuleKey(m map[string]string, r *rule) uint64 { type rule (line 46) | type rule struct function init (line 52) | func init() { type applyRule (line 88) | type applyRule struct function includedIn (line 139) | func includedIn(a, b map[string]string) bool { function copyTags (line 171) | func copyTags(src map[string]string) map[string]string { FILE: pkg/formatters/event_value_tag_v2/event_value_tag_v2_test.go type item (line 23) | type item struct function TestEventValueTag (line 469) | func TestEventValueTag(t *testing.T) { function TestValueTagApplySubsequentRuns (line 500) | func TestValueTagApplySubsequentRuns(t *testing.T) { FILE: pkg/formatters/event_write/event_write.go constant processorType (line 26) | processorType = "event-write" constant loggingPrefix (line 27) | loggingPrefix = "[" + processorType + "] " type write (line 30) | type write struct method Init (line 60) | func (p *write) Init(cfg interface{}, opts ...formatters.Option) error { method Apply (line 138) | func (p *write) Apply(es ...*formatters.EventMsg) []*formatters.EventM... method WithLogger (line 207) | func (p *write) WithLogger(l *log.Logger) { method write (line 215) | func (p *write) write(e *formatters.EventMsg) error { function init (line 52) | func init() { FILE: pkg/formatters/event_write/event_write_test.go type item (line 20) | type item struct function TestEventWrite (line 217) | func TestEventWrite(t *testing.T) { FILE: pkg/formatters/flat.go function ResponsesFlat (line 21) | func ResponsesFlat(msgs ...proto.Message) (map[string]interface{}, error) { function responseFlat (line 35) | func responseFlat(msg proto.Message) (map[string]interface{}, error) { FILE: pkg/formatters/formats.go type MarshalOptions (line 25) | type MarshalOptions struct method Marshal (line 38) | func (o *MarshalOptions) Marshal(msg proto.Message, meta map[string]st... method OverrideTimestamp (line 119) | func (o *MarshalOptions) OverrideTimestamp(msg proto.Message) proto.Me... FILE: pkg/formatters/json.go function jsonMarshal (line 35) | func jsonMarshal(v any) ([]byte, error) { function jsonMarshalIndent (line 53) | func jsonMarshalIndent(v any, prefix, indent string) ([]byte, error) { function formatRegisteredExtensions (line 71) | func formatRegisteredExtensions( method FormatJSON (line 138) | func (o *MarshalOptions) FormatJSON(m proto.Message, meta map[string]str... method formatSubscribeRequest (line 163) | func (o *MarshalOptions) formatSubscribeRequest(m *gnmi.SubscribeRequest... method formatSubscribeResponse (line 201) | func (o *MarshalOptions) formatSubscribeResponse(m *gnmi.SubscribeRespon... method formatCapabilitiesRequest (line 292) | func (o *MarshalOptions) formatCapabilitiesRequest(m *gnmi.CapabilityReq... method formatCapabilitiesResponse (line 302) | func (o *MarshalOptions) formatCapabilitiesResponse(m *gnmi.CapabilityRe... method formatGetRequest (line 324) | func (o *MarshalOptions) formatGetRequest(m *gnmi.GetRequest) ([]byte, e... method formatGetResponse (line 350) | func (o *MarshalOptions) formatGetResponse(m *gnmi.GetResponse, meta map... method formatSetRequest (line 432) | func (o *MarshalOptions) formatSetRequest(m *gnmi.SetRequest) ([]byte, e... method formatSetResponse (line 466) | func (o *MarshalOptions) formatSetResponse(m *gnmi.SetResponse, meta map... FILE: pkg/formatters/msg.go type syncResponseMsg (line 19) | type syncResponseMsg struct type notificationRspMsg (line 25) | type notificationRspMsg struct type update (line 43) | type update struct type capRequest (line 47) | type capRequest struct type capResponse (line 50) | type capResponse struct type model (line 56) | type model struct type getRqMsg (line 62) | type getRqMsg struct type decodedExtension (line 72) | type decodedExtension type getRspMsg (line 74) | type getRspMsg struct type setRspMsg (line 79) | type setRspMsg struct type updateResultMsg (line 90) | type updateResultMsg struct type setReqMsg (line 96) | type setReqMsg struct type updateMsg (line 105) | type updateMsg struct type subscribeReq (line 110) | type subscribeReq struct type poll (line 117) | type poll struct type subscribe (line 119) | type subscribe struct type subscription (line 132) | type subscription struct function getValue (line 140) | func getValue(updValue *gnmi.TypedValue) (interface{}, error) { FILE: pkg/formatters/plugin_manager/manager.go type PluginManager (line 25) | type PluginManager struct method Load (line 56) | func (p *PluginManager) Load() error { method Cleanup (line 76) | func (p *PluginManager) Cleanup() { method initProcessorFn (line 84) | func (p *PluginManager) initProcessorFn(name, pluginPath string) func(... function New (line 35) | func New(pc *config.PluginsConfig, logOutput io.Writer) *PluginManager { FILE: pkg/formatters/processors.go type Initializer (line 50) | type Initializer function Register (line 52) | func Register(name string, initFn Initializer) { type Option (line 56) | type Option type EventProcessor (line 58) | type EventProcessor interface function DecodeConfig (line 68) | func DecodeConfig(src, dst interface{}) error { function WithLogger (line 81) | func WithLogger(l *log.Logger) Option { function WithTargets (line 87) | func WithTargets(tcs map[string]*types.TargetConfig) Option { function WithActions (line 93) | func WithActions(acts map[string]map[string]interface{}) Option { function WithProcessors (line 99) | func WithProcessors(procs map[string]map[string]interface{}) Option { function CheckCondition (line 105) | func CheckCondition(code *gojq.Code, e *EventMsg) (bool, error) { function MakeEventProcessors (line 140) | func MakeEventProcessors( function MakeProcessor (line 162) | func MakeProcessor(logger *log.Logger, name string, type BaseProcessor (line 189) | type BaseProcessor struct method WithLogger (line 193) | func (p *BaseProcessor) WithLogger(l *log.Logger) { method Init (line 197) | func (p *BaseProcessor) Init(interface{}, ...Option) error { method Apply (line 201) | func (p *BaseProcessor) Apply(...*EventMsg) []*EventMsg { method WithTargets (line 205) | func (p *BaseProcessor) WithTargets(map[string]*types.TargetConfig) { method WithActions (line 208) | func (p *BaseProcessor) WithActions(act map[string]map[string]interfac... method WithProcessors (line 211) | func (p *BaseProcessor) WithProcessors(procs map[string]map[string]any) { FILE: pkg/formatters/processors_test.go function TestCheckCondition (line 47) | func TestCheckCondition(t *testing.T) { FILE: pkg/gtemplate/template.go function CreateTemplate (line 16) | func CreateTemplate(name, text string) (*template.Template, error) { function CreateFileTemplate (line 23) | func CreateFileTemplate(filename string) (*template.Template, error) { FILE: pkg/gtemplate/template_funcs.go type templateEngine (line 19) | type templateEngine interface function NewTemplateEngine (line 23) | func NewTemplateEngine() templateEngine { type gmplt (line 27) | type gmplt struct method CreateFuncs (line 29) | func (*gmplt) CreateFuncs() template.FuncMap { FILE: pkg/inputs/input.go type Input (line 24) | type Input interface type Initializer (line 40) | type Initializer function Register (line 50) | func Register(name string, initFn Initializer) { type InputOptions (line 54) | type InputOptions struct type PipeMessage (line 62) | type PipeMessage interface type Option (line 69) | type Option function WithLogger (line 71) | func WithLogger(logger *log.Logger) Option { function WithOutputs (line 78) | func WithOutputs(outs map[string]outputs.Output) Option { function WithName (line 85) | func WithName(name string) Option { function WithConfigStore (line 92) | func WithConfigStore(st store.Store[any]) Option { function WithPipeline (line 99) | func WithPipeline(pipeline chan *pipeline.Msg) Option { type BaseInput (line 106) | type BaseInput struct method Start (line 109) | func (b *BaseInput) Start(context.Context, string, map[string]any, ...... method Validate (line 113) | func (b *BaseInput) Validate(map[string]any) error { method Update (line 117) | func (b *BaseInput) Update(map[string]any) error { method UpdateProcessor (line 121) | func (b *BaseInput) UpdateProcessor(string, map[string]any) error { method Close (line 125) | func (b *BaseInput) Close() error { function UpdateProcessorInSlice (line 129) | func UpdateProcessorInSlice( FILE: pkg/inputs/jetstream_input/jetstream_input.go constant loggingPrefix (line 41) | loggingPrefix = "[jetstream_input:%s] " constant natsReconnectBufferSize (line 42) | natsReconnectBufferSize = 100 * 1024 * 1024 constant defaultAddress (line 43) | defaultAddress = "localhost:4222" constant natsConnectWait (line 44) | natsConnectWait = 2 * time.Second constant defaultFormat (line 45) | defaultFormat = "event" constant defaultNumWorkers (line 46) | defaultNumWorkers = 1 constant defaultBufferSize (line 47) | defaultBufferSize = 500 constant defaultFetchBatchSize (line 48) | defaultFetchBatchSize = 500 constant defaultMaxAckPending (line 49) | defaultMaxAckPending = 1000 type deliverPolicy (line 52) | type deliverPolicy constant deliverPolicyAll (line 55) | deliverPolicyAll deliverPolicy = "all" constant deliverPolicyLast (line 56) | deliverPolicyLast deliverPolicy = "last" constant deliverPolicyNew (line 57) | deliverPolicyNew deliverPolicy = "new" constant deliverPolicyLastPerSubject (line 58) | deliverPolicyLastPerSubject deliverPolicy = "last-per-subject" function toJSDeliverPolicy (line 61) | func toJSDeliverPolicy(dp deliverPolicy) jetstream.DeliverPolicy { function init (line 75) | func init() { type jetstreamInput (line 88) | type jetstreamInput struct method Start (line 143) | func (n *jetstreamInput) Start(ctx context.Context, name string, cfg m... method Validate (line 197) | func (n *jetstreamInput) Validate(cfg map[string]any) error { method Update (line 209) | func (n *jetstreamInput) Update(cfg map[string]any) error { method UpdateProcessor (line 270) | func (n *jetstreamInput) UpdateProcessor(name string, pcfg map[string]... method worker (line 325) | func (n *jetstreamInput) worker(ctx context.Context, idx int) { method doWork (line 356) | func (n *jetstreamInput) doWork(ctx context.Context, workerIdx int, wC... method msgHandler (line 438) | func (n *jetstreamInput) msgHandler(ctx context.Context, cfg *config, ... method getMetaFromSubject (line 510) | func (n *jetstreamInput) getMetaFromSubject(subject string, wCfg *conf... method Close (line 530) | func (n *jetstreamInput) Close() error { method setLogger (line 541) | func (n *jetstreamInput) setLogger(logger *log.Logger) { method getOutputs (line 549) | func (n *jetstreamInput) getOutputs(outs map[string]outputs.Output, cf... method setName (line 568) | func (n *jetstreamInput) setName(name string, cfg *config) { method buildEventProcessors (line 579) | func (n *jetstreamInput) buildEventProcessors(logger *log.Logger, even... method setDefaultsFor (line 595) | func (n *jetstreamInput) setDefaultsFor(cfg *config) error { method createNATSConn (line 635) | func (n *jetstreamInput) createNATSConn(c *config) (*nats.Conn, error) { method Dial (line 673) | func (n *jetstreamInput) Dial(network, address string) (net.Conn, erro... type dynConfig (line 107) | type dynConfig struct type subjectFormat (line 112) | type subjectFormat constant subjectFormat_Static (line 115) | subjectFormat_Static = "static" constant subjectFormat_TargetSub (line 116) | subjectFormat_TargetSub = "target.subscription" constant subjectFormat_SubTarget (line 117) | subjectFormat_SubTarget = "subscription.target" type config (line 121) | type config struct function needsWorkerRestart (line 297) | func needsWorkerRestart(old, nw *config) bool { function maxAckPendingEqual (line 315) | func maxAckPendingEqual(a, b *int) bool { FILE: pkg/inputs/jetstream_input/jetstream_input_test.go function Test_setDefaults (line 11) | func Test_setDefaults(t *testing.T) { function Test_toJSDeliverPolicy (line 178) | func Test_toJSDeliverPolicy(t *testing.T) { function Test_workqueueDeliverPolicy (line 230) | func Test_workqueueDeliverPolicy(t *testing.T) { FILE: pkg/inputs/kafka_input/kafka_input.go constant loggingPrefix (line 40) | loggingPrefix = "[kafka_input] " constant defaultFormat (line 41) | defaultFormat = "event" constant defaultTopic (line 42) | defaultTopic = "telemetry" constant defaultNumWorkers (line 43) | defaultNumWorkers = 1 constant defaultSessionTimeout (line 44) | defaultSessionTimeout = 10 * time.Second constant defaultHeartbeatInterval (line 45) | defaultHeartbeatInterval = 3 * time.Second constant defaultRecoveryWaitTime (line 46) | defaultRecoveryWaitTime = 2 * time.Second constant defaultAddress (line 47) | defaultAddress = "localhost:9092" constant defaultGroupID (line 48) | defaultGroupID = "gnmic-consumers" function init (line 56) | func init() { type KafkaInput (line 69) | type KafkaInput struct method Start (line 114) | func (k *KafkaInput) Start(ctx context.Context, name string, cfg map[s... method Validate (line 167) | func (k *KafkaInput) Validate(cfg map[string]any) error { method Update (line 179) | func (k *KafkaInput) Update(cfg map[string]any) error { method UpdateProcessor (line 240) | func (k *KafkaInput) UpdateProcessor(name string, pcfg map[string]any)... method worker (line 267) | func (k *KafkaInput) worker(ctx context.Context, idx int) { method doWork (line 299) | func (k *KafkaInput) doWork(ctx context.Context, wCfg *config, workerL... method Close (line 448) | func (k *KafkaInput) Close() error { method partitionKeyToMeta (line 462) | func (k *KafkaInput) partitionKeyToMeta(key []byte) outputs.Meta { method setLogger (line 476) | func (k *KafkaInput) setLogger(logger *log.Logger) { method getOutputs (line 483) | func (k *KafkaInput) getOutputs(outs map[string]outputs.Output, cfg *c... method setName (line 502) | func (k *KafkaInput) setName(name string, cfg *config) { method buildEventProcessors (line 513) | func (k *KafkaInput) buildEventProcessors(logger *log.Logger, eventPro... method setDefaultsFor (line 529) | func (k *KafkaInput) setDefaultsFor(cfg *config) error { method createConfig (line 586) | func (k *KafkaInput) createConfig(cfg *config) (*sarama.Config, error) { type dynConfig (line 88) | type dynConfig struct type config (line 94) | type config struct constant partitionKeySeparator (line 459) | partitionKeySeparator = ":::" function needsWorkerRestart (line 630) | func needsWorkerRestart(old, nw *config) bool { function saslEq (line 646) | func saslEq(a, b *types.SASL) bool { type consumer (line 662) | type consumer struct method Setup (line 668) | func (consumer *consumer) Setup(sarama.ConsumerGroupSession) error { method Cleanup (line 675) | func (consumer *consumer) Cleanup(sarama.ConsumerGroupSession) error { method ConsumeClaim (line 680) | func (consumer *consumer) ConsumeClaim(session sarama.ConsumerGroupSes... FILE: pkg/inputs/kafka_input/kafka_scram_client.go type XDGSCRAMClient (line 22) | type XDGSCRAMClient struct method Begin (line 28) | func (x *XDGSCRAMClient) Begin(userName, password, authzID string) (er... method Step (line 37) | func (x *XDGSCRAMClient) Step(challenge string) (response string, err ... method Done (line 42) | func (x *XDGSCRAMClient) Done() bool { FILE: pkg/inputs/nats_input/nats_input.go constant loggingPrefix (line 40) | loggingPrefix = "[nats_input] " constant natsReconnectBufferSize (line 41) | natsReconnectBufferSize = 100 * 1024 * 1024 constant defaultAddress (line 42) | defaultAddress = "localhost:4222" constant natsConnectWait (line 43) | natsConnectWait = 2 * time.Second constant defaultFormat (line 44) | defaultFormat = "event" constant defaultSubject (line 45) | defaultSubject = "telemetry" constant defaultNumWorkers (line 46) | defaultNumWorkers = 1 constant defaultBufferSize (line 47) | defaultBufferSize = 100 function init (line 50) | func init() { type natsInput (line 63) | type natsInput struct method Start (line 106) | func (n *natsInput) Start(ctx context.Context, name string, cfg map[st... method Validate (line 160) | func (n *natsInput) Validate(cfg map[string]any) error { method Update (line 172) | func (n *natsInput) Update(cfg map[string]any) error { method UpdateProcessor (line 233) | func (n *natsInput) UpdateProcessor(name string, pcfg map[string]any) ... method worker (line 275) | func (n *natsInput) worker(ctx context.Context, idx int) { method doWork (line 308) | func (n *natsInput) doWork(ctx context.Context, wCfg *config, workerLo... method Close (line 408) | func (n *natsInput) Close() error { method setLogger (line 419) | func (n *natsInput) setLogger(logger *log.Logger) { method getOutputs (line 427) | func (n *natsInput) getOutputs(outs map[string]outputs.Output, cfg *co... method setName (line 446) | func (n *natsInput) setName(name string, cfg *config) { method buildEventProcessors (line 457) | func (n *natsInput) buildEventProcessors(logger *log.Logger, eventProc... method setDefaultsFor (line 473) | func (n *natsInput) setDefaultsFor(cfg *config) error { method createNATSConn (line 505) | func (n *natsInput) createNATSConn(c *config) (*nats.Conn, error) { method Dial (line 543) | func (n *natsInput) Dial(network, address string) (net.Conn, error) { type dynConfig (line 82) | type dynConfig struct type config (line 88) | type config struct function needsWorkerRestart (line 260) | func needsWorkerRestart(old, nw *config) bool { FILE: pkg/loaders/consul_loader/consul_loader.go constant loggingPrefix (line 40) | loggingPrefix = "[consul_loader] " constant loaderType (line 41) | loaderType = "consul" constant defaultAddress (line 42) | defaultAddress = "localhost:8500" constant defaultPrefix (line 43) | defaultPrefix = "gnmic/config/targets" constant defaultWatchTimeout (line 45) | defaultWatchTimeout = 1 * time.Minute constant defaultActionTimeout (line 46) | defaultActionTimeout = 30 * time.Second function init (line 51) | func init() { type consulLoader (line 62) | type consulLoader struct method Init (line 123) | func (c *consulLoader) Init(ctx context.Context, cfg map[string]interf... method Start (line 202) | func (c *consulLoader) Start(ctx context.Context) chan *loaders.Target... method RunOnce (line 250) | func (c *consulLoader) RunOnce(ctx context.Context) (map[string]*types... method initClient (line 306) | func (c *consulLoader) initClient() error { method setDefaults (line 331) | func (c *consulLoader) setDefaults() error { method startServicesWatch (line 347) | func (c *consulLoader) startServicesWatch(ctx context.Context, service... method watch (line 387) | func (c *consulLoader) watch(qOpts *api.QueryOptions, serviceName stri... method serviceEntryToTargetConfig (line 403) | func (c *consulLoader) serviceEntryToTargetConfig(se *api.ServiceEntry... method updateTargets (line 473) | func (c *consulLoader) updateTargets(ctx context.Context, srvName stri... method readVars (line 511) | func (c *consulLoader) readVars(ctx context.Context) error { method initializeAction (line 529) | func (c *consulLoader) initializeAction(cfg map[string]interface{}) (a... method runActions (line 553) | func (c *consulLoader) runActions(ctx context.Context, tcs map[string]... method runOnAddActions (line 634) | func (c *consulLoader) runOnAddActions(ctx context.Context, tName stri... method runOnDeleteActions (line 658) | func (c *consulLoader) runOnDeleteActions(ctx context.Context, tName s... type cfg (line 79) | type cfg struct type serviceDef (line 113) | type serviceDef struct FILE: pkg/loaders/consul_loader/consul_loader_metrics.go function initMetrics (line 34) | func initMetrics() { function registerMetrics (line 40) | func registerMetrics(reg *prometheus.Registry) error { FILE: pkg/loaders/consul_loader/consul_loader_test.go function TestIssue706_ServicesWithExtraTagsFiltered (line 24) | func TestIssue706_ServicesWithExtraTagsFiltered(t *testing.T) { function TestOldBuggyLogicWouldReject (line 83) | func TestOldBuggyLogicWouldReject(t *testing.T) { FILE: pkg/loaders/consul_loader/options.go method RegisterMetrics (line 17) | func (c *consulLoader) RegisterMetrics(reg *prometheus.Registry) { method WithActions (line 30) | func (c *consulLoader) WithActions(acts map[string]map[string]interface{... method WithTargetsDefaults (line 34) | func (c *consulLoader) WithTargetsDefaults(fn func(tc *types.TargetConfi... FILE: pkg/loaders/docker_loader/docker_loader.go constant loggingPrefix (line 40) | loggingPrefix = "[docker_loader] " constant watchInterval (line 41) | watchInterval = 30 * time.Second constant loaderType (line 42) | loaderType = "docker" function init (line 45) | func init() { type dockerLoader (line 57) | type dockerLoader struct method Init (line 116) | func (d *dockerLoader) Init(ctx context.Context, cfg map[string]interf... method setDefaults (line 206) | func (d *dockerLoader) setDefaults() { method createDockerClient (line 224) | func (d *dockerLoader) createDockerClient() (*dClient.Client, error) { method Start (line 241) | func (d *dockerLoader) Start(ctx context.Context) chan *loaders.Target... method RunOnce (line 264) | func (d *dockerLoader) RunOnce(ctx context.Context) (map[string]*types... method update (line 277) | func (d *dockerLoader) update(ctx context.Context, opChan chan *loader... method getTargets (line 291) | func (d *dockerLoader) getTargets(ctx context.Context) (map[string]*ty... method diff (line 467) | func (d *dockerLoader) diff(m map[string]*types.TargetConfig) *loaders... method String (line 492) | func (d *dockerLoader) String() string { method updateTargets (line 500) | func (d *dockerLoader) updateTargets(ctx context.Context, tcs map[stri... method readVars (line 534) | func (d *dockerLoader) readVars(ctx context.Context) error { method initializeAction (line 552) | func (d *dockerLoader) initializeAction(cfg map[string]interface{}) (a... method runActions (line 576) | func (d *dockerLoader) runActions(ctx context.Context, tcs map[string]... method runOnAddActions (line 641) | func (d *dockerLoader) runOnAddActions(ctx context.Context, tName stri... method runOnDeleteActions (line 669) | func (d *dockerLoader) runOnDeleteActions(ctx context.Context, tName s... type targetFilterComp (line 75) | type targetFilterComp struct type cfg (line 82) | type cfg struct type targetFilter (line 109) | type targetFilter struct function getPortNumber (line 683) | func getPortNumber(labels map[string]string, p string) uint16 { FILE: pkg/loaders/docker_loader/docker_loader_metrics.go function initMetrics (line 48) | func initMetrics() { function registerMetrics (line 56) | func registerMetrics(reg *prometheus.Registry) error { FILE: pkg/loaders/docker_loader/options.go method RegisterMetrics (line 16) | func (d *dockerLoader) RegisterMetrics(reg *prometheus.Registry) { method WithActions (line 29) | func (d *dockerLoader) WithActions(acts map[string]map[string]interface{... method WithTargetsDefaults (line 33) | func (d *dockerLoader) WithTargetsDefaults(fn func(tc *types.TargetConfi... FILE: pkg/loaders/file_loader/file_loader.go constant loggingPrefix (line 35) | loggingPrefix = "[file_loader] " constant watchInterval (line 36) | watchInterval = 30 * time.Second constant loaderType (line 37) | loaderType = "file" function init (line 40) | func init() { type fileLoader (line 55) | type fileLoader struct method Init (line 98) | func (f *fileLoader) Init(ctx context.Context, cfg map[string]interfac... method String (line 154) | func (f *fileLoader) String() string { method Start (line 162) | func (f *fileLoader) Start(ctx context.Context) chan *loaders.TargetOp... method RunOnce (line 183) | func (f *fileLoader) RunOnce(ctx context.Context) (map[string]*types.T... method update (line 194) | func (f *fileLoader) update(ctx context.Context, opChan chan *loaders.... method getTargets (line 215) | func (f *fileLoader) getTargets(ctx context.Context) (map[string]*type... method updateTargets (line 271) | func (f *fileLoader) updateTargets(ctx context.Context, tcs map[string... method readVars (line 307) | func (f *fileLoader) readVars(ctx context.Context) error { method initializeAction (line 325) | func (f *fileLoader) initializeAction(cfg map[string]interface{}) (act... method runActions (line 349) | func (f *fileLoader) runActions(ctx context.Context, tcs map[string]*t... method runOnAddActions (line 414) | func (d *fileLoader) runOnAddActions(ctx context.Context, tName string... method runOnDeleteActions (line 442) | func (d *fileLoader) runOnDeleteActions(ctx context.Context, tName str... type cfg (line 70) | type cfg struct FILE: pkg/loaders/file_loader/file_loader_metrics.go function initMetrics (line 48) | func initMetrics() { function registerMetrics (line 56) | func registerMetrics(reg *prometheus.Registry) error { FILE: pkg/loaders/file_loader/options.go method RegisterMetrics (line 16) | func (f *fileLoader) RegisterMetrics(reg *prometheus.Registry) { method WithActions (line 29) | func (f *fileLoader) WithActions(acts map[string]map[string]interface{}) { method WithTargetsDefaults (line 33) | func (f *fileLoader) WithTargetsDefaults(fn func(tc *types.TargetConfig)... FILE: pkg/loaders/http_loader/http_loader.go constant loggingPrefix (line 36) | loggingPrefix = "[http_loader] " constant loaderType (line 37) | loaderType = "http" constant defaultInterval (line 38) | defaultInterval = 1 * time.Minute constant defaultTimeout (line 39) | defaultTimeout = 50 * time.Second function init (line 42) | func init() { type httpLoader (line 53) | type httpLoader struct method Init (line 112) | func (h *httpLoader) Init(ctx context.Context, cfg map[string]interfac... method Start (line 171) | func (h *httpLoader) Start(ctx context.Context) chan *loaders.TargetOp... method RunOnce (line 192) | func (h *httpLoader) RunOnce(ctx context.Context) (map[string]*types.T... method update (line 203) | func (h *httpLoader) update(ctx context.Context, opChan chan *loaders.... method setDefaults (line 217) | func (h *httpLoader) setDefaults() error { method getTargets (line 230) | func (h *httpLoader) getTargets() (map[string]*types.TargetConfig, err... method updateTargets (line 310) | func (h *httpLoader) updateTargets(ctx context.Context, tcs map[string... method readVars (line 347) | func (h *httpLoader) readVars(ctx context.Context) error { method initializeAction (line 367) | func (h *httpLoader) initializeAction(cfg map[string]interface{}) (act... method runActions (line 391) | func (f *httpLoader) runActions(ctx context.Context, tcs map[string]*t... method runOnAddActions (line 443) | func (d *httpLoader) runOnAddActions(ctx context.Context, tName string... method runOnDeleteActions (line 471) | func (d *httpLoader) runOnDeleteActions(ctx context.Context, tName str... type cfg (line 68) | type cfg struct FILE: pkg/loaders/http_loader/http_loader_metrics.go function initMetrics (line 48) | func initMetrics() { function registerMetrics (line 56) | func registerMetrics(reg *prometheus.Registry) error { FILE: pkg/loaders/http_loader/http_loader_test.go type fakeAction (line 34) | type fakeAction struct method Init (line 40) | func (f *fakeAction) Init(cfg map[string]interface{}, opts ...actions.... method Run (line 46) | func (f *fakeAction) Run(ctx context.Context, aCtx *actions.Context) (... method NName (line 58) | func (f *fakeAction) NName() string { ret... method WithTargets (line 59) | func (f *fakeAction) WithTargets(map[string]*types.TargetConfig) {} method WithLogger (line 60) | func (f *fakeAction) WithLogger(*log.Logger) {} function newTestLoader (line 62) | func newTestLoader(t *testing.T) *httpLoader { function TestRunActions_AddAndDelete_NoDeadlock (line 73) | func TestRunActions_AddAndDelete_NoDeadlock(t *testing.T) { function TestRunActions_ReplaceSameName_NoDeadlock (line 117) | func TestRunActions_ReplaceSameName_NoDeadlock(t *testing.T) { function TestSetDefaults (line 165) | func TestSetDefaults(t *testing.T) { function TestReadVars_FromFileAndMerge (line 185) | func TestReadVars_FromFileAndMerge(t *testing.T) { function TestGetTargets_JSONAndTemplateAndNilEntries (line 212) | func TestGetTargets_JSONAndTemplateAndNilEntries(t *testing.T) { function TestInitializeAction (line 263) | func TestInitializeAction(t *testing.T) { function TestRunOnAddActions_ErrorRemovesTarget (line 286) | func TestRunOnAddActions_ErrorRemovesTarget(t *testing.T) { function TestUpdateTargets_NoChange_NoOp (line 304) | func TestUpdateTargets_NoChange_NoOp(t *testing.T) { function TestUpdateTargets_Add (line 327) | func TestUpdateTargets_Add(t *testing.T) { function TestUpdateTargets_Delete (line 346) | func TestUpdateTargets_Delete(t *testing.T) { function TestUpdateTargets_Change_TriggersDelAndAdd (line 365) | func TestUpdateTargets_Change_TriggersDelAndAdd(t *testing.T) { function TestUpdateTargets_Change_TriggersRename (line 385) | func TestUpdateTargets_Change_TriggersRename(t *testing.T) { FILE: pkg/loaders/http_loader/options.go method RegisterMetrics (line 16) | func (h *httpLoader) RegisterMetrics(reg *prometheus.Registry) { method WithActions (line 29) | func (h *httpLoader) WithActions(acts map[string]map[string]interface{}) { method WithTargetsDefaults (line 33) | func (h *httpLoader) WithTargetsDefaults(fn func(tc *types.TargetConfig)... FILE: pkg/loaders/loaders.go type TargetLoader (line 26) | type TargetLoader interface type Initializer (line 43) | type Initializer function Register (line 54) | func Register(name string, initFn Initializer) { type TargetOperation (line 58) | type TargetOperation struct function DecodeConfig (line 63) | func DecodeConfig(src, dst interface{}) error { function Diff (line 76) | func Diff(currentMap, newMap map[string]*types.TargetConfig) *TargetOper... FILE: pkg/loaders/loaders_test.go function TestGetInstancesTagsMatches (line 207) | func TestGetInstancesTagsMatches(t *testing.T) { FILE: pkg/loaders/option.go type Option (line 16) | type Option function WithRegistry (line 18) | func WithRegistry(reg *prometheus.Registry) Option { function WithActions (line 27) | func WithActions(acts map[string]map[string]interface{}) Option { function WithTargetsDefaults (line 36) | func WithTargetsDefaults(fn func(tc *types.TargetConfig) error) Option { FILE: pkg/lockers/consul_locker/consul_locker.go constant defaultSessionTTL (line 27) | defaultSessionTTL = 10 * time.Second constant defaultRetryTimer (line 28) | defaultRetryTimer = 2 * time.Second constant defaultDelay (line 29) | defaultDelay = 5 * time.Second constant loggingPrefix (line 30) | loggingPrefix = "[consul_locker] " function init (line 33) | func init() { type ConsulLocker (line 46) | type ConsulLocker struct method Init (line 74) | func (c *ConsulLocker) Init(ctx context.Context, cfg map[string]interf... method Lock (line 107) | func (c *ConsulLocker) Lock(ctx context.Context, key string, val []byt... method KeepLock (line 164) | func (c *ConsulLocker) KeepLock(ctx context.Context, key string) (chan... method Unlock (line 192) | func (c *ConsulLocker) Unlock(ctx context.Context, key string) error { method Stop (line 221) | func (c *ConsulLocker) Stop() error { method SetLogger (line 232) | func (c *ConsulLocker) SetLogger(logger *log.Logger) { method setDefaults (line 241) | func (c *ConsulLocker) setDefaults() error { method String (line 260) | func (c *ConsulLocker) String() string { type config (line 56) | type config struct type locks (line 69) | type locks struct FILE: pkg/lockers/consul_locker/consul_registration.go constant defaultWatchTimeout (line 22) | defaultWatchTimeout = 1 * time.Minute method Register (line 24) | func (c *ConsulLocker) Register(ctx context.Context, s *lockers.ServiceR... method Deregister (line 71) | func (c *ConsulLocker) Deregister(s string) error { method WatchServices (line 80) | func (c *ConsulLocker) WatchServices(ctx context.Context, serviceName st... method watch (line 120) | func (c *ConsulLocker) watch(ctx context.Context, qOpts *api.QueryOption... method GetServices (line 156) | func (c *ConsulLocker) GetServices(ctx context.Context, serviceName stri... method IsLocked (line 176) | func (c *ConsulLocker) IsLocked(ctx context.Context, k string) (bool, er... method List (line 188) | func (c *ConsulLocker) List(ctx context.Context, prefix string) (map[str... FILE: pkg/lockers/k8s_locker/k8s_locker.go constant defaultLeaseDuration (line 36) | defaultLeaseDuration = 10 * time.Second constant defaultRetryTimer (line 37) | defaultRetryTimer = 2 * time.Second constant loggingPrefix (line 38) | loggingPrefix = "[k8s_locker] " constant defaultNamespace (line 39) | defaultNamespace = "default" constant origKeyName (line 40) | origKeyName = "original-key" function init (line 43) | func init() { type k8sLocker (line 55) | type k8sLocker struct method Init (line 79) | func (k *k8sLocker) Init(ctx context.Context, cfg map[string]interface... method Lock (line 104) | func (k *k8sLocker) Lock(ctx context.Context, key string, val []byte) ... method KeepLock (line 214) | func (k *k8sLocker) KeepLock(ctx context.Context, key string) (chan st... method Unlock (line 269) | func (k *k8sLocker) Unlock(ctx context.Context, key string) error { method unlock (line 278) | func (k *k8sLocker) unlock(ctx context.Context, key string) error { method Stop (line 291) | func (k *k8sLocker) Stop() error { method SetLogger (line 302) | func (k *k8sLocker) SetLogger(logger *log.Logger) { method setDefaults (line 311) | func (k *k8sLocker) setDefaults() error { method String (line 327) | func (k *k8sLocker) String() string { method compareLeases (line 339) | func (l *k8sLocker) compareLeases(l1, l2 *coordinationv1.Lease) int { method getIdentity (line 364) | func (l *k8sLocker) getIdentity() string { type config (line 66) | type config struct type lock (line 74) | type lock struct FILE: pkg/lockers/k8s_locker/k8s_registration.go constant defaultWatchTimeout (line 26) | defaultWatchTimeout = 10 * time.Second method Register (line 28) | func (k *k8sLocker) Register(ctx context.Context, s *lockers.ServiceRegi... method Deregister (line 32) | func (k *k8sLocker) Deregister(s string) error { method WatchServices (line 36) | func (k *k8sLocker) WatchServices(ctx context.Context, serviceName strin... method watch (line 58) | func (k *k8sLocker) watch(ctx context.Context, serviceName string, _ []s... function parseEndpoint (line 117) | func parseEndpoint(endpoint *corev1.Endpoints) ([]*lockers.Service, erro... method GetServices (line 149) | func (k *k8sLocker) GetServices(ctx context.Context, serviceName string,... method IsLocked (line 158) | func (k *k8sLocker) IsLocked(ctx context.Context, key string) (bool, err... method List (line 178) | func (k *k8sLocker) List(ctx context.Context, prefix string) (map[string... FILE: pkg/lockers/locker.go type Locker (line 22) | type Locker interface type Initializer (line 60) | type Initializer type Option (line 64) | type Option function WithLogger (line 66) | func WithLogger(logger *log.Logger) Option { function Register (line 78) | func Register(name string, initFn Initializer) { function DecodeConfig (line 82) | func DecodeConfig(src, dst interface{}) error { type ServiceRegistration (line 95) | type ServiceRegistration struct type Service (line 104) | type Service struct FILE: pkg/lockers/redis_locker/redis_locker.go constant defaultLeaseDuration (line 23) | defaultLeaseDuration = 10 * time.Second constant defaultRetryTimer (line 24) | defaultRetryTimer = 2 * time.Second constant defaultPollTimer (line 25) | defaultPollTimer = 10 * time.Second constant loggingPrefix (line 26) | loggingPrefix = "[redis_locker] " function init (line 29) | func init() { type redisLocker (line 42) | type redisLocker struct method Init (line 65) | func (k *redisLocker) Init(ctx context.Context, cfg map[string]interfa... method Lock (line 89) | func (k *redisLocker) Lock(ctx context.Context, key string, val []byte... method KeepLock (line 139) | func (k *redisLocker) KeepLock(ctx context.Context, key string) (chan ... method Unlock (line 177) | func (k *redisLocker) Unlock(ctx context.Context, key string) error { method Stop (line 200) | func (k *redisLocker) Stop() error { method SetLogger (line 215) | func (k *redisLocker) SetLogger(logger *log.Logger) { method setDefaults (line 224) | func (k *redisLocker) setDefaults() error { method String (line 240) | func (k *redisLocker) String() string { method genRandValue (line 251) | func (k *redisLocker) genRandValue() (string, error) { type config (line 54) | type config struct FILE: pkg/lockers/redis_locker/redis_registration.go constant defaultWatchTimeout (line 17) | defaultWatchTimeout = 10 * time.Second type redisRegistration (line 22) | type redisRegistration struct method Register (line 30) | func (k *redisLocker) Register(ctx context.Context, s *lockers.ServiceRe... method Deregister (line 85) | func (k *redisLocker) Deregister(s string) error { method WatchServices (line 98) | func (k *redisLocker) WatchServices(ctx context.Context, serviceName str... method watch (line 123) | func (k *redisLocker) watch(ctx context.Context, serviceName string, tag... method getBatchOfKeys (line 135) | func (k *redisLocker) getBatchOfKeys(ctx context.Context, key string, ba... method GetServices (line 161) | func (k *redisLocker) GetServices(ctx context.Context, serviceName strin... method IsLocked (line 231) | func (k *redisLocker) IsLocked(ctx context.Context, key string) (bool, e... method List (line 243) | func (k *redisLocker) List(ctx context.Context, prefix string) (map[stri... function matchTags (line 294) | func matchTags(tags, wantedTags []string) bool { FILE: pkg/logging/logging.go function GetLogger (line 22) | func GetLogger(level slog.Level, args ...any) *slog.Logger { function NewLogger (line 27) | func NewLogger(store store.Store[any], args ...any) *slog.Logger { FILE: pkg/outputs/asciigraph_output/asciigraph.go constant loggingPrefix (line 43) | loggingPrefix = "[asciigraph_output:%s] " constant defaultRefreshTimer (line 44) | defaultRefreshTimer = time.Second constant defaultPrecision (line 45) | defaultPrecision = 2 constant defaultTimeout (line 46) | defaultTimeout = 10 * time.Second function init (line 55) | func init() { type asciigraphOutput (line 69) | type asciigraphOutput struct method String (line 129) | func (a *asciigraphOutput) String() string { method setEventProcessors (line 137) | func (a *asciigraphOutput) setEventProcessors(logger *log.Logger) error { method setLogger (line 155) | func (a *asciigraphOutput) setLogger(logger *log.Logger) { method Init (line 163) | func (a *asciigraphOutput) Init(ctx context.Context, name string, cfg ... method Update (line 205) | func (a *asciigraphOutput) Update(ctx context.Context, cfg map[string]... method setDefaults (line 209) | func (a *asciigraphOutput) setDefaults() error { method Write (line 249) | func (a *asciigraphOutput) Write(ctx context.Context, rsp proto.Messag... method WriteEvent (line 269) | func (a *asciigraphOutput) WriteEvent(ctx context.Context, ev *formatt... method Close (line 280) | func (a *asciigraphOutput) Close() error { method RegisterMetrics (line 285) | func (a *asciigraphOutput) RegisterMetrics(reg *prometheus.Registry) { method SetName (line 288) | func (a *asciigraphOutput) SetName(name string) {} method SetClusterName (line 290) | func (a *asciigraphOutput) SetClusterName(name string) {} method SetTargetsConfig (line 292) | func (a *asciigraphOutput) SetTargetsConfig(map[string]*types.TargetCo... method graph (line 294) | func (a *asciigraphOutput) graph(ctx context.Context) { method plot (line 310) | func (a *asciigraphOutput) plot(e *formatters.EventMsg) { method updateData (line 344) | func (a *asciigraphOutput) updateData(e *formatters.EventMsg) { method getOrCreateSerie (line 363) | func (a *asciigraphOutput) getOrCreateSerie(name string) *series { method setCaption (line 381) | func (a *asciigraphOutput) setCaption() { method buildData (line 399) | func (a *asciigraphOutput) buildData() ([][]float64, []asciigraph.Ansi... method buildSeriesName (line 456) | func (a *asciigraphOutput) buildSeriesName(e *formatters.EventMsg) str... method pickColor (line 527) | func (a *asciigraphOutput) pickColor() asciigraph.AnsiColor { method getTermSize (line 536) | func (a *asciigraphOutput) getTermSize() error { type series (line 89) | type series struct type cfg (line 96) | type cfg struct function splitEvent (line 428) | func splitEvent(e *formatters.EventMsg) []*formatters.EventMsg { function toFloat (line 487) | func toFloat(v interface{}) (float64, error) { FILE: pkg/outputs/file/file_metrics.go method initMetrics (line 47) | func (f *File) initMetrics(name string) { method registerMetrics (line 54) | func (f *File) registerMetrics() error { FILE: pkg/outputs/file/file_output.go constant defaultFormat (line 37) | defaultFormat = "json" constant defaultWriteConcurrency (line 38) | defaultWriteConcurrency = 1000 constant defaultSeparator (line 39) | defaultSeparator = "\n" constant loggingPrefix (line 40) | loggingPrefix = "[file_output:%s] " constant outputType (line 44) | outputType = "file" constant fileType_STDOUT (line 45) | fileType_STDOUT = "stdout" constant fileType_STDERR (line 46) | fileType_STDERR = "stderr" function init (line 49) | func init() { type File (line 63) | type File struct method init (line 55) | func (f *File) init() { method String (line 112) | func (f *File) String() string { method setDefaults (line 124) | func (f *File) setDefaults(cfg *config) error { method Init (line 156) | func (f *File) Init(ctx context.Context, name string, cfg map[string]a... method Validate (line 247) | func (f *File) Validate(cfg map[string]any) error { method openFile (line 259) | func (f *File) openFile(cfg *config) (file, error) { method Update (line 284) | func (f *File) Update(ctx context.Context, cfgMap map[string]any) error { method UpdateProcessor (line 383) | func (f *File) UpdateProcessor(name string, pcfg map[string]any) error { method Write (line 408) | func (f *File) Write(ctx context.Context, rsp proto.Message, meta outp... method WriteEvent (line 476) | func (f *File) WriteEvent(ctx context.Context, ev *formatters.EventMsg) { method Close (line 543) | func (f *File) Close() error { method buildEventProcessors (line 552) | func (f *File) buildEventProcessors(logger *log.Logger, eventProcessor... method setLogger (line 570) | func (f *File) setLogger(logger *log.Logger) { type dynConfig (line 77) | type dynConfig struct type config (line 85) | type config struct type file (line 106) | type file interface function fileNeedsReopen (line 577) | func fileNeedsReopen(old, new *config) bool { function rotationChanged (line 587) | func rotationChanged(old, new *rotationConfig) bool { FILE: pkg/outputs/file/rotating_file.go type rotationConfig (line 8) | type rotationConfig struct method SetDefaults (line 15) | func (r *rotationConfig) SetDefaults() { type rotatingFile (line 28) | type rotatingFile struct method Close (line 48) | func (r *rotatingFile) Close() error { method Name (line 53) | func (r *rotatingFile) Name() string { method Write (line 58) | func (r *rotatingFile) Write(b []byte) (int, error) { function newRotatingFile (line 33) | func newRotatingFile(cfg *config) *rotatingFile { FILE: pkg/outputs/gnmi_output/gnmi_output.go constant loggingPrefix (line 39) | loggingPrefix = "[gnmi_output:%s] " constant defaultMaxSubscriptions (line 40) | defaultMaxSubscriptions = 64 constant defaultMaxGetRPC (line 41) | defaultMaxGetRPC = 64 constant defaultAddress (line 42) | defaultAddress = ":57400" function init (line 45) | func init() { type gNMIOutput (line 55) | type gNMIOutput struct method Init (line 78) | func (g *gNMIOutput) Init(ctx context.Context, name string, cfg map[st... method Update (line 117) | func (g *gNMIOutput) Update(ctx context.Context, cfg map[string]any) e... method Write (line 121) | func (g *gNMIOutput) Write(ctx context.Context, rsp proto.Message, met... method WriteEvent (line 153) | func (g *gNMIOutput) WriteEvent(context.Context, *formatters.EventMsg) {} method Close (line 155) | func (g *gNMIOutput) Close() error { method registerMetrics (line 161) | func (g *gNMIOutput) registerMetrics() { method String (line 176) | func (g *gNMIOutput) String() string { method setDefaults (line 184) | func (g *gNMIOutput) setDefaults() error { method startGRPCServer (line 200) | func (g *gNMIOutput) startGRPCServer() error { method serverOpts (line 227) | func (g *gNMIOutput) serverOpts() ([]grpc.ServerOption, error) { type config (line 67) | type config struct FILE: pkg/outputs/gnmi_output/gnmi_server.go type streamClient (line 40) | type streamClient struct type server (line 48) | type server struct method Update (line 91) | func (s *server) Update(n *ctree.Leaf) { method handleSubscriptionRequest (line 118) | func (s *server) handleSubscriptionRequest(sc *streamClient) { method sendStreamingResults (line 155) | func (s *server) sendStreamingResults(sc *streamClient) { method handlePolledSubscription (line 201) | func (s *server) handlePolledSubscription(sc *streamClient) { method sendSubscribeResponse (line 223) | func (s *server) sendSubscribeResponse(r *resp, _ *streamClient) error { type matchClient (line 61) | type matchClient struct method Update (line 74) | func (m *matchClient) Update(n interface{}) { type syncMarker (line 66) | type syncMarker struct type resp (line 68) | type resp struct method newServer (line 81) | func (g *gNMIOutput) newServer() *server { function addSubscription (line 100) | func addSubscription(m *match.Match, s *gnmi.SubscriptionList, c *matchC... function makeSubscribeResponse (line 232) | func makeSubscribeResponse(n interface{}, _ uint32) (*gnmi.SubscribeResp... FILE: pkg/outputs/gnmi_output/gnmi_server_get.go method Get (line 30) | func (s *server) Get(ctx context.Context, req *gnmi.GetRequest) (*gnmi.G... function targetConfigToNotification (line 148) | func targetConfigToNotification(tc *types.TargetConfig) *gnmi.Notificati... method selectTargets (line 302) | func (s *server) selectTargets(target string) (map[string]*types.TargetC... method handlegNMIcInternalGet (line 323) | func (s *server) handlegNMIcInternalGet(_ context.Context, req *gnmi.Get... FILE: pkg/outputs/gnmi_output/gnmi_server_set.go method Set (line 28) | func (s *server) Set(ctx context.Context, req *gnmi.SetRequest) (*gnmi.S... FILE: pkg/outputs/gnmi_output/gnmi_server_subscribe.go method Subscribe (line 24) | func (s *server) Subscribe(stream gnmi.GNMI_SubscribeServer) error { FILE: pkg/outputs/influxdb_output/influxdb_cache.go method initCache (line 23) | func (i *influxDBOutput) initCache(ctx context.Context, name string) err... method stopCache (line 39) | func (i *influxDBOutput) stopCache() { method runCache (line 45) | func (i *influxDBOutput) runCache(ctx context.Context, name string) { method readCache (line 65) | func (i *influxDBOutput) readCache(ctx context.Context) { function cacheCfgEqual (line 118) | func cacheCfgEqual(a, b *cache.Config) bool { FILE: pkg/outputs/influxdb_output/influxdb_output.go constant defaultURL (line 43) | defaultURL = "http://localhost:8086" constant defaultBatchSize (line 44) | defaultBatchSize = 1000 constant defaultFlushTimer (line 45) | defaultFlushTimer = 10 * time.Second constant minHealthCheckPeriod (line 46) | minHealthCheckPeriod = 30 * time.Second constant defaultCacheFlushTimer (line 47) | defaultCacheFlushTimer = 5 * time.Second constant numWorkers (line 49) | numWorkers = 1 constant loggingPrefix (line 50) | loggingPrefix = "[influxdb_output:%s] " constant deleteTagValue (line 51) | deleteTagValue = "true" function init (line 54) | func init() { type influxDBOutput (line 60) | type influxDBOutput struct method init (line 85) | func (i *influxDBOutput) init() { method String (line 124) | func (k *influxDBOutput) String() string { method buildEventProcessors (line 136) | func (i *influxDBOutput) buildEventProcessors(logger *log.Logger, even... method setLogger (line 155) | func (i *influxDBOutput) setLogger(logger *log.Logger) { method Init (line 162) | func (i *influxDBOutput) Init(ctx context.Context, name string, cfg ma... method setDefaultsFor (line 273) | func (i *influxDBOutput) setDefaultsFor(c *Config) { method Validate (line 336) | func (i *influxDBOutput) Validate(cfg map[string]any) error { method Update (line 353) | func (i *influxDBOutput) Update(ctx context.Context, cfg map[string]an... method UpdateProcessor (line 496) | func (i *influxDBOutput) UpdateProcessor(name string, pcfg map[string]... method Write (line 520) | func (i *influxDBOutput) Write(ctx context.Context, rsp proto.Message,... method WriteEvent (line 566) | func (i *influxDBOutput) WriteEvent(ctx context.Context, ev *formatter... method Close (line 590) | func (i *influxDBOutput) Close() error { method healthCheck (line 619) | func (i *influxDBOutput) healthCheck(ctx context.Context) { method health (line 637) | func (i *influxDBOutput) health(ctx context.Context) error { method worker (line 689) | func (i *influxDBOutput) worker(ctx context.Context, idx int) { method convertUints (line 788) | func (i *influxDBOutput) convertUints(ev *formatters.EventMsg) { type dynConfig (line 95) | type dynConfig struct type Config (line 100) | type Config struct function clientOptsFor (line 294) | func clientOptsFor(c *Config) (*influxdb2.Options, error) { function clientNeedsRebuild (line 814) | func clientNeedsRebuild(old, new *Config) bool { FILE: pkg/outputs/kafka_output/kafka_metrics.go method initMetrics (line 47) | func (k *kafkaOutput) initMetrics(name string) { method registerMetrics (line 54) | func (k *kafkaOutput) registerMetrics() error { FILE: pkg/outputs/kafka_output/kafka_output.go constant defaultKafkaMaxRetry (line 41) | defaultKafkaMaxRetry = 2 constant defaultKafkaTimeout (line 42) | defaultKafkaTimeout = 5 * time.Second constant defaultKafkaTopic (line 43) | defaultKafkaTopic = "telemetry" constant defaultNumWorkers (line 44) | defaultNumWorkers = 1 constant defaultFormat (line 45) | defaultFormat = "event" constant defaultRecoveryWaitTime (line 46) | defaultRecoveryWaitTime = 10 * time.Second constant defaultAddress (line 47) | defaultAddress = "localhost:9092" constant loggingPrefixTpl (line 48) | loggingPrefixTpl = "[kafka_output:%s] " constant defaultCompressionCodec (line 49) | defaultCompressionCodec = sarama.CompressionNone constant requiredAcksNoResponse (line 51) | requiredAcksNoResponse = "no-response" constant requiredAcksWaitForLocal (line 52) | requiredAcksWaitForLocal = "wait-for-local" constant requiredAcksWaitForAll (line 53) | requiredAcksWaitForAll = "wait-for-all" function init (line 62) | func init() { type kafkaOutput (line 79) | type kafkaOutput struct method init (line 68) | func (k *kafkaOutput) init() { method String (line 134) | func (k *kafkaOutput) String() string { method buildEventProcessors (line 146) | func (k *kafkaOutput) buildEventProcessors(logger *log.Logger, eventPr... method Init (line 166) | func (k *kafkaOutput) Init(ctx context.Context, name string, cfg map[s... method Validate (line 253) | func (k *kafkaOutput) Validate(cfg map[string]any) error { method Update (line 274) | func (k *kafkaOutput) Update(ctx context.Context, cfg map[string]any) ... method setDefaultsFor (line 402) | func (k *kafkaOutput) setDefaultsFor(cfg *config) error { method UpdateProcessor (line 455) | func (k *kafkaOutput) UpdateProcessor(name string, pcfg map[string]any... method Write (line 480) | func (k *kafkaOutput) Write(ctx context.Context, rsp proto.Message, me... method WriteEvent (line 507) | func (k *kafkaOutput) WriteEvent(ctx context.Context, ev *formatters.E... method Close (line 510) | func (k *kafkaOutput) Close() error { method worker (line 520) | func (k *kafkaOutput) worker(ctx context.Context, idx int, kafkaCfg *s... method asyncProducerWorker (line 529) | func (k *kafkaOutput) asyncProducerWorker(ctx context.Context, idx int... method syncProducerWorker (line 642) | func (k *kafkaOutput) syncProducerWorker(ctx context.Context, idx int,... method createConfigFor (line 733) | func (k *kafkaOutput) createConfigFor(c *config) (*sarama.Config, erro... method partitionKey (line 808) | func (k *kafkaOutput) partitionKey(m outputs.Meta) []byte { method selectTopic (line 820) | func (k *kafkaOutput) selectTopic(m outputs.Meta) string { type dynConfig (line 97) | type dynConfig struct type config (line 105) | type config struct function needsProducerRestart (line 852) | func needsProducerRestart(old, nw *config) bool { function needsWorkerRestart (line 873) | func needsWorkerRestart(old, nw *config) bool { function channelNeedsSwap (line 881) | func channelNeedsSwap(old, nw *config) bool { function saslEq (line 888) | func saslEq(a, b *types.SASL) bool { FILE: pkg/outputs/kafka_output/kafka_scram_client.go type XDGSCRAMClient (line 22) | type XDGSCRAMClient struct method Begin (line 28) | func (x *XDGSCRAMClient) Begin(userName, password, authzID string) (er... method Step (line 37) | func (x *XDGSCRAMClient) Step(challenge string) (response string, err ... method Done (line 42) | func (x *XDGSCRAMClient) Done() bool { FILE: pkg/outputs/nats_outputs/jetstream/jetstream_output.go constant loggingPrefix (line 43) | loggingPrefix = "[jetstream_output:%s] " constant defaultSubjectName (line 44) | defaultSubjectName = "telemetry" constant defaultFormat (line 45) | defaultFormat = "event" constant defaultAddress (line 46) | defaultAddress = "localhost:4222" constant natsConnectWait (line 47) | natsConnectWait = 2 * time.Second constant defaultNumWorkers (line 48) | defaultNumWorkers = 1 constant defaultWriteTimeout (line 49) | defaultWriteTimeout = 5 * time.Second function init (line 52) | func init() { type subjectFormat (line 58) | type subjectFormat constant subjectFormat_Static (line 61) | subjectFormat_Static = "static" constant subjectFormat_TargetSub (line 62) | subjectFormat_TargetSub = "target.subscription" constant subjectFormat_SubTarget (line 63) | subjectFormat_SubTarget = "subscription.target" constant subjectFormat_SubTargetPath (line 64) | subjectFormat_SubTargetPath = "subscription.target.path" constant subjectFormat_SubTargetPathWithKeys (line 65) | subjectFormat_SubTargetPathWithKeys = "subscription.target.pathKeys" type config (line 68) | type config struct method String (line 494) | func (c *config) String() string { type createStreamConfig (line 93) | type createStreamConfig struct type jetstreamOutput (line 105) | type jetstreamOutput struct method init (line 134) | func (n *jetstreamOutput) init() { method Init (line 144) | func (n *jetstreamOutput) Init(ctx context.Context, name string, cfg m... method setDefaultsFor (line 229) | func (n *jetstreamOutput) setDefaultsFor(cfg *config) error { method Validate (line 289) | func (n *jetstreamOutput) Validate(cfg map[string]any) error { method Update (line 310) | func (n *jetstreamOutput) Update(ctx context.Context, cfg map[string]a... method UpdateProcessor (line 431) | func (n *jetstreamOutput) UpdateProcessor(name string, pcfg map[string... method Write (line 455) | func (n *jetstreamOutput) Write(ctx context.Context, rsp proto.Message... method WriteEvent (line 482) | func (n *jetstreamOutput) WriteEvent(ctx context.Context, ev *formatte... method Close (line 484) | func (n *jetstreamOutput) Close() error { method String (line 502) | func (n *jetstreamOutput) String() string { method buildEventProcessors (line 511) | func (n *jetstreamOutput) buildEventProcessors(logger *log.Logger, eve... method setLogger (line 529) | func (n *jetstreamOutput) setLogger(logger *log.Logger) { method worker (line 536) | func (n *jetstreamOutput) worker(ctx context.Context, i int) { method newCustomDialer (line 684) | func (n *jetstreamOutput) newCustomDialer(ctx context.Context) *custom... method createNATSConn (line 707) | func (n *jetstreamOutput) createNATSConn(ctx context.Context, c *confi... method subjectName (line 748) | func (n *jetstreamOutput) subjectName(m proto.Message, meta outputs.Me... method createStream (line 970) | func (n *jetstreamOutput) createStream(js nats.JetStreamContext, cfg *... type dynConfig (line 127) | type dynConfig struct type customDialer (line 679) | type customDialer struct method Dial (line 688) | func (d *customDialer) Dial(network, address string) (net.Conn, error) { function splitSubscribeResponse (line 843) | func splitSubscribeResponse(m *gnmi.SubscribeResponse_Update) []proto.Me... function gNMIPathToSubject (line 873) | func gNMIPathToSubject(p *gnmi.Path, keys bool) string { function sanitizeKey (line 914) | func sanitizeKey(k string) string { function storageType (line 942) | func storageType(s string) nats.StorageType { function isValidRetentionPolicy (line 952) | func isValidRetentionPolicy(policy string) bool { function retentionPolicy (line 960) | func retentionPolicy(s string) nats.RetentionPolicy { function channelNeedsSwap (line 1005) | func channelNeedsSwap(old, nw *config) bool { function needsWorkerRestart (line 1012) | func needsWorkerRestart(old, nw *config) bool { function streamChanged (line 1023) | func streamChanged(old, nw *config) bool { FILE: pkg/outputs/nats_outputs/jetstream/jetstream_output_metrics.go method initMetrics (line 47) | func (n *jetstreamOutput) initMetrics() { method registerMetrics (line 58) | func (n *jetstreamOutput) registerMetrics() error { FILE: pkg/outputs/nats_outputs/jetstream/jetstream_output_test.go function Test_isValidRetentionPolicy (line 12) | func Test_isValidRetentionPolicy(t *testing.T) { function Test_retentionPolicy (line 68) | func Test_retentionPolicy(t *testing.T) { function Test_setDefaults (line 124) | func Test_setDefaults(t *testing.T) { FILE: pkg/outputs/nats_outputs/nats/nats_metrics.go method initMetrics (line 47) | func (n *NatsOutput) initMetrics() { method registerMetrics (line 58) | func (n *NatsOutput) registerMetrics() error { FILE: pkg/outputs/nats_outputs/nats/nats_output.go constant natsConnectWait (line 40) | natsConnectWait = 2 * time.Second constant natsReconnectBufferSize (line 41) | natsReconnectBufferSize = 100 * 1024 * 1024 constant defaultSubjectName (line 42) | defaultSubjectName = "telemetry" constant defaultFormat (line 43) | defaultFormat = "event" constant defaultNumWorkers (line 44) | defaultNumWorkers = 1 constant defaultWriteTimeout (line 45) | defaultWriteTimeout = 5 * time.Second constant defaultAddress (line 46) | defaultAddress = "localhost:4222" constant loggingPrefix (line 47) | loggingPrefix = "[nats_output:%s] " function init (line 50) | func init() { type NatsOutput (line 65) | type NatsOutput struct method init (line 56) | func (n *NatsOutput) init() { method String (line 112) | func (n *NatsOutput) String() string { method buildEventProcessors (line 121) | func (n *NatsOutput) buildEventProcessors(logger *log.Logger, eventPro... method setLogger (line 139) | func (n *NatsOutput) setLogger(logger *log.Logger) { method Init (line 147) | func (n *NatsOutput) Init(ctx context.Context, name string, cfg map[st... method setDefaultsFor (line 231) | func (n *NatsOutput) setDefaultsFor(cfg *Config) { method Validate (line 255) | func (n *NatsOutput) Validate(cfg map[string]any) error { method Update (line 272) | func (n *NatsOutput) Update(ctx context.Context, cfg map[string]any) e... method UpdateProcessor (line 382) | func (n *NatsOutput) UpdateProcessor(name string, pcfg map[string]any)... method Write (line 407) | func (n *NatsOutput) Write(ctx context.Context, rsp proto.Message, met... method WriteEvent (line 433) | func (n *NatsOutput) WriteEvent(ctx context.Context, ev *formatters.Ev... method Close (line 436) | func (n *NatsOutput) Close() error { method createNATSConn (line 443) | func (n *NatsOutput) createNATSConn(c *Config, i int) (*nats.Conn, err... method Dial (line 485) | func (n *NatsOutput) Dial(network, address string) (net.Conn, error) { method worker (line 513) | func (n *NatsOutput) worker(ctx context.Context, i int) { method subjectName (line 618) | func (n *NatsOutput) subjectName(meta outputs.Meta, cfg *Config) string { type dynConfig (line 81) | type dynConfig struct type Config (line 89) | type Config struct function channelNeedsSwap (line 657) | func channelNeedsSwap(old, nw *Config) bool { function needsWorkerRestart (line 664) | func needsWorkerRestart(old, nw *Config) bool { FILE: pkg/outputs/options.go type OutputOptions (line 18) | type OutputOptions struct type Option (line 26) | type Option function WithLogger (line 28) | func WithLogger(logger *log.Logger) Option { function WithRegistry (line 35) | func WithRegistry(reg *prometheus.Registry) Option { function WithName (line 42) | func WithName(name string) Option { function WithClusterName (line 49) | func WithClusterName(name string) Option { function WithConfigStore (line 56) | func WithConfigStore(st store.Store[any]) Option { FILE: pkg/outputs/otlp_output/otlp_converter.go method convertToOTLP (line 36) | func (o *otlpOutput) convertToOTLP(events []*formatters.EventMsg) *metri... method groupByResource (line 106) | func (o *otlpOutput) groupByResource(events []*formatters.EventMsg) map[... method createResource (line 123) | func (o *otlpOutput) createResource(cfg *config, event *formatters.Event... method convertEventToMetrics (line 149) | func (o *otlpOutput) convertEventToMetrics(cfg *config, event *formatter... method buildMetricName (line 215) | func (o *otlpOutput) buildMetricName(cfg *config, event *formatters.Even... method extractAttributesForMetric (line 255) | func (o *otlpOutput) extractAttributesForMetric(cfg *config, event *form... method isCounter (line 272) | func (o *otlpOutput) isCounter(cfg *config, valueName string) bool { method createNumberDataPointWithValue (line 282) | func (o *otlpOutput) createNumberDataPointWithValue(cfg *config, event *... method createGaugeWithString (line 332) | func (o *otlpOutput) createGaugeWithString(event *formatters.EventMsg, a... method validateRequest (line 352) | func (o *otlpOutput) validateRequest(req *metricsv1.ExportMetricsService... method validateMetricData (line 399) | func (o *otlpOutput) validateMetricData(rmIdx, smIdx, mIdx int, m *metri... method sendGRPC (line 450) | func (o *otlpOutput) sendGRPC(ctx context.Context, req *metricsv1.Export... FILE: pkg/outputs/otlp_output/otlp_output.go constant outputType (line 43) | outputType = "otlp" constant defaultTimeout (line 44) | defaultTimeout = 10 * time.Second constant defaultBatchSize (line 45) | defaultBatchSize = 1000 constant defaultNumWorkers (line 46) | defaultNumWorkers = 1 constant defaultMaxRetries (line 47) | defaultMaxRetries = 3 constant defaultProtocol (line 48) | defaultProtocol = "grpc" constant loggingPrefix (line 49) | loggingPrefix = "[otlp_output:%s] " function init (line 52) | func init() { type otlpOutput (line 59) | type otlpOutput struct method initFields (line 157) | func (o *otlpOutput) initFields() { method String (line 166) | func (o *otlpOutput) String() string { method Init (line 176) | func (o *otlpOutput) Init(ctx context.Context, name string, cfg map[st... method Update (line 259) | func (o *otlpOutput) Update(ctx context.Context, cfg map[string]any) e... method Validate (line 357) | func (o *otlpOutput) Validate(cfg map[string]any) error { method UpdateProcessor (line 367) | func (o *otlpOutput) UpdateProcessor(name string, pcfg map[string]any)... method Write (line 392) | func (o *otlpOutput) Write(ctx context.Context, rsp proto.Message, met... method WriteEvent (line 445) | func (o *otlpOutput) WriteEvent(ctx context.Context, ev *formatters.Ev... method Close (line 468) | func (o *otlpOutput) Close() error { method worker (line 492) | func (o *otlpOutput) worker(ctx context.Context, id int) { method sendBatch (line 544) | func (o *otlpOutput) sendBatch(ctx context.Context, events []*formatte... method setDefaultsFor (line 580) | func (o *otlpOutput) setDefaultsFor(c *config) { method validateConfig (line 611) | func (o *otlpOutput) validateConfig(c *config) error { method buildEventProcessors (line 626) | func (o *otlpOutput) buildEventProcessors(cfg *config) ([]formatters.E... method initGRPCFor (line 634) | func (o *otlpOutput) initGRPCFor(cfg *config) (*grpcClientState, error) { method createTLSConfigFor (line 659) | func (o *otlpOutput) createTLSConfigFor(cfg *config) (*tls.Config, err... method registerMetrics (line 678) | func (o *otlpOutput) registerMetrics() error { type dynConfig (line 78) | type dynConfig struct type grpcClientState (line 82) | type grpcClientState struct type config (line 88) | type config struct function channelNeedsSwap (line 706) | func channelNeedsSwap(old, nw *config) bool { function needsWorkerRestart (line 713) | func needsWorkerRestart(old, nw *config) bool { function needsGRPCRebuild (line 722) | func needsGRPCRebuild(old, nw *config) bool { FILE: pkg/outputs/otlp_output/otlp_output_test.go function newTestOutput (line 35) | func newTestOutput(cfg *config) *otlpOutput { function TestOTLP_MessageStructure (line 52) | func TestOTLP_MessageStructure(t *testing.T) { function TestOTLP_ResourceAttributes (line 89) | func TestOTLP_ResourceAttributes(t *testing.T) { function TestOTLP_PathKeysAsAttributes (line 121) | func TestOTLP_PathKeysAsAttributes(t *testing.T) { function TestOTLP_MetricTypeDetection (line 148) | func TestOTLP_MetricTypeDetection(t *testing.T) { function TestOTLP_GRPCTransport (line 207) | func TestOTLP_GRPCTransport(t *testing.T) { function TestOTLP_ConfigValidation (line 235) | func TestOTLP_ConfigValidation(t *testing.T) { function TestOTLP_StringValuesAsAttributes (line 298) | func TestOTLP_StringValuesAsAttributes(t *testing.T) { function TestOTLP_SubscriptionNameMapping (line 329) | func TestOTLP_SubscriptionNameMapping(t *testing.T) { function TestBuildMetricName_StripLeadingUnderscore (line 359) | func TestBuildMetricName_StripLeadingUnderscore(t *testing.T) { function createTestEvent (line 429) | func createTestEvent() *formatters.EventMsg { function getAttributeValue (line 442) | func getAttributeValue(resource interface{}, key string) string { function getDataPointAttribute (line 448) | func getDataPointAttribute(dataPoint interface{}, key string) string { type mockOTLPServer (line 455) | type mockOTLPServer struct method Export (line 498) | func (m *mockOTLPServer) Export(ctx context.Context, req *metricsv1.Ex... method ReceivedMetricsCount (line 509) | func (m *mockOTLPServer) ReceivedMetricsCount() int { method Stop (line 515) | func (m *mockOTLPServer) Stop() { function startMockOTLPServer (line 465) | func startMockOTLPServer(t *testing.T) (*mockOTLPServer, string) { function startMockOTLPServerOnAddress (line 482) | func startMockOTLPServerOnAddress(t *testing.T, addr string) (*mockOTLPS... function TestOTLP_ResourceTagKeys (line 521) | func TestOTLP_ResourceTagKeys(t *testing.T) { function TestOTLP_ResourceAttributesBehavior (line 613) | func TestOTLP_ResourceAttributesBehavior(t *testing.T) { function TestOTLP_ConfiguredResourceAttributesAlwaysIncluded (line 686) | func TestOTLP_ConfiguredResourceAttributesAlwaysIncluded(t *testing.T) { function TestOTLP_InitSucceedsWithUnreachableEndpoint (line 716) | func TestOTLP_InitSucceedsWithUnreachableEndpoint(t *testing.T) { function TestOTLP_ConnectionOnFirstRPC (line 739) | func TestOTLP_ConnectionOnFirstRPC(t *testing.T) { function TestOTLP_ReconnectWhenEndpointBecomesAvailable (line 769) | func TestOTLP_ReconnectWhenEndpointBecomesAvailable(t *testing.T) { function TestOTLP_GracefulShutdownFlushes (line 805) | func TestOTLP_GracefulShutdownFlushes(t *testing.T) { function TestOTLP_ContextCancellationFlushes (line 838) | func TestOTLP_ContextCancellationFlushes(t *testing.T) { function TestOTLP_ChannelCloseFlushes (line 875) | func TestOTLP_ChannelCloseFlushes(t *testing.T) { function extractAttributesMap (line 910) | func extractAttributesMap(attrs []*commonpb.KeyValue) map[string]string { FILE: pkg/outputs/output.go type Output (line 41) | type Output interface type Initializer (line 60) | type Initializer function Register (line 80) | func Register(name string, initFn Initializer) { type Meta (line 96) | type Meta function DecodeConfig (line 98) | func DecodeConfig(src, dst any) error { function AddSubscriptionTarget (line 111) | func AddSubscriptionTarget(msg proto.Message, meta Meta, addTarget strin... function ExecTemplate (line 159) | func ExecTemplate(content []byte, tpl *template.Template) ([]byte, error) { constant defaultTargetTemplateString (line 192) | defaultTargetTemplateString = ` function Marshal (line 200) | func Marshal(pmsg protoreflect.ProtoMessage, meta map[string]string, mo ... function marshalSplit (line 219) | func marshalSplit(pmsg protoreflect.ProtoMessage, meta map[string]string... type BaseOutput (line 260) | type BaseOutput struct method Init (line 263) | func (b *BaseOutput) Init(context.Context, string, map[string]any, ...... method Validate (line 267) | func (b *BaseOutput) Validate(map[string]any) error { method Update (line 271) | func (b *BaseOutput) Update(context.Context, map[string]any) error { method UpdateProcessor (line 275) | func (b *BaseOutput) UpdateProcessor(string, map[string]any) error { method Write (line 279) | func (b *BaseOutput) Write(context.Context, proto.Message, Meta) {} method WriteEvent (line 281) | func (b *BaseOutput) WriteEvent(context.Context, *formatters.EventMsg) {} method Close (line 283) | func (b *BaseOutput) Close() error { method String (line 287) | func (b *BaseOutput) String() string { function UpdateProcessorInSlice (line 293) | func UpdateProcessorInSlice( FILE: pkg/outputs/prometheus_output/prometheus_common.go constant metricNameRegex (line 36) | metricNameRegex = "[^a-zA-Z0-9_]+" constant defaultMetricHelp (line 37) | defaultMetricHelp = "gNMIc generated metric" type PromMetric (line 50) | type PromMetric struct method CalculateKey (line 62) | func (p *PromMetric) CalculateKey() uint64 { method String (line 80) | func (p *PromMetric) String() string { method Desc (line 118) | func (p *PromMetric) Desc() *prometheus.Desc { method Write (line 128) | func (p *PromMetric) Write(out *dto.Metric) error { type MetricBuilder (line 173) | type MetricBuilder struct method MetricsFromEvent (line 144) | func (mb *MetricBuilder) MetricsFromEvent(ev *formatters.EventMsg, now... method GetLabels (line 181) | func (m *MetricBuilder) GetLabels(ev *formatters.EventMsg) []prompb.La... method MetricName (line 248) | func (m *MetricBuilder) MetricName(measName, valueName string) string { method TimeSeriesFromEvent (line 271) | func (m *MetricBuilder) TimeSeriesFromEvent(ev *formatters.EventMsg) [... function toFloat (line 200) | func toFloat(v interface{}) (float64, error) { type NamedTimeSeries (line 266) | type NamedTimeSeries struct type tempLabel (line 315) | type tempLabel struct function labelNameFromPath (line 322) | func labelNameFromPath(path string, numElems int) string { function buildUniqueLabelsFromValues (line 337) | func buildUniqueLabelsFromValues(values map[string]any, addedLabels map[... FILE: pkg/outputs/prometheus_output/prometheus_common_test.go function TestTimeSeriesFromEvent (line 80) | func TestTimeSeriesFromEvent(t *testing.T) { function TestTimeSeriesLabelsSorted (line 105) | func TestTimeSeriesLabelsSorted(t *testing.T) { function TestMetricName (line 131) | func TestMetricName(t *testing.T) { function BenchmarkMetricName (line 142) | func BenchmarkMetricName(b *testing.B) { function Test_buildUniqueLabelsFromValues (line 153) | func Test_buildUniqueLabelsFromValues(t *testing.T) { function TestMetricBuilder_MetricsFromEvent (line 291) | func TestMetricBuilder_MetricsFromEvent(t *testing.T) { FILE: pkg/outputs/prometheus_output/prometheus_output/prometheus_cache.go method collectFromCache (line 23) | func (p *prometheusOutput) collectFromCache(ch chan<- prometheus.Metric) { function cacheEqual (line 86) | func cacheEqual(a, b *cache.Config) bool { FILE: pkg/outputs/prometheus_output/prometheus_output/prometheus_metrics.go constant namespace (line 18) | namespace = "gnmic" constant subsystem (line 19) | subsystem = "prometheus_output" method initMetrics (line 40) | func (p *prometheusOutput) initMetrics(cfg *config) { method registerMetrics (line 48) | func (p *prometheusOutput) registerMetrics() error { FILE: pkg/outputs/prometheus_output/prometheus_output/prometheus_output.go constant outputType (line 48) | outputType = "prometheus" constant defaultListen (line 49) | defaultListen = ":9804" constant defaultPath (line 50) | defaultPath = "/metrics" constant defaultExpiration (line 51) | defaultExpiration = time.Minute constant loggingPrefix (line 52) | loggingPrefix = "[prometheus_output:%s] " constant defaultTimeout (line 55) | defaultTimeout = 10 * time.Second constant defaultNumWorkers (line 56) | defaultNumWorkers = 1 function init (line 59) | func init() { type prometheusOutput (line 65) | type prometheusOutput struct method String (line 123) | func (p *prometheusOutput) String() string { method buildEventProcessors (line 135) | func (p *prometheusOutput) buildEventProcessors(cfg *config) ([]format... method setLogger (line 143) | func (p *prometheusOutput) setLogger(logger *log.Logger) { method init (line 150) | func (p *prometheusOutput) init() { method Init (line 160) | func (p *prometheusOutput) Init(ctx context.Context, name string, cfg ... method Validate (line 294) | func (p *prometheusOutput) Validate(cfg map[string]any) error { method Update (line 315) | func (p *prometheusOutput) Update(ctx context.Context, cfg map[string]... method UpdateProcessor (line 479) | func (p *prometheusOutput) UpdateProcessor(name string, pcfg map[strin... method needHTTPRebuild (line 503) | func (p *prometheusOutput) needHTTPRebuild(old, new *config) bool { method createListenerFor (line 512) | func (p *prometheusOutput) createListenerFor(c *config) (net.Listener,... method Write (line 526) | func (p *prometheusOutput) Write(ctx context.Context, rsp proto.Messag... method WriteEvent (line 551) | func (p *prometheusOutput) WriteEvent(ctx context.Context, ev *formatt... method Close (line 570) | func (p *prometheusOutput) Close() error { method Describe (line 609) | func (p *prometheusOutput) Describe(ch chan<- *prometheus.Desc) {} method Collect (line 612) | func (p *prometheusOutput) Collect(ch chan<- prometheus.Metric) { method worker (line 641) | func (p *prometheusOutput) worker(ctx context.Context) { method workerHandleProto (line 655) | func (p *prometheusOutput) workerHandleProto(ctx context.Context, m *o... method workerHandleEvent (line 700) | func (p *prometheusOutput) workerHandleEvent(evs ...*formatters.EventM... method expireMetrics (line 736) | func (p *prometheusOutput) expireMetrics() { method expireMetricsPeriodic (line 755) | func (p *prometheusOutput) expireMetricsPeriodic(ctx context.Context) { method setDefaultsFor (line 785) | func (p *prometheusOutput) setDefaultsFor(c *config) error { method setName (line 856) | func (p *prometheusOutput) setName(name string, cfg *config) { method setClusterName (line 872) | func (p *prometheusOutput) setClusterName(name string, cfg *config) { type dynConfig (line 91) | type dynConfig struct type config (line 97) | type config struct type metricAndKey (line 695) | type metricAndKey struct FILE: pkg/outputs/prometheus_output/prometheus_output/prometheus_service_registration.go constant defaultServiceRegistrationAddress (line 26) | defaultServiceRegistrationAddress = "localhost:8500" constant defaultRegistrationCheckInterval (line 27) | defaultRegistrationCheckInterval = 5 * time.Second constant defaultMaxServiceFail (line 28) | defaultMaxServiceFail = 3 type serviceRegistration (line 31) | type serviceRegistration struct method registerService (line 52) | func (p *prometheusOutput) registerService(ctx context.Context) { method setServiceRegistrationDefaults (line 179) | func (p *prometheusOutput) setServiceRegistrationDefaults(c *config) { method acquireLock (line 209) | func (p *prometheusOutput) acquireLock(ctx context.Context, key string, ... method keepLock (line 259) | func (p *prometheusOutput) keepLock(ctx context.Context, sessionID strin... method acquireAndKeepLock (line 291) | func (p *prometheusOutput) acquireAndKeepLock(ctx context.Context, key s... FILE: pkg/outputs/prometheus_output/prometheus_write_output/prometheus_write_client.go constant backoff (line 32) | backoff = 100 * time.Millisecond method createHTTPClientFor (line 34) | func (p *promWriteOutput) createHTTPClientFor(c *config) (*http.Client, ... method writer (line 57) | func (p *promWriteOutput) writer(ctx context.Context) { method write (line 83) | func (p *promWriteOutput) write(ctx context.Context, timeSeriesCh <-chan... method writeRequest (line 152) | func (p *promWriteOutput) writeRequest(ctx context.Context, wr *prompb.W... method metadataWriter (line 192) | func (p *promWriteOutput) metadataWriter(ctx context.Context) { method writeMetadata (line 214) | func (p *promWriteOutput) writeMetadata(ctx context.Context) { method makeHTTPRequest (line 277) | func (p *promWriteOutput) makeHTTPRequest(ctx context.Context, wr *promp... FILE: pkg/outputs/prometheus_output/prometheus_write_output/prometheus_write_metrics.go constant namespace (line 18) | namespace = "gnmic" constant subsystem (line 19) | subsystem = "prometheus_write_output" function initMetrics (line 66) | func initMetrics(name string) { method registerMetrics (line 77) | func (p *promWriteOutput) registerMetrics() error { FILE: pkg/outputs/prometheus_output/prometheus_write_output/prometheus_write_output.go constant outputType (line 42) | outputType = "prometheus_write" constant loggingPrefix (line 43) | loggingPrefix = "[prometheus_write_output:%s] " constant defaultTimeout (line 44) | defaultTimeout = 10 * time.Second constant defaultWriteInterval (line 45) | defaultWriteInterval = 10 * time.Second constant defaultMetadataWriteInterval (line 46) | defaultMetadataWriteInterval = time.Minute constant defaultBufferSize (line 47) | defaultBufferSize = 1000 constant defaultMaxTSPerWrite (line 48) | defaultMaxTSPerWrite = 500 constant defaultMaxMetaDataEntriesPerWrite (line 49) | defaultMaxMetaDataEntriesPerWrite = 500 constant defaultMetricHelp (line 50) | defaultMetricHelp = "gNMIc generated metric" constant userAgent (line 51) | userAgent = "gNMIc prometheus write" constant defaultNumWorkers (line 52) | defaultNumWorkers = 1 constant defaultNumWriters (line 53) | defaultNumWriters = 1 function init (line 56) | func init() { type promWriteOutput (line 63) | type promWriteOutput struct method init (line 135) | func (p *promWriteOutput) init() { method buildEventProcessors (line 149) | func (p *promWriteOutput) buildEventProcessors(cfg *config) ([]formatt... method setLogger (line 157) | func (p *promWriteOutput) setLogger(logger *log.Logger) { method Init (line 164) | func (p *promWriteOutput) Init(ctx context.Context, name string, cfg m... method Update (line 267) | func (p *promWriteOutput) Update(ctx context.Context, cfg map[string]a... method Validate (line 409) | func (p *promWriteOutput) Validate(cfg map[string]any) error { method Write (line 428) | func (p *promWriteOutput) Write(ctx context.Context, rsp proto.Message... method WriteEvent (line 449) | func (p *promWriteOutput) WriteEvent(ctx context.Context, ev *formatte... method Close (line 468) | func (p *promWriteOutput) Close() error { method String (line 482) | func (p *promWriteOutput) String() string { method worker (line 491) | func (p *promWriteOutput) worker(ctx context.Context) { method workerHandleProto (line 506) | func (p *promWriteOutput) workerHandleProto(_ context.Context, m *outp... method workerHandleEvent (line 534) | func (p *promWriteOutput) workerHandleEvent(ev *formatters.EventMsg) { method setDefaultsFor (line 568) | func (p *promWriteOutput) setDefaultsFor(c *config) { type config (line 87) | type config struct type dynConfig (line 113) | type dynConfig struct type auth (line 119) | type auth struct type authorization (line 124) | type authorization struct type metadata (line 129) | type metadata struct function channelNeedsSwap (line 607) | func channelNeedsSwap(old, nw *config) bool { function needsWorkerRestart (line 614) | func needsWorkerRestart(old, nw *config) bool { function metadataChanged (line 624) | func metadataChanged(old, nw *metadata) bool { function needsClientRebuild (line 633) | func needsClientRebuild(old, nw *config) bool { function authEq (line 644) | func authEq(a, b *auth) bool { function authzEq (line 654) | func authzEq(a, b *authorization) bool { FILE: pkg/outputs/protometa.go type ProtoMsg (line 15) | type ProtoMsg struct method GetMsg (line 27) | func (m *ProtoMsg) GetMsg() proto.Message { method GetMeta (line 34) | func (m *ProtoMsg) GetMeta() Meta { function NewProtoMsg (line 20) | func NewProtoMsg(m proto.Message, meta Meta) *ProtoMsg { FILE: pkg/outputs/snmp_output/snmp_metrics.go method initMetrics (line 47) | func (s *snmpOutput) initMetrics() { method registerMetrics (line 54) | func (s *snmpOutput) registerMetrics() error { FILE: pkg/outputs/snmp_output/snmp_output.go constant loggingPrefix (line 42) | loggingPrefix = "[snmp_output:%s] " constant defaultPort (line 43) | defaultPort = 162 constant defaultCommunity (line 44) | defaultCommunity = "public" constant minStartDelay (line 45) | minStartDelay = 5 * time.Second constant initialEventsBufferSize (line 46) | initialEventsBufferSize = 1000 constant sysUpTimeInstanceOID (line 48) | sysUpTimeInstanceOID = "1.3.6.1.2.1.1.3.0" function init (line 51) | func init() { type snmpOutput (line 57) | type snmpOutput struct method buildEventProcessors (line 109) | func (s *snmpOutput) buildEventProcessors(logger *log.Logger, eventPro... method setLogger (line 127) | func (s *snmpOutput) setLogger(logger *log.Logger) { method init (line 134) | func (s *snmpOutput) init() { method Init (line 143) | func (s *snmpOutput) Init(ctx context.Context, name string, cfg map[st... method Validate (line 212) | func (s *snmpOutput) Validate(cfg map[string]any) error { method Update (line 224) | func (s *snmpOutput) Update(_ context.Context, cfg map[string]any) err... method UpdateProcessor (line 278) | func (s *snmpOutput) UpdateProcessor(name string, pcfg map[string]any)... method initializeTrapsFor (line 302) | func (s *snmpOutput) initializeTrapsFor(cfg *Config) error { method Write (line 338) | func (s *snmpOutput) Write(ctx context.Context, m proto.Message, meta ... method WriteEvent (line 384) | func (s *snmpOutput) WriteEvent(ctx context.Context, ev *formatters.Ev... method Close (line 386) | func (s *snmpOutput) Close() error { method String (line 396) | func (s *snmpOutput) String() string { method start (line 408) | func (s *snmpOutput) start(ctx context.Context) { method setDefaultsFor (line 438) | func (s *snmpOutput) setDefaultsFor(cfg *Config) { method createSNMPHandler (line 450) | func (s *snmpOutput) createSNMPHandler() { method runJQ (line 519) | func (s *snmpOutput) runJQ(code *gojq.Code, ev map[string]interface{})... method handleEvent (line 536) | func (s *snmpOutput) handleEvent(cfg *Config, ev *formatters.EventMsg,... method buildTriggerPDU (line 603) | func (s *snmpOutput) buildTriggerPDU(bd *binding, targetName string, e... method buildPDUFromCache (line 630) | func (s *snmpOutput) buildPDUFromCache(bd *binding, targetName string,... type dynConfig (line 75) | type dynConfig struct type Config (line 80) | type Config struct type binding (line 92) | type binding struct type trap (line 103) | type trap struct function pduType (line 471) | func pduType(typ string) g.Asn1BER { function parseJQ (line 511) | func parseJQ(code string) (*gojq.Code, error) { FILE: pkg/outputs/tcp_output/tcp_output.go constant defaultRetryTimer (line 36) | defaultRetryTimer = 2 * time.Second constant defaultNumWorkers (line 37) | defaultNumWorkers = 1 constant loggingPrefix (line 38) | loggingPrefix = "[tcp_output:%s] " function init (line 41) | func init() { type tcpOutput (line 47) | type tcpOutput struct method buildEventProcessors (line 86) | func (t *tcpOutput) buildEventProcessors(logger *log.Logger, eventProc... method init (line 104) | func (t *tcpOutput) init() { method Init (line 112) | func (t *tcpOutput) Init(ctx context.Context, name string, cfg map[str... method Validate (line 205) | func (t *tcpOutput) Validate(cfg map[string]any) error { method Update (line 215) | func (t *tcpOutput) Update(_ context.Context, cfg map[string]any) error { method UpdateProcessor (line 322) | func (t *tcpOutput) UpdateProcessor(name string, pcfg map[string]any) ... method Write (line 346) | func (t *tcpOutput) Write(ctx context.Context, m proto.Message, meta o... method WriteEvent (line 372) | func (t *tcpOutput) WriteEvent(ctx context.Context, ev *formatters.Eve... method Close (line 374) | func (t *tcpOutput) Close() error { method String (line 384) | func (t *tcpOutput) String() string { method start (line 393) | func (t *tcpOutput) start(ctx context.Context, idx int) { type dynConfig (line 61) | type dynConfig struct type config (line 69) | type config struct function setDefaultsFor (line 182) | func setDefaultsFor(cfg *config) { function validate (line 191) | func validate(cfg *config) error { function channelNeedsSwap (line 443) | func channelNeedsSwap(old, nw *config) bool { function needsWorkerRestart (line 450) | func needsWorkerRestart(old, nw *config) bool { FILE: pkg/outputs/udp_output/udp_output.go constant defaultRetryTimer (line 36) | defaultRetryTimer = 2 * time.Second constant loggingPrefix (line 37) | loggingPrefix = "[udp_output:%s] " function init (line 40) | func init() { type udpSock (line 46) | type udpSock struct method buildEventProcessors (line 82) | func (u *udpSock) buildEventProcessors(logger *log.Logger, eventProces... method init (line 100) | func (u *udpSock) init() { method Init (line 108) | func (u *udpSock) Init(ctx context.Context, name string, cfg map[strin... method Validate (line 198) | func (u *udpSock) Validate(cfg map[string]any) error { method Update (line 208) | func (u *udpSock) Update(_ context.Context, cfg map[string]any) error { method UpdateProcessor (line 338) | func (u *udpSock) UpdateProcessor(name string, pcfg map[string]any) er... method Write (line 362) | func (u *udpSock) Write(ctx context.Context, m proto.Message, meta out... method WriteEvent (line 400) | func (u *udpSock) WriteEvent(ctx context.Context, ev *formatters.Event... method Close (line 402) | func (u *udpSock) Close() error { method String (line 416) | func (u *udpSock) String() string { method start (line 428) | func (u *udpSock) start(ctx context.Context) { type dynConfig (line 61) | type dynConfig struct type Config (line 68) | type Config struct function setDefaultsFor (line 181) | func setDefaultsFor(cfg *Config) { function validate (line 187) | func validate(cfg *Config) error { function channelNeedsSwap (line 495) | func channelNeedsSwap(old, nw *Config) bool { function needsWorkerRestart (line 502) | func needsWorkerRestart(old, nw *Config) bool { FILE: pkg/pipeline/pipeline.go type Msg (line 10) | type Msg struct function NewMsg (line 17) | func NewMsg(msg proto.Message, meta outputs.Meta, FILE: pkg/utils/authbrearer.go type TokenProvider (line 22) | type TokenProvider struct method Token (line 38) | func (t *TokenProvider) Token() (*sarama.AccessToken, error) { function NewTokenProvider (line 26) | func NewTokenProvider(clientID, clientSecret, tokenURL string) sarama.Ac... FILE: pkg/utils/gnmi.go constant SubscriptionMode_STREAM (line 16) | SubscriptionMode_STREAM = "STREAM" constant SubscriptionMode_ONCE (line 17) | SubscriptionMode_ONCE = "ONCE" constant SubscriptionMode_POLL (line 18) | SubscriptionMode_POLL = "POLL" constant SubscriptionStreamMode_TARGET_DEFINED (line 19) | SubscriptionStreamMode_TARGET_DEFINED = "TARGET_DEFINED" constant SubscriptionStreamMode_ON_CHANGE (line 20) | SubscriptionStreamMode_ON_CHANGE = "ON_CHANGE" constant SubscriptionStreamMode_SAMPLE (line 21) | SubscriptionStreamMode_SAMPLE = "SAMPLE" constant subscriptionDefaultMode (line 25) | subscriptionDefaultMode = SubscriptionMode_STREAM constant subscriptionDefaultStreamMode (line 26) | subscriptionDefaultStreamMode = SubscriptionStreamMode_TARGET_DEFINED constant subscriptionDefaultEncoding (line 27) | subscriptionDefaultEncoding = "JSON" function CreateSubscribeRequest (line 32) | func CreateSubscribeRequest(cfg *types.SubscriptionConfig, tc *types.Tar... function validateAndSetDefaults (line 43) | func validateAndSetDefaults(sc *types.SubscriptionConfig) error { function SubscriptionOpts (line 147) | func SubscriptionOpts(sc *types.SubscriptionConfig, tc *types.TargetConf... function streamSubscriptionOpts (line 253) | func streamSubscriptionOpts(sc *types.SubscriptionConfig) ([]api.GNMIOpt... FILE: pkg/utils/gnmiext.go type RegisteredExtensions (line 9) | type RegisteredExtensions function ParseRegisteredExtensions (line 11) | func ParseRegisteredExtensions(pairs []string) (RegisteredExtensions, er... FILE: pkg/utils/store.go function GetConfigMaps (line 8) | func GetConfigMaps(s store.Store[any]) (map[string]*types.TargetConfig, ...