Skip to content

Commit 256b5f1

Browse files
authored
Merge pull request quickfixgo#343 from michaelwilner/mongo-store
MongoDB Backing Store
2 parents d4af60d + f1db05e commit 256b5f1

File tree

6 files changed

+378
-11
lines changed

6 files changed

+378
-11
lines changed

.travis.yml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,22 @@ go:
55
- 1.9
66
- tip
77

8+
services:
9+
- mongodb
10+
811
env:
9-
- FIX_TEST=
10-
- FIX_TEST=fix40
11-
- FIX_TEST=fix41
12-
- FIX_TEST=fix42
13-
- FIX_TEST=fix43
14-
- FIX_TEST=fix44
15-
- FIX_TEST=fix50
16-
- FIX_TEST=fix50sp1
17-
- FIX_TEST=fix50sp2
12+
global:
13+
- MONGODB_TEST_CXN=localhost
14+
matrix:
15+
- FIX_TEST=
16+
- FIX_TEST=fix40
17+
- FIX_TEST=fix41
18+
- FIX_TEST=fix42
19+
- FIX_TEST=fix43
20+
- FIX_TEST=fix44
21+
- FIX_TEST=fix50
22+
- FIX_TEST=fix50sp1
23+
- FIX_TEST=fix50sp2
1824

1925
matrix:
2026
allow_failures:

Gopkg.lock

Lines changed: 44 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/configuration.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ const (
4141
SQLStoreDriver string = "SQLStoreDriver"
4242
SQLStoreDataSourceName string = "SQLStoreDataSourceName"
4343
SQLStoreConnMaxLifetime string = "SQLStoreConnMaxLifetime"
44+
MongoStoreConnection string = "MongoStoreConnection"
45+
MongoStoreDatabase string = "MongoStoreDatabase"
4446
ValidateFieldsOutOfOrder string = "ValidateFieldsOutOfOrder"
4547
ResendRequestChunkSize string = "ResendRequestChunkSize"
4648
EnableLastMsgSeqNumProcessed string = "EnableLastMsgSeqNumProcessed"

config/doc.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,14 @@ FileStorePath
290290
291291
Directory to store sequence number and message files. Only used with FileStoreFactory.
292292
293+
MongoStoreConnection
294+
295+
The MongoDB connection URL to use (see https://godoc.org/github.com/globalsign/mgo#Dial for the URL Format). Only used with MongoStoreFactory.
296+
297+
MongoStoreDatabase
298+
299+
The MongoDB-specific name of the database to use. Only used with MongoStoreFactory.
300+
293301
SQLStoreDriver
294302
295303
The name of the database driver to use (see https://github.com/golang/go/wiki/SQLDrivers for the list of available drivers). Only used with SqlStoreFactory.

0 commit comments

Comments
 (0)