fabric-sdk-go: github.com/hyperledger/fabric-sdk-go/pkg/fab/events/mocks Index | Files

package mocks

import "github.com/hyperledger/fabric-sdk-go/pkg/fab/events/mocks"

Index

Package Files

mockdelserver.go

type MockDeliverServer Uses

type MockDeliverServer struct {
    sync.RWMutex
    // contains filtered or unexported fields
}

MockDeliverServer is a mock deliver server

func NewMockDeliverServer Uses

func NewMockDeliverServer() *MockDeliverServer

NewMockDeliverServer returns a new MockDeliverServer

func NewMockDeliverServerWithDeliveries Uses

func NewMockDeliverServerWithDeliveries(d <-chan *cb.Block) *MockDeliverServer

NewMockDeliverServerWithDeliveries returns a new MockDeliverServer using Deliveries channel with common.Block

func NewMockDeliverServerWithFilteredDeliveries Uses

func NewMockDeliverServerWithFilteredDeliveries(d <-chan *pb.FilteredBlock) *MockDeliverServer

NewMockDeliverServerWithFilteredDeliveries returns a new MockDeliverServer using filteredDeliveries channel with FilteredBlock

func (*MockDeliverServer) Deliver Uses

func (s *MockDeliverServer) Deliver(srv pb.Deliver_DeliverServer) error

Deliver delivers a stream of blocks

func (*MockDeliverServer) DeliverFiltered Uses

func (s *MockDeliverServer) DeliverFiltered(srv pb.Deliver_DeliverFilteredServer) error

DeliverFiltered delivers a stream of filtered blocks

func (*MockDeliverServer) DeliverWithPrivateData Uses

func (s *MockDeliverServer) DeliverWithPrivateData(pb.Deliver_DeliverWithPrivateDataServer) error

DeliverWithPrivateData is not implemented

func (*MockDeliverServer) Disconnect Uses

func (s *MockDeliverServer) Disconnect(err error)

Disconnect terminates the stream and returns the given error to the client

func (*MockDeliverServer) SetStatus Uses

func (s *MockDeliverServer) SetStatus(status cb.Status)

SetStatus sets the status to return when calling Deliver or DeliverFiltered

func (*MockDeliverServer) Status Uses

func (s *MockDeliverServer) Status() cb.Status

Status returns the status that's returned when calling Deliver or DeliverFiltered

Package mocks imports 7 packages (graph). Updated 2019-08-29. Refresh now. Tools for package owners.