func sendAnnotation(a annotate.Annotation) { c := annotate.NewClient(*rootURLFlag) returned, err := c.SendAnnotation(a) if err != nil { log.Fatal(err) } raw, err := json.MarshalIndent(returned, "", "\t") if err != nil { log.Fatal(err) } fmt.Println(string(raw)) }
func (sc *SystemConf) GetAnnotateContext() annotate.Client { return annotate.NewClient(fmt.Sprintf("http://%v/api", sc.HTTPListen)) // TODO Fix for HTTPS }