none.go 428 Bytes
Newer Older
hujiebin's avatar
hujiebin committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
package none

import (
	"github.com/librespeed/speedtest/database/schema"
)

type None struct{}

func Open(_ string) *None {
	return &None{}
}

func (n *None) Insert(_ *schema.TelemetryData) error {
	return nil
}

func (n *None) FetchByUUID(_ string) (*schema.TelemetryData, error) {
	return &schema.TelemetryData{}, nil
}

func (n *None) FetchLast100() ([]schema.TelemetryData, error) {
	return []schema.TelemetryData{}, nil
}