Documentation ¶
Index ¶
- func Quality() market.Quality
- type EventBus
- func (mp *EventBus) Clear()
- func (mp *EventBus) GetEventHistory() []EventBusEntry
- func (mp *EventBus) Pop() interface{}
- func (mp *EventBus) Publish(topic string, event interface{})
- func (mp *EventBus) Subscribe(topic string, fn interface{}) error
- func (mp *EventBus) SubscribeAsync(topic string, fn interface{}) error
- func (mp *EventBus) SubscribeWithUID(topic, uid string, fn interface{}) error
- func (mp *EventBus) Unsubscribe(topic string, fn interface{}) error
- func (mp *EventBus) UnsubscribeWithUID(topic, uid string, fn interface{}) error
- type EventBusEntry
- type IdentityProvider
- type IdentityRegistry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EventBus ¶
type EventBus struct {
// contains filtered or unexported fields
}
EventBus is a fake event bus.
func (*EventBus) GetEventHistory ¶
func (mp *EventBus) GetEventHistory() []EventBusEntry
GetEventHistory fetches the event history
func (*EventBus) Pop ¶
func (mp *EventBus) Pop() interface{}
Pop pops the last event for assertions.
func (*EventBus) SubscribeAsync ¶
SubscribeAsync fakes async subsribe.
func (*EventBus) SubscribeWithUID ¶
SubscribeWithUID fakes subscribe.
func (*EventBus) Unsubscribe ¶
Unsubscribe fakes unsubscribe.
func (*EventBus) UnsubscribeWithUID ¶
UnsubscribeWithUID fakes unsubscribe.
type EventBusEntry ¶
type EventBusEntry struct { Topic string Event interface{} }
EventBusEntry represents the entry in publisher's history
type IdentityProvider ¶
type IdentityProvider struct { Identities []identity.Identity // contains filtered or unexported fields }
IdentityProvider is a fake identity provider.
func (*IdentityProvider) GetIdentities ¶
func (ip *IdentityProvider) GetIdentities() []identity.Identity
GetIdentities returns a predefined set of identities.
type IdentityRegistry ¶
type IdentityRegistry struct {
Status registry.RegistrationStatus
}
IdentityRegistry is a fake identity registry.
func (IdentityRegistry) GetRegistrationStatus ¶
func (i IdentityRegistry) GetRegistrationStatus(_ int64, _ identity.Identity) (registry.RegistrationStatus, error)
GetRegistrationStatus returns a pre-defined RegistrationStatus.
func (IdentityRegistry) Subscribe ¶
func (i IdentityRegistry) Subscribe(_ eventbus.Subscriber) error
Subscribe does nothing.
Click to show internal directories.
Click to hide internal directories.