Compare commits
No commits in common. "main" and "mongo/v0.0.8" have entirely different histories.
main
...
mongo/v0.0
|
@ -7,6 +7,7 @@ type Conf struct {
|
||||||
User string
|
User string
|
||||||
Password string
|
Password string
|
||||||
Host string
|
Host string
|
||||||
|
Port string
|
||||||
Database string
|
Database string
|
||||||
ReplicaName string
|
ReplicaName string
|
||||||
MaxStaleness time.Duration
|
MaxStaleness time.Duration
|
||||||
|
|
|
@ -34,7 +34,7 @@ func NewDocumentDB(config *Conf, collection string, opts ...mon.Option) (Documen
|
||||||
connectionStringTemplate,
|
connectionStringTemplate,
|
||||||
config.Schema,
|
config.Schema,
|
||||||
authenticationURI,
|
authenticationURI,
|
||||||
config.Host,
|
fmt.Sprintf("%s:%s", config.Host, config.Port),
|
||||||
)
|
)
|
||||||
|
|
||||||
connectUri, _ := url.Parse(connectionURI)
|
connectUri, _ := url.Parse(connectionURI)
|
||||||
|
|
|
@ -2,7 +2,7 @@ package invited_code
|
||||||
|
|
||||||
const (
|
const (
|
||||||
DefaultCodeLen = 8
|
DefaultCodeLen = 8
|
||||||
InitAutoID = 10000000
|
InitAutoId = 10000000
|
||||||
)
|
)
|
||||||
|
|
||||||
var ConvertTable = []string{
|
var ConvertTable = []string{
|
||||||
|
|
Loading…
Reference in New Issue