Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Exporter ¶
type Exporter interface { // ProcessFunc returns the process function that should be passed to // DumpMessagesRaw. It should be able to extract files from the messages // and download them. If the downloader is not started, i.e. if file // download is disabled, it should silently ignore the error and return // nil. ProcessFunc(channelName string) slackdump.ProcessFunc StartStopper }
Exporter is the file exporter interface.
type Mattermost ¶
type Mattermost struct {
// contains filtered or unexported fields
}
func NewMattermost ¶
NewMattermost returns the dl, that downloads the files into the __uploads directory, so that it could be transformed into bulk import by mmetl and imported into mattermost with mmctl import bulk.
func (*Mattermost) ProcessFunc ¶
func (md *Mattermost) ProcessFunc(_ string) slackdump.ProcessFunc
ProcessFunc returns the ProcessFunc that downloads the files into the __uploads directory in the root of the download filesystem.
type Nothing ¶
type Nothing struct {
// contains filtered or unexported fields
}
Nothing does not download any files, it just updates the link adding a token query parameter, if the token is set.
func NewFileUpdater ¶
NewFileUpdater returns an fileExporter that does not download any files, but updates the link adding a token query parameter, if the token is set.
func (Nothing) ProcessFunc ¶
ProcessFunc returns the slackdump.ProcessFunc that updates the file link adding a token query parameter.
type StartStopper ¶
type Std ¶
type Std struct {
// contains filtered or unexported fields
}
func NewStd ¶
NewStd returns standard dl, which downloads files into "channel_id/attachments" directory.
func (*Std) ProcessFunc ¶
ProcessFunc returns the function that downloads the file into channel_id/attachments directory. If Slack token is set, it updates the thumbnails to include that token. It replaces the file URL to point to physical downloaded files on disk.