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

Function BannerConfigFromProto

codersdk/agentsdk/convert.go:332–338  ·  view source on GitHub ↗
(sbp *proto.BannerConfig)

Source from the content-addressed store, hash-verified

330}
331
332func BannerConfigFromProto(sbp *proto.BannerConfig) codersdk.BannerConfig {
333 return codersdk.BannerConfig{
334 Enabled: sbp.GetEnabled(),
335 Message: sbp.GetMessage(),
336 BackgroundColor: sbp.GetBackgroundColor(),
337 }
338}
339
340func ProtoFromBannerConfig(sb codersdk.BannerConfig) *proto.BannerConfig {
341 return &proto.BannerConfig{

Callers 4

runMethod · 0.92

Calls 3

GetEnabledMethod · 0.45
GetMessageMethod · 0.45
GetBackgroundColorMethod · 0.45

Tested by 2