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

Method MustGetIP

pkg/event/param.go:622–628  ·  view source on GitHub ↗

MustGetIP returns the IP address parameter or panics if an error occurs.

(name string)

Source from the content-addressed store, hash-verified

620
621// MustGetIP returns the IP address parameter or panics if an error occurs.
622func (pars Params) MustGetIP(name string) net.IP {
623 ip, err := pars.GetIP(name)
624 if err != nil {
625 panic(err)
626 }
627 return ip
628}
629
630// GetTime returns the underlying time structure from the parameter.
631func (pars Params) GetTime(name string) (time.Time, error) {

Callers 1

GetMethod · 0.80

Calls 1

GetIPMethod · 0.95

Tested by

no test coverage detected