summaryrefslogtreecommitdiffstats
path: root/server/storage.go
blob: 34738988548bebdf65207196862c9d1b8d8ad88a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
package server

import (
	"time"

	"go.rctt.net/solec/core"
)

type Storage interface {
	Write(msg core.Message) (err error)
	Read(channel string, since time.Time, num, offset int) (history []core.Message, err error)
}