MCPcopy Create free account
hub / github.com/rabbitstack/fibratus / findParam

Method findParam

pkg/event/param.go:740–745  ·  view source on GitHub ↗

findParam lookups a parameter in the map and returns an error if it doesn't exist.

(name string)

Source from the content-addressed store, hash-verified

738
739// findParam lookups a parameter in the map and returns an error if it doesn't exist.
740func (pars Params) findParam(name string) (*Param, error) {
741 if _, ok := pars[name]; !ok {
742 return nil, &errors.ErrParamNotFound{Name: name}
743 }
744 return pars[name], nil
745}
746
747// Colorize renders the full parameter list for the {{.Params}} tag.
748// Each entry is formatted as: key <separator> value, with the key in

Callers 15

GetSIDMethod · 0.95
ContainsMethod · 0.95
GetMethod · 0.95
SetMethod · 0.95
SetValueMethod · 0.95
GetRawMethod · 0.95
GetStringMethod · 0.95
getPidMethod · 0.95
GetTidMethod · 0.95
MustGetTidMethod · 0.95
GetUint8Method · 0.95
GetBoolMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected