parameter

package
v0.7.0-alpha2 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parameter

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

func New

func New(lg *zap.Logger, st Storage) *Parameter

func (Parameter) Create

func (p Parameter) Create(knowledgeBaseUUID string, ent entKb.Parameter) (string, error)

func (Parameter) Get

func (p Parameter) Get(knowledgeBaseUUID, uuid string) (entKb.Parameter, error)

func (Parameter) GetAll

func (p Parameter) GetAll(knowledgeBaseUUID string) (map[string]entKb.Parameter, error)

func (Parameter) Remove

func (p Parameter) Remove(knowledgeBaseUUID, uuid string) error

func (Parameter) Update

func (p Parameter) Update(knowledgeBaseUUID string, ent entKb.Parameter) error

type Storage

type Storage interface {
	CreateParameter(knowledgeBaseUUID string, ent entKb.Parameter) error
	GetAllParameters(knowledgeBaseUUID string) (map[string]entKb.Parameter, error)
	GetParameter(knowledgeBaseUUID, uuid string) (entKb.Parameter, error)
	UpdateParameter(knowledgeBaseUUID string, ent entKb.Parameter) error
	RemoveParameter(knowledgeBaseUUID, uuid string) error
}

Jump to

Keyboard shortcuts

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