waitforit

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2015 License: Apache-2.0 Imports: 14 Imported by: 0

README

waitforit

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMalformedURI  = errors.New("Malformed URI")
	ErrInvalidScheme = errors.New("Invalid URI scheme")
	ErrMaxRetries    = errors.New("Maximum retries reached")
	ErrTimeout       = errors.New("Timeout")
)

Functions

This section is empty.

Types

type DbWaiter

type DbWaiter struct {
	// contains filtered or unexported fields
}

func NewMySQLWaiter

func NewMySQLWaiter(target *Target) *DbWaiter

func NewPostgresWaiter

func NewPostgresWaiter(target *Target) *DbWaiter

func (*DbWaiter) Cancel

func (w *DbWaiter) Cancel() (err error)

func (*DbWaiter) Connect

func (w *DbWaiter) Connect() (err error)

func (*DbWaiter) RunTest

func (w *DbWaiter) RunTest() (err error)

type HTTPWaiter

type HTTPWaiter struct {
	// contains filtered or unexported fields
}

func (*HTTPWaiter) Cancel

func (w *HTTPWaiter) Cancel() error

func (*HTTPWaiter) Connect

func (w *HTTPWaiter) Connect() (err error)

func (*HTTPWaiter) RunTest

func (w *HTTPWaiter) RunTest() error

type RedisWaiter

type RedisWaiter struct {
	// contains filtered or unexported fields
}

func (*RedisWaiter) Cancel

func (w *RedisWaiter) Cancel() error

func (*RedisWaiter) Connect

func (w *RedisWaiter) Connect() (err error)

func (*RedisWaiter) RunTest

func (w *RedisWaiter) RunTest() error

type Target

type Target struct {
	Timeout    time.Duration
	Retries    int
	RetryDelay time.Duration
	URI        string
	Exists     string
	Insecure   bool
	// contains filtered or unexported fields
}

func (*Target) Elapsed

func (t *Target) Elapsed() time.Duration

func (*Target) Wait

func (t *Target) Wait() (err error)

type Waitable

type Waitable interface {
	Connect() error
	RunTest() error
	Cancel() error
}

Directories

Path Synopsis
Godeps
_workspace/src/github.com/go-sql-driver/mysql
Go MySQL Driver - A MySQL-Driver for Go's database/sql package
Go MySQL Driver - A MySQL-Driver for Go's database/sql package
_workspace/src/github.com/lib/pq
Package pq is a pure Go Postgres driver for the database/sql package.
Package pq is a pure Go Postgres driver for the database/sql package.
_workspace/src/github.com/lib/pq/listen_example
Below you will find a self-contained Go program which uses the LISTEN / NOTIFY mechanism to avoid polling the database while waiting for more work to arrive.
Below you will find a self-contained Go program which uses the LISTEN / NOTIFY mechanism to avoid polling the database while waiting for more work to arrive.
_workspace/src/github.com/lib/pq/oid
Package oid contains OID constants as defined by the Postgres server.
Package oid contains OID constants as defined by the Postgres server.
_workspace/src/github.com/mediocregopher/radix.v2/redis
Package redis is a simple client for connecting and interacting with a single redis instance.
Package redis is a simple client for connecting and interacting with a single redis instance.

Jump to

Keyboard shortcuts

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