kvdb

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChatContext

type ChatContext struct {
	Time     time.Time
	Messages []openai.ChatCompletionMessage
}

type Interface

type Interface interface {
	Keys() []string
	Save(p SaveParmas) error
	Query(p QueryParams) []ChatContext
	Close()
}

func New

func New(p string) (Interface, error)

type QueryParams

type QueryParams struct {
	Bucket string
	From   time.Time
	To     time.Time
	Limit  int
}

type SaveParmas

type SaveParmas struct {
	Bucket string

	ChatContext
}

Jump to

Keyboard shortcuts

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