Control

Constructs for controlling service resources.

Summary

Functions

CreateStream(const ServiceConnectionOptions & options, absl::string_view stream_id)
absl::Status
Creates a new stream resource with id stream_id.
DeleteStream(const ServiceConnectionOptions & options, absl::string_view stream_id)
absl::Status
Deletes the stream with id stream_id.

Functions

CreateStream

absl::Status CreateStream(
  const ServiceConnectionOptions & options,
  absl::string_view stream_id
)

Creates a new stream resource with id stream_id.

Details
Parameters
option
Connection options.
stream_id
The id of the stream to connect to.
Returns
OK on success. Otherwise the error indicating the cause.

DeleteStream

absl::Status DeleteStream(
  const ServiceConnectionOptions & options,
  absl::string_view stream_id
)

Deletes the stream with id stream_id.