MCPcopy
hub / github.com/larksuite/cli / ContentConverter

Interface ContentConverter

shortcuts/im/convert_lib/content_convert.go:20–22  ·  view source on GitHub ↗

ContentConverter defines the interface for converting a message type's raw content to human-readable text.

Source from the content-addressed store, hash-verified

18
19// ContentConverter defines the interface for converting a message type's raw content to human-readable text.
20type ContentConverter interface {
21 Convert(ctx *ConvertContext) string
22}
23
24// ConvertContext holds all context needed for content conversion.
25type ConvertContext struct {

Callers 8

TestCardConverterMethodsFunction · 0.65
ConvertBodyContentFunction · 0.65
TestMediaConvertersFunction · 0.65
TestMiscConvertersFunction · 0.65
TestStickerUnchangedFunction · 0.65
TestTodoConverterFunction · 0.65
TestTextConverterConvertFunction · 0.65

Implementers 15

interactiveConvertershortcuts/im/convert_lib/card.go
textConvertershortcuts/im/convert_lib/text.go
postConvertershortcuts/im/convert_lib/text.go
mergeForwardConvertershortcuts/im/convert_lib/merge.go
imageConvertershortcuts/im/convert_lib/media.go
fileConvertershortcuts/im/convert_lib/media.go
audioMsgConvertershortcuts/im/convert_lib/media.go
videoMsgConvertershortcuts/im/convert_lib/media.go
stickerConvertershortcuts/im/convert_lib/misc.go
videoChatConvertershortcuts/im/convert_lib/misc.go
shareChatConvertershortcuts/im/convert_lib/misc.go
shareUserConvertershortcuts/im/convert_lib/misc.go

Calls

no outgoing calls

Tested by

no test coverage detected