[#255] services/audit: Define interface of container communicator

Define interface of the container communicator which methods are going to be
used in audit checks. Make innerring Server to implement this interface.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-12-22 15:14:50 +03:00 committed by Alex Vanin
parent ecb5227c27
commit 03e3afb0e8
4 changed files with 59 additions and 1 deletions

View file

@ -71,3 +71,11 @@ func WithQueueCapacity(cap uint32) Option {
c.queueCap = cap
}
}
// WithContainerCommunicator returns option to set component of communication
// with container nodes.
func WithContainerCommunicator(cnrCom auditor.ContainerCommunicator) Option {
return func(c *cfg) {
c.ctxPrm.SetContainerCommunicator(cnrCom)
}
}