common

package
v0.0.0-...-27efec9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

README

Common

The package contains the common functionality between different microservices.

Documentation

Overview

Package contains common things between microservices

Index

Constants

This section is empty.

Variables

View Source
var APIEndpoint = os.Getenv("API_ENTRYPOINT")

The endpoint to use to save parsed data somewhere.

Functions

func CreateHighlights

func CreateHighlights(highlights *[]*Highlight) ([]byte, error)

CreateHighlights creates highlights in the data store using REST API.

Types

type Highlight

type Highlight struct {
	URL         string `bson:"source_url" json:"source_url"`
	Text        string `bson:"text" json:"text"`
	Note        string `bson:"note" json:"note"`
	Colour      string `bson:"colour" json:"color"`
	SourceID    string `bson:"source_id" json:"source_id"`
	SourceTitle string `bson:"source_title" json:"source_title"`
}

The structure to represent a highlight.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL