README

Build Status GoDoc

mgohkp

This package has been moved into https://github.com/hockeypuck/hockeypuck. Further contributions should be made there, this project has been archived.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dial

func Dial(url string, options ...Option) (hkpstorage.Storage, error)

Dial returns MongoDB HKP storage connected to the given URL.

func New

func New(session *mgo.Session, options ...Option) (hkpstorage.Storage, error)

New returns a MongoDB storage implementation for an HKP service.

Types

type Option

type Option func(*storage) error

Option defines a function that can configure the storage.

func CollectionName

func CollectionName(collectionName string) Option

CollectionName configures storage to use the given collection name.

func DBName

func DBName(dbName string) Option

DBName configures storage to use the given database name.

Source Files