Documentation ¶
Index ¶
- Constants
- func CreateGoogleDatastoreClient() (*datastore.Client, error)
- func CreateGooglePubSubClient() (*pubsub.Client, error)
- func CreateIronQueue(name string) (*mq.Queue, error)
- func CreateMongoDBClient() (*mgo.Session, error)
- func GetDatabaseName() string
- func GetEnv() string
- func GetGoogleProjectID() string
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 ¶
CreateGoogleDatastoreClient create client to communicate to google Datastore service
func CreateGooglePubSubClient ¶
CreateGooglePubSubClient returns client communicate with google Pub/Sub service
func CreateIronQueue ¶
CreateIronQueue creates and returns Iron.io queue
func CreateMongoDBClient ¶
func CreateMongoDBClient() (*mgo.Session, error)
CreateMongoDBClient create MongoDB client
func GetGoogleProjectID ¶
func GetGoogleProjectID() string
GetGoogleProjectID returns google project ID
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.