Deprecated: GetServiceBanner has been deprecated in favor of GetAnnouncementBanners.
(ctx context.Context, _ *proto.GetServiceBannerRequest)
| 17 | |
| 18 | // Deprecated: GetServiceBanner has been deprecated in favor of GetAnnouncementBanners. |
| 19 | func (a *AnnouncementBannerAPI) GetServiceBanner(ctx context.Context, _ *proto.GetServiceBannerRequest) (*proto.ServiceBanner, error) { |
| 20 | cfg, err := (*a.appearanceFetcher.Load()).Fetch(ctx) |
| 21 | if err != nil { |
| 22 | return nil, xerrors.Errorf("fetch appearance: %w", err) |
| 23 | } |
| 24 | return agentsdk.ProtoFromServiceBanner(cfg.ServiceBanner), nil |
| 25 | } |
| 26 | |
| 27 | func (a *AnnouncementBannerAPI) GetAnnouncementBanners(ctx context.Context, _ *proto.GetAnnouncementBannersRequest) (*proto.GetAnnouncementBannersResponse, error) { |
| 28 | cfg, err := (*a.appearanceFetcher.Load()).Fetch(ctx) |
nothing calls this directly
no test coverage detected