couchbaseutil

package
v0.0.0-...-638fdc2 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2015 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package couchbaseutil offers some convenience functions for apps that use couchbase.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpdateView

func UpdateView(d *couchbase.Bucket,
	ddocName, markerKey, ddocBody string, version int) error

UpdateView installs or updates a view.

This creates a document that tracks the version of design document in couchbase and updates it if it's behind the version specified.

A ViewMarker is stored with a type of "viewmarker" under the key specified by `markerKey` to keep up with the view info.

Types

type ViewMarker

type ViewMarker struct {
	Version   int       `json:"version"`
	Timestamp time.Time `json:"timestamp"`
	Type      string    `json:"type"`
}

A ViewMarker is stored in your DB to mark a particular view version.

Jump to

Keyboard shortcuts

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