prompt

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Prompt

type Prompt struct {
	ID          string
	Title       string
	Description string
	Prompt      string
	CreatedAt   time.Time
	UpdatedAt   time.Time
}

func (*Prompt) ToGraph

func (r *Prompt) ToGraph() *model.Prompt

type Repository

type Repository interface {
	Count(ctx context.Context) (int64, error)
	GetAll(ctx context.Context) ([]*Prompt, error)
	GetPaginated(ctx context.Context, limit, offset int, sortBy []string) ([]*Prompt, error)
	GetByID(ctx context.Context, id string) (*Prompt, error)
	Create(ctx context.Context, upload *Prompt) error
	Update(ctx context.Context, upload *Prompt) error
	Delete(ctx context.Context, id int64) error
}

Jump to

Keyboard shortcuts

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