Versions in this module Expand all Collapse all v0 v0.11.0 Mar 21, 2023 Changes in this version + type File struct + func NewFile(file string) (*File, error) + func (f *File) GetPreset(ctx context.Context, url string) (*model.Preset, error) + func (f *File) ListPresets(ctx context.Context) ([]model.Preset, error) + func (f *File) UpdatePreset(ctx context.Context, p *model.Preset) error + type FileConfig struct + Presets []FilePreset + type FilePreset struct + TitleNew string + URL string + URLNew string + type Mock struct + func NewMock() Mock + func (Mock) Get(context.Context, string) (*model.Preset, error) + func (Mock) List(context.Context) ([]model.Preset, error) + func (Mock) Update(context.Context, *model.Preset) error + type Store interface + GetPreset func(ctx context.Context, url string) (*model.Preset, error) + ListPresets func(ctx context.Context) ([]model.Preset, error) + UpdatePreset func(ctx context.Context, p *model.Preset) error + func Must(store Store, err error) Store