cmd

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrMemoryStoreTypeNotSet = "memory_store.type must be set"
	ErrPostgresDSNNotSet     = "memory_store.postgres.dsn must be set"
	MemoryStoreTypePostgres  = "postgres"
)

Variables

View Source
var (
	Version       = "dev"
	CommitHash    = "n/a"
	BuildTime     = "n/a"
	VersionString = fmt.Sprintf("%s-%s (%s)", Version, CommitHash, BuildTime)
)

Functions

func Execute

func Execute()

Execute executes the root cobra command.

func NewAppState

func NewAppState(cfg *config.Config) *models.AppState

NewAppState creates an AppState struct from the config file / ENV, initializes the memory store, and creates the OpenAI client

Types

This section is empty.

Jump to

Keyboard shortcuts

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