Skip to content

Commit

Permalink
Merge pull request #51 from nyaruka/code_reorg
Browse files Browse the repository at this point in the history
Code reorganization
  • Loading branch information
rowanseymour authored Oct 1, 2021
2 parents 7c443bc + 9e8624b commit 35aae68
Show file tree
Hide file tree
Showing 11 changed files with 681 additions and 656 deletions.
645 changes: 2 additions & 643 deletions archiver.go → archives/archives.go

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions archiver_test.go → archives/archives_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package archiver
package archives

import (
"compress/gzip"
Expand All @@ -16,7 +16,7 @@ import (
)

func setup(t *testing.T) *sqlx.DB {
testDB, err := ioutil.ReadFile("testdb.sql")
testDB, err := ioutil.ReadFile("../testdb.sql")
assert.NoError(t, err)

db, err := sqlx.Open("postgres", "postgres://temba:temba@localhost:5432/archiver_test?sslmode=disable&TimeZone=UTC")
Expand Down
2 changes: 1 addition & 1 deletion config.go → archives/config.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package archiver
package archives

// Config is our top level configuration object
type Config struct {
Expand Down
Loading

0 comments on commit 35aae68

Please sign in to comment.