Events

class aetcd3.events.Event(event)[source]

Base event type.

Parameters

event – Raw gRPC event

class aetcd3.events.PutEvent(event)[source]

Put event type.

class aetcd3.events.DeleteEvent(event)[source]

Delete event type.

aetcd3.events.new_event(event)[source]

Wrap a raw gRPC event in a friendlier containing class.

This picks the appropriate class from one of PutEvent or DeleteEvent and returns a new instance.

If wrong raw gRPC event was provided Exception is raised.

Parameters

event – Raw gRPC event

Return type

One of PutEvent or DeleteEvent

Raises

Exception