feat(gateway): fetch sealed Apollo session work
Verify Data Plane / gateway (push) Successful in 3m33s

This commit is contained in:
sechmachine
2026-07-29 11:27:31 +07:00
parent 8a302cd8cc
commit 844e548c95
9 changed files with 217 additions and 44 deletions
+12
View File
@@ -76,6 +76,18 @@ func (c *ControlPlaneClient) Release(ctx context.Context, authority protocol.Ses
return err
}
func (c *ControlPlaneClient) ProviderWork(ctx context.Context, authority protocol.SessionAuthority) (protocol.ProviderSessionWork, error) {
payload, err := protocol.EncodeSessionAuthority(authority)
if err != nil {
return protocol.ProviderSessionWork{}, err
}
response, err := c.post(ctx, "/api/v1/gateway/provider-work", payload)
if err != nil {
return protocol.ProviderSessionWork{}, err
}
return protocol.DecodeProviderSessionWork(response)
}
func (c *ControlPlaneClient) ReportProviderState(ctx context.Context, state protocol.ProviderState) error {
payload, err := protocol.EncodeProviderState(state)
if err != nil {