Documentation ¶
Index ¶
- type MockDeliverServer
- func (s *MockDeliverServer) Deliver(srv pb.Deliver_DeliverServer) error
- func (s *MockDeliverServer) DeliverFiltered(srv pb.Deliver_DeliverFilteredServer) error
- func (s *MockDeliverServer) Disconnect(err error)
- func (s *MockDeliverServer) SetStatus(status cb.Status)
- func (s *MockDeliverServer) Status() cb.Status
- type MockEventhubServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDeliverServer ¶
MockDeliverServer is a mock deliver server
func NewMockDeliverServer ¶
func NewMockDeliverServer() *MockDeliverServer
NewMockDeliverServer returns a new MockDeliverServer
func (*MockDeliverServer) Deliver ¶
func (s *MockDeliverServer) Deliver(srv pb.Deliver_DeliverServer) error
Deliver delivers a stream of blocks
func (*MockDeliverServer) DeliverFiltered ¶
func (s *MockDeliverServer) DeliverFiltered(srv pb.Deliver_DeliverFilteredServer) error
DeliverFiltered delivers a stream of filtered blocks
func (*MockDeliverServer) Disconnect ¶
func (s *MockDeliverServer) Disconnect(err error)
Disconnect terminates the stream and returns the given error to the client
func (*MockDeliverServer) SetStatus ¶
func (s *MockDeliverServer) SetStatus(status cb.Status)
SetStatus sets the status to return when calling Deliver or DeliverFiltered
func (*MockDeliverServer) Status ¶
func (s *MockDeliverServer) Status() cb.Status
Status returns the status that's returned when calling Deliver or DeliverFiltered
type MockEventhubServer ¶
MockEventhubServer is a mock event hub server
func NewMockEventhubServer ¶
func NewMockEventhubServer() *MockEventhubServer
NewMockEventhubServer returns a new MockEventhubServer
func (*MockEventhubServer) Chat ¶
func (s *MockEventhubServer) Chat(srv pb.Events_ChatServer) error
Chat starts a listener on the given chat stream
func (*MockEventhubServer) Disconnect ¶
func (s *MockEventhubServer) Disconnect(err error)
Disconnect terminates the stream and returns the given error to the client