spoc-bot-vr/.storage.go

40 lines
834 B
Go

package main
import (
"context"
"errors"
"time"
)
var (
ErrNotFound = errors.New("not found")
)
type Storage struct {
driver Driver
}
func NewStorage(driver Driver) Storage {
return Storage{driver: driver}
}
func (s Storage) MessagesSince(ctx context.Context, t time.Time) ([]Message, error) {
return nil, errors.New("not impl")
}
func (s Storage) ThreadsSince(ctx context.Context, t time.Time) ([]string, error) {
return nil, errors.New("not impl")
}
func (s Storage) EventNamesSince(ctx context.Context, t time.Time) ([]string, error) {
return nil, errors.New("not impl")
}
func (s Storage) EventsSince(ctx context.Context, t time.Time) ([]string, error) {
return nil, errors.New("not impl")
}
func (s Storage) Thread(ctx context.Context, thread string) ([]Message, error) {
return nil, errors.New("not impl")
}