Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing interface method signatures #243

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions hub.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,18 +75,18 @@ type (
// Sender provides the ability to send a messages
Sender interface {
Send(ctx context.Context, event *Event, opts ...SendOption) error
SendBatch(ctx context.Context, batch *EventBatch, opts ...SendOption) error
SendBatch(ctx context.Context, iterator BatchIterator, opts ...BatchOption) error
}

// PartitionedReceiver provides the ability to receive messages from a given partition
PartitionedReceiver interface {
Receive(ctx context.Context, partitionID string, handler Handler, opts ...ReceiveOption) (ListenerHandle, error)
Receive(ctx context.Context, partitionID string, handler Handler, opts ...ReceiveOption) (*ListenerHandle, error)
}

// Manager provides the ability to query management node information about a node
Manager interface {
GetRuntimeInformation(context.Context) (HubRuntimeInformation, error)
GetPartitionInformation(context.Context, string) (HubPartitionRuntimeInformation, error)
GetRuntimeInformation(context.Context) (*HubRuntimeInformation, error)
GetPartitionInformation(context.Context, string) (*HubPartitionRuntimeInformation, error)
}

// HubOption provides structure for configuring new Event Hub clients. For building new Event Hubs, see
Expand Down