provider

package
v2.14.0 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item interface {
	Equal(item Item) bool
}

type Provider

type Provider interface {
	Available() (available bool, err *data.CodeError)
	Provide() (item Item, err *data.CodeError)
	Freeze(item Item)
}

func NewListProvider

func NewListProvider(items []Item) Provider

Jump to

Keyboard shortcuts

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