service

package
v0.0.0-...-de2ca29 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NewOptions

type NewOptions struct {
	Path string
}

type Service

type Service struct {
	DB *sql.Database
}

func New

func New(opts NewOptions) *Service

func (*Service) AddModel

func (s *Service) AddModel(ctx clir.Context, modelName, modelType, token, address string) error

func (*Service) ConnectAndMigrate

func (s *Service) ConnectAndMigrate(ctx context.Context) error

func (*Service) PrintConversations

func (s *Service) PrintConversations(ctx clir.Context) error

func (*Service) PrintModels

func (s *Service) PrintModels(ctx clir.Context) error

func (*Service) PrintSpeakers

func (s *Service) PrintSpeakers(ctx clir.Context) error

func (*Service) RecomputeTopics

func (s *Service) RecomputeTopics(ctx clir.Context) error

func (*Service) Serve

func (s *Service) Serve(ctx context.Context, db *sql.Database, public embed.FS, err io.Writer)

func (*Service) Start

func (s *Service) Start(ctx context.Context, r io.Reader, w io.Writer, opts StartOptions) error

type StartOptions

type StartOptions struct {
	Continue bool
	Prompt   string
}

Jump to

Keyboard shortcuts

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