Beispiel #1
0
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))
}
Beispiel #2
0
func (sc *SystemConf) GetAnnotateContext() annotate.Client {
	return annotate.NewClient(fmt.Sprintf("http://%v/api", sc.HTTPListen)) // TODO Fix for HTTPS
}