feat(gateway): fetch sealed Apollo session work
Verify Data Plane / gateway (push) Successful in 3m33s
Verify Data Plane / gateway (push) Successful in 3m33s
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user