uci

package
v1.55.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoolOption

type BoolOption struct {
	Name  string
	Value *bool
}

func (*BoolOption) Set

func (opt *BoolOption) Set(s string) error

func (*BoolOption) UciName

func (opt *BoolOption) UciName() string

func (*BoolOption) UciString

func (opt *BoolOption) UciString() string

type Engine

type Engine interface {
	Prepare()
	Clear()
	Search(ctx context.Context, searchParams common.SearchParams) common.SearchInfo
}

type IntOption

type IntOption struct {
	Name  string
	Min   int
	Max   int
	Value *int
}

func (*IntOption) Set

func (opt *IntOption) Set(s string) error

func (*IntOption) UciName

func (opt *IntOption) UciName() string

func (*IntOption) UciString

func (opt *IntOption) UciString() string

type Option

type Option interface {
	UciName() string
	UciString() string
	Set(s string) error
}

type Protocol

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

func New

func New(name, author, version string, engine Engine, options []Option) *Protocol

func (*Protocol) Run added in v1.55.0

func (uci *Protocol) Run(logger *log.Logger)

Jump to

Keyboard shortcuts

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