Documentation
¶
Index ¶
- type PortSource
- func (s *PortSource) Contexts() []string
- func (s *PortSource) Find(ctx context.Context, itemContext string) ([]*sdp.Item, error)
- func (s *PortSource) Get(ctx context.Context, itemContext string, query string) (*sdp.Item, error)
- func (s *PortSource) Name() string
- func (s *PortSource) Supported() bool
- func (s *PortSource) Type() string
- func (s *PortSource) Weight() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PortSource ¶
type PortSource struct{}
PortSource struct on which all methods are registered
func (*PortSource) Contexts ¶
func (s *PortSource) Contexts() []string
List of contexts that this source is capable of find items for
func (*PortSource) Find ¶
func (s *PortSource) Find(ctx context.Context, itemContext string) ([]*sdp.Item, error)
Find calls back to the FindFunction to find all items
func (*PortSource) Supported ¶
func (s *PortSource) Supported() bool
Supported returns whether the backend is supported on this platform
func (*PortSource) Type ¶
func (s *PortSource) Type() string
Type is the type of items that this returns
Click to show internal directories.
Click to hide internal directories.