Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
cenkalti committed Sep 11, 2020
1 parent 230e44a commit f12e3aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (
"github.com/senseyeio/duration"
)

// ErrNotExist is returned when requested job does not exist.
var ErrNotExist = table.ErrNotExist

// ClientOpt is an option that can be provided to a Dalga client.
Expand Down
3 changes: 3 additions & 0 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import (
"time"
)

// DefaultConfig contains sensible defaults for Dalga instance.
// For a simple deployment, you only need to override MySQL options.
var DefaultConfig = Config{
Jobs: jobsConfig{
RetryInterval: time.Minute,
Expand Down Expand Up @@ -33,6 +35,7 @@ var DefaultConfig = Config{
},
}

// Config values for Dalga instance.
type Config struct {
Jobs jobsConfig
MySQL mysqlConfig
Expand Down

0 comments on commit f12e3aa

Please # to comment.