| 408 | } |
| 409 | |
| 410 | func AppHealthPoster(aAPI BatchUpdateAppHealthsClient) func(ctx context.Context, req PostAppHealthsRequest) error { |
| 411 | return func(ctx context.Context, req PostAppHealthsRequest) error { |
| 412 | pReq, err := ProtoFromAppHealthsRequest(req) |
| 413 | if err != nil { |
| 414 | return xerrors.Errorf("convert AppHealthsRequest: %w", err) |
| 415 | } |
| 416 | _, err = aAPI.BatchUpdateAppHealths(ctx, pReq) |
| 417 | if err != nil { |
| 418 | return xerrors.Errorf("batch update app healths: %w", err) |
| 419 | } |
| 420 | return nil |
| 421 | } |
| 422 | } |
| 423 | |
| 424 | // AuthenticateResponse is returned when an instance ID |
| 425 | // has been exchanged for a session token. |