mgohkp

package module
v1.0.0-...-954a53e Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2019 License: AGPL-3.0 Imports: 12 Imported by: 3

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.

Jump to

Keyboard shortcuts

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