Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RPCPort = 21101 RPCMaxRequestBytes = uint64(4 * 1024 * 1024) ProfilingPort = 21102 AdminPort = 21103 HousekeepingInterval = 1 * gotime.Second HousekeepingDeactivateThreshold = 1 * gotime.Minute HousekeepingCandidatesLimit = 10 SnapshotThreshold = uint64(10) AuthWebhookMaxWaitInterval = 3 * gotime.Millisecond AuthWebhookSize = 100 AuthWebhookCacheAuthTTL = 10 * gotime.Second AuthWebhookCacheUnauthTTL = 10 * gotime.Second MongoConnectionURI = "mongodb://localhost:27017" MongoConnectionTimeout = "5s" MongoPingTimeout = "5s" ETCDEndpoints = []string{"localhost:2379"} ETCDDialTimeout = 5 * gotime.Second ETCDLockLeaseTime = 30 * gotime.Second )
Below are the values of the Yorkie config used in the test.
Functions ¶
func TestConfig ¶ added in v0.1.5
TestConfig returns config for creating Yorkie instance.
func TestDBName ¶
func TestDBName() string
TestDBName returns the name of test database with timestamp. timestamp is set only once on first call.
func TestServer ¶ added in v0.2.4
TestServer returns a new instance of Yorkie for testing.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.