Second provider
This commit is contained in:
19
go-demo-4/cloud/cloud.go
Normal file
19
go-demo-4/cloud/cloud.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package cloud
|
||||
|
||||
type CloudDb struct {
|
||||
url string
|
||||
}
|
||||
|
||||
func NewCloudDb(url string) *CloudDb {
|
||||
return &CloudDb{
|
||||
url: url,
|
||||
}
|
||||
}
|
||||
|
||||
func (db *CloudDb) Read() ([]byte, error) {
|
||||
return []byte{}, nil
|
||||
}
|
||||
|
||||
func (db *CloudDb) Write(content []byte) {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user