discorddesktop

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DirectMessageGuildID   = "@me"
	DirectMessageGuildName = "Discord Direct Messages"
)

Variables

This section is empty.

Functions

func DefaultPath

func DefaultPath() string

Types

type Options

type Options struct {
	Path         string
	MaxFileBytes int64
	DryRun       bool
	FullCache    bool
	Now          func() time.Time
}

type Stats

type Stats struct {
	Path                  string    `json:"path"`
	FilesVisited          int       `json:"files_visited"`
	FilesScanned          int       `json:"files_scanned"`
	FilesSkipped          int       `json:"files_skipped"`
	FilesUnchanged        int       `json:"files_unchanged"`
	CacheFilesFastSkipped int       `json:"cache_files_fast_skipped"`
	BytesScanned          int64     `json:"bytes_scanned"`
	JSONObjects           int       `json:"json_objects"`
	Guilds                int       `json:"guilds"`
	Channels              int       `json:"channels"`
	Messages              int       `json:"messages"`
	DMMessages            int       `json:"dm_messages"`
	DMChannels            int       `json:"dm_channels"`
	GuildMessages         int       `json:"guild_messages"`
	SkippedMessages       int       `json:"skipped_messages"`
	SkippedChannels       int       `json:"skipped_channels"`
	Checkpoints           int       `json:"checkpoints"`
	DryRun                bool      `json:"dry_run,omitempty"`
	FullCache             bool      `json:"full_cache,omitempty"`
	StartedAt             time.Time `json:"started_at"`
	FinishedAt            time.Time `json:"finished_at"`
}

func Import

func Import(ctx context.Context, st *store.Store, opts Options) (Stats, error)

Jump to

Keyboard shortcuts

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