choose

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: MPL-2.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 AllowArgs

type AllowArgs struct {
	Group     bool
	Parameter bool
	Rule      bool
}

type Choose

type Choose struct {
	Parameters map[string]entKb.Parameter
	Rules      map[string]entKb.Rule
	Root       *tuiNav.Group
	// contains filtered or unexported fields
}

func New

func New(lg *zap.Logger) *Choose

func (Choose) ChooseTUI

func (c Choose) ChooseTUI(allow AllowArgs, show ShowArgs) (string, error)

func (*Choose) Init

func (c *Choose) Init(uc KnowledgeBases, knowledgeBaseUUID string) error

type KnowledgeBases

type KnowledgeBases interface {
	GetAllParameters(knowledgeBaseUUID string) (map[string]entKb.Parameter, error)
	GetAllGroups(knowledgeBaseUUID string) (map[string]entKb.Group, error)
	GetAllRules(knowledgeBaseUUID string) (map[string]entKb.Rule, error)
}

type ShowArgs

type ShowArgs struct {
	Parameter bool
	Rule      bool
}

Jump to

Keyboard shortcuts

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