th7/db/dummy.go

22 lines
311 B
Go

package db
import (
"fmt"
"th7/data/core"
)
type DummyAdapter struct {
}
func NewDummyAdapter() (*DummyAdapter, error) {
return &DummyAdapter{}, nil
}
func (d *DummyAdapter) Close() {
fmt.Println("Closing DB ...")
}
func (d *DummyAdapter) Save([]core.Channel) {
fmt.Println("Saving data to DB ...")
}