ostinato.protocols.sign_pb2 module¶
To add and configure Sign in a stream, add a protocol to the stream, set the protocol id to ost_pb.Protocol.kSignFieldNumber
and access the Sign object from the Protocol object's Extensions
dictionary using the key sign_pb2.sign
from ostinato.protocols import sign_pb2
...
# stream is an object of type ost_pb.Stream
proto = stream.protocol.add()
proto.protocol_id.id = ost_pb.Protocol.kSignFieldNumber
my_sign = proto.Extensions[sign_pb2.sign]
You can then set Sign attributes using my_sign.<attribute>
Sign class¶
Class attributes¶
stream_guid¶
Sign.stream_guid : long
Optional. If not set, defaults to 0.