You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
521 B
Go

//////////////////////////////////////////////////////////////////////
//
// DO NOT EDIT THIS PART
// Your task is to edit `main.go`
//
package main
import "time"
// MockDB used to simulate a database model
type MockDB struct{}
// Get only returns an empty string, as this is only for demonstration purposes
func (*MockDB) Get(key string) (string, error) {
d, _ := time.ParseDuration("20ms")
time.Sleep(d)
return "", nil
}
// GetMockDB returns an instance of MockDB
func GetMockDB() *MockDB {
return &MockDB{}
}