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

Function ServiceBannerFromProto

codersdk/agentsdk/convert.go:316–322  ·  view source on GitHub ↗
(sbp *proto.ServiceBanner)

Source from the content-addressed store, hash-verified

314}
315
316func ServiceBannerFromProto(sbp *proto.ServiceBanner) codersdk.BannerConfig {
317 return codersdk.BannerConfig{
318 Enabled: sbp.GetEnabled(),
319 Message: sbp.GetMessage(),
320 BackgroundColor: sbp.GetBackgroundColor(),
321 }
322}
323
324func ProtoFromServiceBanner(sb codersdk.BannerConfig) *proto.ServiceBanner {
325 return &proto.ServiceBanner{

Callers

nothing calls this directly

Calls 3

GetEnabledMethod · 0.45
GetMessageMethod · 0.45
GetBackgroundColorMethod · 0.45

Tested by

no test coverage detected