search

package
v0.26.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Searches

type Searches = map[string]provider.Search

type SearchesOption

type SearchesOption func(Searches) Searches

func DoAdd

func DoAdd(search provider.Search) SearchesOption

func DoRemove

func DoRemove(name string) SearchesOption

type Service added in v0.26.0

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(storageService absto.Storage, thumbnailService thumbnail.Service, exifService provider.MetadataManager, exclusiveService exclusive.Service, tracerProvider trace.TracerProvider) Service

func (Service) Add added in v0.26.0

func (s Service) Add(ctx context.Context, item absto.Item, search provider.Search) error

func (Service) Delete added in v0.26.0

func (s Service) Delete(ctx context.Context, item absto.Item, name string) error

func (Service) Files added in v0.26.0

func (s Service) Files(r *http.Request, request provider.Request) (items []absto.Item, err error)

func (Service) Get added in v0.26.0

func (s Service) Get(ctx context.Context, item absto.Item, name string) (provider.Search, error)

func (Service) List added in v0.26.0

func (s Service) List(ctx context.Context, item absto.Item) (Searches, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL