Documentation ¶
Index ¶
- Constants
- Variables
- func ByteCountIEC(b uint64) string
- func PrintMemStats()
- func PrintSnapshotBytesSize(bytes []byte)
- func TestConfig(authWebhook string) *yorkie.Config
- func TestDBName() string
- func TestRoot() *json.Root
- func TestYorkie() *yorkie.Yorkie
- func TextChangeContext(root *json.Root) *change.Context
Constants ¶
View Source
const ( RPCPort = 21101 MetricsPort = 21102 MongoConnectionURI = "mongodb://localhost:27017" MongoConnectionTimeout = "5s" MongoPingTimeout = "5s" SnapshotThreshold = 10 Collection = "test-collection" AuthWebhookMaxWaitInterval = 3 * gotime.Millisecond AuthWebhookCacheAuthTTL = 10 * gotime.Second AuthWebhookCacheUnauthTTL = 10 * gotime.Second )
Below are the values of the Yorkie config used in the test.
Variables ¶
View Source
var (
ETCDEndpoints = []string{"localhost:2379"}
)
Below are the values of the related ETCD config.
Functions ¶
func ByteCountIEC ¶
ByteCountIEC returns humanized size in IEC(binary) format.
func PrintSnapshotBytesSize ¶
func PrintSnapshotBytesSize(bytes []byte)
PrintSnapshotBytesSize prints the humanized size of the given snapshot.
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.