tweetseditor

package
v0.2.20 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Editor

type Editor interface {
	Edit(ctx context.Context) context.Context
	SubscribeEdited() <-chan string
	SubscribeLongStoryMessages() <-chan string
	SubscribeRusStoryMessages() <-chan string
}

func NewEditor

func NewEditor(client *openai.Client, db repo, sendInterval, cleanInterval time.Duration, log log.Logger) Editor

type LongStoryMessage added in v0.1.25

type LongStoryMessage struct {
	Content   string `json:"telegram_message"`
	Useful    bool   `json:"useful_information"`
	Duplicate bool   `json:"duplicate_information"`
}

type Tweet added in v0.0.4

type Tweet struct {
	Content   string `json:"telegram_message"`
	Link      string `json:"link"`
	Useful    bool   `json:"useful_information"`
	Duplicate bool   `json:"duplicate_information"`
}

Jump to

Keyboard shortcuts

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