repository

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

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

Go to latest
Published: Dec 1, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GptRepository

type GptRepository interface {
	CreateCompletion(ctx context.Context, prompt string) (openai.ChatCompletionResponse, error)
	CreateImage(ctx context.Context, prompt string) (string, error)
}

type SlackRepository

type SlackRepository interface {
	LoadConversationReplies(channelId string, timeStamp string) ([]slack.Message, error)
	CreateNewBotMessage(channelId string, timeStamp string, msg string) error
	GetBotUserId() (string, error)
}

type SpreadsheetRepository

type SpreadsheetRepository interface {
	GetSpreadsheetDataBySlackID(ctx context.Context, userID string) (*model.SpreadsheetData, error)
	UpdateSpreadsheet(ctx context.Context, update model.SpreadsheetData) error
}

Jump to

Keyboard shortcuts

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