joist/interfaces.go

20 lines
357 B
Go

package joist
import (
"context"
"time"
)
type Storer interface {
Close() error
Delete(context.Context, string) error
Get(context.Context, string) ([]byte, error)
Put(context.Context, string, []byte, time.Duration) error
}
type RouteCacher interface {
Add(string, string) error
GetPath(string) (string, error)
All() (map[string]string, error)
}