Documentation
¶
Index ¶
- type CorePrompt
- type CreatePromptParams
- type DBTX
- type DeletePromptParams
- type GetPromptByIDParams
- type GetPromptByNameParams
- type ListPromptsParams
- type Queries
- func (q *Queries) CreatePrompt(ctx context.Context, arg CreatePromptParams) (CorePrompt, error)
- func (q *Queries) DeletePrompt(ctx context.Context, arg DeletePromptParams) (uuid.UUID, error)
- func (q *Queries) GetPromptByID(ctx context.Context, arg GetPromptByIDParams) (CorePrompt, error)
- func (q *Queries) GetPromptByName(ctx context.Context, arg GetPromptByNameParams) (CorePrompt, error)
- func (q *Queries) ListPrompts(ctx context.Context, arg ListPromptsParams) ([]CorePrompt, error)
- func (q *Queries) UpdatePrompt(ctx context.Context, arg UpdatePromptParams) (CorePrompt, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type UpdatePromptParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CorePrompt ¶
type CorePrompt struct {
ID uuid.UUID `json:"id"`
Name string `json:"name"`
Content string `json:"content"`
Tags []string `json:"tags"`
Parameters []string `json:"parameters"`
SampleParameters []byte `json:"sample_parameters"`
Format string `json:"format"`
FormatInstructions pgtype.Text `json:"format_instructions"`
UserID string `json:"user_id"`
TenantID string `json:"tenant_id"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type CreatePromptParams ¶
type CreatePromptParams struct {
UserID string `json:"user_id"`
Name string `json:"name"`
Content string `json:"content"`
TenantID string `json:"tenant_id"`
Tags []string `json:"tags"`
Parameters []string `json:"parameters"`
SampleParameters []byte `json:"sample_parameters"`
Format string `json:"format"`
FormatInstructions pgtype.Text `json:"format_instructions"`
}
type DeletePromptParams ¶
type GetPromptByIDParams ¶
type GetPromptByNameParams ¶
type ListPromptsParams ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreatePrompt ¶
func (q *Queries) CreatePrompt(ctx context.Context, arg CreatePromptParams) (CorePrompt, error)
func (*Queries) DeletePrompt ¶
func (*Queries) GetPromptByID ¶
func (q *Queries) GetPromptByID(ctx context.Context, arg GetPromptByIDParams) (CorePrompt, error)
func (*Queries) GetPromptByName ¶
func (q *Queries) GetPromptByName(ctx context.Context, arg GetPromptByNameParams) (CorePrompt, error)
func (*Queries) ListPrompts ¶
func (q *Queries) ListPrompts(ctx context.Context, arg ListPromptsParams) ([]CorePrompt, error)
func (*Queries) UpdatePrompt ¶
func (q *Queries) UpdatePrompt(ctx context.Context, arg UpdatePromptParams) (CorePrompt, error)
type UpdatePromptParams ¶
type UpdatePromptParams struct {
ID uuid.UUID `json:"id"`
Name pgtype.Text `json:"name"`
Content pgtype.Text `json:"content"`
Tags []string `json:"tags"`
Parameters []string `json:"parameters"`
SampleParameters []byte `json:"sample_parameters"`
Format string `json:"format"`
FormatInstructions pgtype.Text `json:"format_instructions"`
TenantID string `json:"tenant_id"`
}
Click to show internal directories.
Click to hide internal directories.