knowledgebase

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: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Choose

type Choose struct {
	Cmd *cobra.Command
	// contains filtered or unexported fields
}

func NewChoose

func NewChoose(lg Logger, cfg Config, uc KnowledgeBases) *Choose

func (*Choose) Init

func (c *Choose) Init()

type Config

type Config interface {
	GetKnowledgeBaseUUID() string
	SetKnowledgeBaseUUID(uuid string) error
}

type Create

type Create struct {
	Cmd *cobra.Command
	// contains filtered or unexported fields
}

func NewCreate

func NewCreate(lg Logger, cfg Config, uc KnowledgeBases) *Create

func (*Create) Init

func (cr *Create) Init()

type Edit

type Edit struct {
	Cmd *cobra.Command
	// contains filtered or unexported fields
}

func NewEdit

func NewEdit(lg Logger, cfg Config, uc KnowledgeBases) *Edit

func (*Edit) Init

func (e *Edit) Init()

type Import

type Import struct {
	Cmd *cobra.Command
	// contains filtered or unexported fields
}

func NewImport

func NewImport(lg Logger, cfg Config, uc KnowledgeBases) *Import

func (*Import) Init

func (im *Import) Init()

type KnowledgeBases

type KnowledgeBases interface {
	CreateKnowledgeBase(ent entKb.KnowledgeBase) (string, error)
	ImportKnowledgeBase(xmlFile io.ReadSeekCloser, fileName string) (string, error)
	GetAllKnowledgeBasesMeta() (map[string]entKb.Meta, error)
	GetKnowledgeBaseMeta(uuid string) (entKb.Meta, error)
	UpdateKnowledgeBaseMeta(ent entKb.Meta) error
	RemoveKnowledgeBase(uuid string) error
}

type Logger

type Logger interface {
	Zap() *zap.Logger
}

type Remove

type Remove struct {
	Cmd *cobra.Command
	// contains filtered or unexported fields
}

func NewRemove

func NewRemove(lg Logger, cfg Config, uc KnowledgeBases) *Remove

func (*Remove) Init

func (r *Remove) Init()

type Root

type Root struct {
	Cmd *cobra.Command
	// contains filtered or unexported fields
}

func NewRoot

func NewRoot(lg Logger, cfg Config, uc KnowledgeBases) *Root

func (*Root) Init

func (r *Root) Init()

type Show

type Show struct {
	Cmd *cobra.Command
	// contains filtered or unexported fields
}

func NewShow

func NewShow(lg Logger, cfg Config, uc KnowledgeBases) *Show

func (*Show) Init

func (sh *Show) Init()

Jump to

Keyboard shortcuts

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