(params ...any)
| 814 | } |
| 815 | |
| 816 | func GetActiveDecisionsTimeLeft(params ...any) (any, error) { |
| 817 | value := params[0].(string) |
| 818 | |
| 819 | if dbClient == nil { |
| 820 | log.Error("No database config to call GetActiveDecisionsTimeLeft()") |
| 821 | return 0, nil |
| 822 | } |
| 823 | |
| 824 | ctx := context.TODO() |
| 825 | |
| 826 | timeLeft, err := dbClient.GetActiveDecisionsTimeLeftByValue(ctx, value) |
| 827 | if err != nil { |
| 828 | log.Errorf("Failed to get active decisions time left from value '%s'", value) |
| 829 | return 0, err |
| 830 | } |
| 831 | |
| 832 | return timeLeft, nil |
| 833 | } |
| 834 | |
| 835 | // func LookupHost(value string) []string { |
| 836 | func LookupHost(params ...any) (any, error) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…