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

Function ProtoFromServiceBanner

codersdk/agentsdk/convert.go:324–330  ·  view source on GitHub ↗
(sb codersdk.BannerConfig)

Source from the content-addressed store, hash-verified

322}
323
324func ProtoFromServiceBanner(sb codersdk.BannerConfig) *proto.ServiceBanner {
325 return &proto.ServiceBanner{
326 Enabled: sb.Enabled,
327 Message: sb.Message,
328 BackgroundColor: sb.BackgroundColor,
329 }
330}
331
332func BannerConfigFromProto(sbp *proto.BannerConfig) codersdk.BannerConfig {
333 return codersdk.BannerConfig{

Callers 1

GetServiceBannerMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected