mdb

package
v0.0.0-...-c20f884 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package mdb contains a number of database wrappers for databases I commonly use

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GCE

type GCE struct {
	Project  string
	CredFile string
	// contains filtered or unexported fields
}

GCE wraps configuration parameters commonly used for interacting with GCE services.

func InstGCE

func InstGCE(cmp *mcmp.Component, options ...GCEOption) *GCE

InstGCE instantiates a GCE which will be initialized when the Init event is triggered on the given Component. defaultProject is used as the default value for the mcfg parameter this function creates.

func (*GCE) ClientOptions

func (gce *GCE) ClientOptions() []option.ClientOption

ClientOptions generates and returns the ClientOption instances which can be passed into most GCE client drivers.

func (*GCE) Context

func (gce *GCE) Context() context.Context

Context returns the annotated Context from this instance's initialization.

type GCEOption

type GCEOption func(*gceOpts)

GCEOption is a value which adjusts the behavior of InstGCE.

func GCEDefaultProject

func GCEDefaultProject(defaultProject string) GCEOption

GCEDefaultProject sets the given string to be the default project of the GCE instance. The default project will still be configurable via mcfg regardless of what this is set to.

Directories

Path Synopsis
Package mbigquery implements connecting to Google's BigQuery service and simplifying a number of interactions with it.
Package mbigquery implements connecting to Google's BigQuery service and simplifying a number of interactions with it.
Package mbigtable implements connecting to Google's Bigtable service and simplifying a number of interactions with it.
Package mbigtable implements connecting to Google's Bigtable service and simplifying a number of interactions with it.
Package mdatastore implements connecting to Google's Datastore service and simplifying a number of interactions with it.
Package mdatastore implements connecting to Google's Datastore service and simplifying a number of interactions with it.
Package mpubsub implements connecting to Google's PubSub service and simplifying a number of interactions with it.
Package mpubsub implements connecting to Google's PubSub service and simplifying a number of interactions with it.
Package mredis implements connecting to a redis instance.
Package mredis implements connecting to a redis instance.
Package msql implements connecting to a MySQL/MariaDB instance (and possibly others) and simplifies a number of interactions with it.
Package msql implements connecting to a MySQL/MariaDB instance (and possibly others) and simplifies a number of interactions with it.

Jump to

Keyboard shortcuts

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