(sbp *proto.ServiceBanner)
| 314 | } |
| 315 | |
| 316 | func 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 | |
| 324 | func ProtoFromServiceBanner(sb codersdk.BannerConfig) *proto.ServiceBanner { |
| 325 | return &proto.ServiceBanner{ |
nothing calls this directly
no test coverage detected