api

package
v0.0.0-...-ab17b8d Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

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

func NewAPI

func NewAPI(logger *logrus.Logger, storage storage.Storage, searchSystem search.System, config Config, userManager *auth.UserManager, jwtManager *auth.JWTManager, aclManager auth.ACLManager, enableAuth bool, analyticsManager *analytics.Analytics, datasourceManager *datasource.Manager, documentManager *document.Manager, embeddingManager *embedding.Manager, interactionManager *interaction.Manager, llmManager *llm.Manager, searchManager *search.Manager, settingsManager *settings.Manager, oauthManager *auth.OAuthManager, systemManager *system.Manager) *API

func (*API) Shutdown

func (a *API) Shutdown(ctx context.Context) error

func (*API) Start

func (a *API) Start(ctx context.Context) error

Start starts the API server

func (*API) StartWithHealthCheck

func (a *API) StartWithHealthCheck(ctx context.Context) error

type Config

type Config struct {
	Port              int
	ServerReadTimeout int
	WriteTimeout      int
	IdleTimeout       int
}

Jump to

Keyboard shortcuts

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