docrepo

package
v0.0.0-...-4c419ba Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnknown  = errors.New("unknown error")
	ErrConflict = errors.New("already exists")
	ErrNotFound = errors.New("not found")
)

Functions

This section is empty.

Types

type DocRepo

type DocRepo interface {
	CreateChat(ctx context.Context, chatId string) error
	CreateMessage(ctx context.Context, chatId, userId, content string) error
	GetMessage(ctx context.Context, chatId string, offset time.Time, limit int) ([]types.Message, error)
	Close()
}

func NewDocRepo

func NewDocRepo(projectId, databaseId string) (DocRepo, error)

Jump to

Keyboard shortcuts

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