syncer

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: May 18, 2026 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SyncOptions

type SyncOptions struct {
	Full         bool
	GuildIDs     []string
	ChannelIDs   []string
	Concurrency  int
	Since        time.Time
	Embeddings   bool
	SkipMembers  bool
	LatestOnly   bool
	RepairReason string
}

type SyncStats

type SyncStats struct {
	Guilds   int `json:"guilds"`
	Channels int `json:"channels"`
	Threads  int `json:"threads"`
	Members  int `json:"members"`
	Messages int `json:"messages"`
}

type Syncer

type Syncer struct {
	// contains filtered or unexported fields
}

func New

func New(client Client, store *store.Store, logger *slog.Logger) *Syncer

func (*Syncer) DiscoverGuilds

func (s *Syncer) DiscoverGuilds(ctx context.Context) ([]*discordgo.UserGuild, error)

func (*Syncer) RunTail

func (s *Syncer) RunTail(ctx context.Context, guildIDs []string, repairEvery time.Duration) error

func (*Syncer) SetAttachmentTextEnabled

func (s *Syncer) SetAttachmentTextEnabled(enabled bool)

func (*Syncer) Sync

func (s *Syncer) Sync(ctx context.Context, opts SyncOptions) (SyncStats, error)

Jump to

Keyboard shortcuts

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