Versions in this module Expand all Collapse all v1 v1.55.0 Jan 12, 2024 Changes in this version type Protocol + func (uci *Protocol) Run(logger *log.Logger) v1.50.0 Nov 23, 2022 Changes in this version + func RunCli(logger *log.Logger, handler CommandHandler) + type BoolOption struct + Name string + Value *bool + func (opt *BoolOption) Set(s string) error + func (opt *BoolOption) UciName() string + func (opt *BoolOption) UciString() string + type CommandHandler interface + Handle func(ctx context.Context, command string) error + type Engine interface + Clear func() + Prepare func() + Search func(ctx context.Context, searchParams common.SearchParams) common.SearchInfo + type IntOption struct + Max int + Min int + Name string + Value *int + func (opt *IntOption) Set(s string) error + func (opt *IntOption) UciName() string + func (opt *IntOption) UciString() string + type Option interface + Set func(s string) error + UciName func() string + UciString func() string + type Protocol struct + func New(name, author, version string, engine Engine, options []Option) *Protocol + func (uci *Protocol) Handle(ctx context.Context, commandLine string) error