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

Function ChatConverter

coderd/rbac/regosql/configs.go:57–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55}
56
57func ChatConverter() *sqltypes.VariableConverter {
58 matcher := chatBaseConverter()
59 matcher.RegisterMatcher(
60 ACLMappingMatcher(matcher, "chats_expanded.group_acl", []string{"input", "object", "acl_group_list"}).UsingSubfield("permissions"),
61 ACLMappingMatcher(matcher, "chats_expanded.user_acl", []string{"input", "object", "acl_user_list"}).UsingSubfield("permissions"),
62 )
63
64 return matcher
65}
66
67func ChatNoACLConverter() *sqltypes.VariableConverter {
68 matcher := chatBaseConverter()

Callers 2

ConfigChatsFunction · 0.92
TestRegoQueriesFunction · 0.92

Calls 4

chatBaseConverterFunction · 0.85
ACLMappingMatcherFunction · 0.85
RegisterMatcherMethod · 0.80
UsingSubfieldMethod · 0.80

Tested by 1

TestRegoQueriesFunction · 0.74