unix

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileSource

type FileSource struct{}

FileSource struct on which all methods are registered

func (*FileSource) Contexts

func (s *FileSource) Contexts() []string

List of contexts that this source is capable of find items for

func (*FileSource) Find

func (bc *FileSource) Find(ctx context.Context, itemContext string) ([]*sdp.Item, error)

Find calls back to the FindFunction to find all items

func (*FileSource) Get

func (bc *FileSource) Get(ctx context.Context, itemContext string, query string) (*sdp.Item, error)

Get calls back to the GetFunction to get a single item

func (*FileSource) Name

func (bc *FileSource) Name() string

Name Returns the name of the backend

func (*FileSource) Type

func (bc *FileSource) Type() string

Type is the type of items that this returns

func (*FileSource) Weight

func (s *FileSource) Weight() int

Weighting of duplicate sources

Jump to

Keyboard shortcuts

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