controller

package
v0.0.0-...-5e664b8 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: AGPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateCreateRequest

func ValidateCreateRequest(dirtyData *AssistantThreadCreateRequestIDO) error

func ValidateUpdateRequest

func ValidateUpdateRequest(dirtyData *AssistantThreadUpdateRequestIDO) error

Types

type AssistantThreadControllerImpl

type AssistantThreadControllerImpl struct {
	Config                 *config.Conf
	Logger                 *slog.Logger
	UUID                   uuid.Provider
	S3                     s3_storage.S3Storager
	Password               password.Provider
	Kmutex                 kmutex.Provider
	DbClient               *mongo.Client
	TenantStorer           tenant_s.TenantStorer
	UserStorer             user_s.UserStorer
	AssistantFileStorer    assistantfile.AssistantFileStorer
	AssistantStorer        assistant_s.AssistantStorer
	AssistantThreadStorer  t_s.AssistantThreadStorer
	AssistantMessageStorer assistantmessage_s.AssistantMessageStorer
	TemplatedEmailer       templatedemailer.TemplatedEmailer
}

func (*AssistantThreadControllerImpl) ArchiveByID

func (*AssistantThreadControllerImpl) Create

func (*AssistantThreadControllerImpl) DeleteByID

func (*AssistantThreadControllerImpl) GetByID

func (*AssistantThreadControllerImpl) UpdateByID

type AssistantThreadCreateRequestIDO

type AssistantThreadCreateRequestIDO struct {
	AssistantID primitive.ObjectID `bson:"assistant_id" json:"assistant_id"`
	UserID      primitive.ObjectID `bson:"user_id" json:"user_id"`
	Message     string             `bson:"message" json:"message"`
}

type AssistantThreadUpdateRequestIDO

type AssistantThreadUpdateRequestIDO struct {
	ID          primitive.ObjectID `bson:"id" json:"id"`
	AssistantID primitive.ObjectID `bson:"assistant_id" json:"assistant_id"`
	UserID      primitive.ObjectID `bson:"user_id" json:"user_id"`
	Message     string             `bson:"message" json:"message"`
}

Jump to

Keyboard shortcuts

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