registry

package
v0.0.0-...-97b4fb6 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2016 License: MIT, MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NDMongoDBURL         = "ND_MONGODB_URL"
	NDGoogleDatastoreURL = "ND_GOOGLE_DATASTORE_URL"
	NDGooglePubSubURL    = "ND_GOOGLE_PUBSUB_URL"
	NDGoogleProjectID    = "ND_GOOGLE_PROJECT_ID"
	NDDatabaseName       = "ND_DATABASE_NAME"
	NDEnv                = "ND_ENV"

	EnvDev = "dev"
)

These constants is public API, being taken by lib from environment

Variables

This section is empty.

Functions

func CreateGoogleDatastoreClient

func CreateGoogleDatastoreClient() (*datastore.Client, error)

CreateGoogleDatastoreClient create client to communicate to google Datastore service

func CreateGooglePubSubClient

func CreateGooglePubSubClient() (*pubsub.Client, error)

CreateGooglePubSubClient returns client communicate with google Pub/Sub service

func CreateIronQueue

func CreateIronQueue(name string) (*mq.Queue, error)

CreateIronQueue creates and returns Iron.io queue

func CreateMongoDBClient

func CreateMongoDBClient() (*mgo.Session, error)

CreateMongoDBClient create MongoDB client

func GetDatabaseName

func GetDatabaseName() string

GetDatabaseName returns DB name

func GetEnv

func GetEnv() string

GetEnv return environment

func GetGoogleProjectID

func GetGoogleProjectID() string

GetGoogleProjectID returns google project ID

Types

This section is empty.

Jump to

Keyboard shortcuts

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