controller

package
v0.0.0-...-90abbe5 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

func New

func New(ctx context.Context, opt Options) (*Controller, error)

func (*Controller) Start

func (c *Controller) Start(ctx context.Context) error

type Options

type Options struct {
	ApiUrl    string `json:"apiUrl,omitempty" default:"http://localhost:8080"`
	ApiToken  string `json:"apiToken,omitempty"`
	Namespace string `usage:"Namespace to watch" default:"acorn"`
	AppName   string `usage:"App to create assistants for"`
}

type Services

type Services struct {
	AppName      string
	OpenAIClient *openai.Client
	Router       *router.Router
	PreStart     func(ctx context.Context) error
}

func NewServices

func NewServices(opt Options) (*Services, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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