app

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger() logger.Logger

Types

type App

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

App struct

func NewApp

func NewApp(cfgPath string) *App

NewApp creates a new App application struct

func (*App) ApplyAndSaveConfig

func (a *App) ApplyAndSaveConfig(cfg *cfgs.Config) error

func (*App) ApplyConfig

func (a *App) ApplyConfig(cfg *cfgs.Config) error

func (*App) CodeSummarize

func (a *App) CodeSummarize(codeFolder string) (string, error)

func (*App) GetConfig

func (a *App) GetConfig() *cfgs.Config

func (*App) GetFileContent

func (a *App) GetFileContent(fname string) (string, error)

func (*App) GetReportList

func (a *App) GetReportList() ([]string, error)

func (*App) LoadAndApplyConfig

func (a *App) LoadAndApplyConfig() (*cfgs.Config, error)

func (*App) LoadConfig

func (a *App) LoadConfig() (*cfgs.Config, error)

func (*App) PushMessage

func (a *App) PushMessage(msg *sumer.Message)

func (*App) SaveConfig

func (a *App) SaveConfig(cfg *cfgs.Config) error

func (*App) SelectFolder

func (a *App) SelectFolder() (string, error)

func (*App) Startup

func (a *App) Startup(ctx context.Context)

func (*App) Stop

func (a *App) Stop()

func (*App) StreamAnswer

func (a *App) StreamAnswer(delta string)

Jump to

Keyboard shortcuts

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