Versions in this module Expand all Collapse all v1 v1.0.3 Jun 9, 2023 Changes in this version + const ModeGRPC + const RestDNS + const RestRunURI + const RestStatusURI + const RestStopURI + var DefaultPercentileList []float64 + func AddDataHandler(mux *http.ServeMux, baseurl, uipath, datadir string) + func AddHandlers(ahook bincommon.FortioHook, mux *http.ServeMux, ...) + func DataList() (dataList []string) + func Error(w http.ResponseWriter, msg string, err error) + func FormValue(r *http.Request, json map[string]interface{}, key string) string + func GetConfigAtPath(path string, data []byte) (map[string]interface{}, error) + func GetDataDir() string + func GetDataURL(r *http.Request) string + func ID2URL(r *http.Request, id string) string + func LogAndFilterDataRequest(h http.Handler) http.Handler + func NextRunID() int64 + func RESTDNSHandler(w http.ResponseWriter, r *http.Request) + func RESTRunHandler(w http.ResponseWriter, r *http.Request) + func RESTStatusHandler(w http.ResponseWriter, r *http.Request) + func RESTStopHandler(w http.ResponseWriter, r *http.Request) + func RemoveRun(id int64) + func Run(w http.ResponseWriter, r *http.Request, jd map[string]interface{}, ...) (periodic.HasRunnerResult, string, []byte, error) + func RunMetrics() (int, int64) + func SaveJSON(name string, json []byte) string + func SendTSVDataIndex(urlPrefix string, w http.ResponseWriter) + func SetDataDir(datadir string) + func StopByRunID(runid int64, wait bool) (int, string) + func UpdateRun(ro *periodic.RunnerOptions) *periodic.Aborter + type AsyncReply struct + Count int + ResultID string + ResultURL string + RunID int64 + type DNSReply struct + IPv4 []string + IPv6 []string + Name string + type StateEnum int + const StatePending + const StateRunning + const StateStopped + const StateStopping + const StateUnknown + func (se StateEnum) String() string + type Status struct + RunID int64 + RunnerOptions *periodic.RunnerOptions + State StateEnum + func GetRun(id int64) *Status + type StatusMap map[int64]*Status + func GetAllRuns() StatusMap + type StatusReply struct + Statuses StatusMap