Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster struct {
// contains filtered or unexported fields
}
Cluster is a type for holding a db cluster
func NewFromConfig ¶
NewFromConfig creates a new Cluster from the passed config.DBConf
func (*Cluster) AddNodes ¶
func (c *Cluster) AddNodes()
AddNodes adds the nodes specified for this Cluster to the cluster
func (*Cluster) RunWithinTransaction ¶
func (c *Cluster) RunWithinTransaction(rlog log.Ext1FieldLogger, tx *sqlx.Tx, fn func(*sqlx.Tx) error) error
RunWithinTransaction runs the passed function using the passed transaction; if nil is passed as tx a new transaction is created. This is basically a wrapper function, that works with a possible nil-tx
Click to show internal directories.
Click to hide internal directories.