MCPcopy Index your code
hub / github.com/coder/coder / AllowedStoredMediaTypesString

Function AllowedStoredMediaTypesString

coderd/x/chatfiles/mime.go:66–68  ·  view source on GitHub ↗

AllowedStoredMediaTypesString returns the supported durable chat file media types as a comma-separated list.

()

Source from the content-addressed store, hash-verified

64// AllowedStoredMediaTypesString returns the supported durable chat file media
65// types as a comma-separated list.
66func AllowedStoredMediaTypesString() string {
67 return strings.Join(slices.Sorted(maps.Keys(allowedStoredMediaTypes)), ", ")
68}
69
70// IsAllowedStoredMediaType reports whether the media type is supported for
71// durable chat file storage.

Callers 1

postChatFileMethod · 0.92

Calls 1

KeysMethod · 0.80

Tested by

no test coverage detected