SendData API & publishData permission (#88)

* SendData Server API

* SendData Server-API adjustments based on suggestions

* Update proto version

* enforce publishData permission

* go mod tidy

* fix go.mod

* go mod tidy

Co-authored-by: ChesterMing <89124853+ChesterMing@users.noreply.github.com>
This commit is contained in:
David Zhao
2021-08-19 18:11:48 -07:00
committed by GitHub
co-authored by ChesterMing
parent 2ab37d8fcc
commit bcf6e15e07
15 changed files with 163 additions and 59 deletions
+1
View File
@@ -16,6 +16,7 @@ func newMockParticipant(identity string, protocol types.ProtocolVersion, hidden
p.ProtocolVersionReturns(protocol)
p.CanSubscribeReturns(true)
p.CanPublishReturns(!hidden)
p.CanPublishDataReturns(!hidden)
p.HiddenReturns(hidden)
p.SetMetadataStub = func(m string) {