permalink

package
v4.15.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2018 License: AGPL-3.0 Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InsertPermalinkData

func InsertPermalinkData(ctx context.Context, etcdClient *etcd.Client, id string, data []byte) (bool, error)

Same as UpdatePermalinkData, but fails if the permalink already exists in the database. Returns true on success and false on failure.

func RetrievePermalinkData

func RetrievePermalinkData(ctx context.Context, etcdClient *etcd.Client, id string) ([]byte, error)

Retrieves the data for a permalink, given its ID.

func SetEtcdKeyPrefix

func SetEtcdKeyPrefix(prefix string)

Sets the prefix added to keys in the etcd database. The keys used are of the form <prefix>mrplotter/permalinks/<id>. The prefix allows separate deployments of Mr. Plotter to coexist in a single etcd database system.

func UpsertPermalinkData

func UpsertPermalinkData(ctx context.Context, etcdClient *etcd.Client, id string, data []byte) error

Updates the data for a permalink, creating it if it does not exist.

Types

This section is empty.

Jump to

Keyboard shortcuts

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