Documentation ¶
Index ¶
- type Authorizer
- type Conn
- func (f *Conn) AddLink(alias string, channel *security.Channel)
- func (f *Conn) CanSubscribe(message.Ssid, []byte) bool
- func (f *Conn) CanUnsubscribe(message.Ssid, []byte) bool
- func (f *Conn) Close() error
- func (f *Conn) GetLink(input []byte) []byte
- func (f *Conn) ID() string
- func (f *Conn) Links() map[string]string
- func (f *Conn) LocalID() security.ID
- func (f *Conn) Send(m *message.Message) error
- func (f *Conn) Track(contract.Contract)
- func (f *Conn) Type() message.SubscriberType
- func (f *Conn) Username() string
- type Contract
- type Decryptor
- type Notifier
- type PubSub
- func (f *PubSub) Handle(_ string, _ service.Handler)
- func (f *PubSub) Publish(m *message.Message, filter func(message.Subscriber) bool) (n int64)
- func (f *PubSub) Subscribe(sub message.Subscriber, ev *event.Subscription) bool
- func (f *PubSub) Unsubscribe(sub message.Subscriber, ev *event.Subscription) bool
- type Replicator
- type Surveyor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authorizer ¶
Authorizer fake.
type Conn ¶
type Conn struct { ConnID int Disabled bool Outgoing []message.Message Shortcuts map[string]string }
Conn fake.
func (*Conn) CanSubscribe ¶
CanSubscribe provides a fake implementation.
func (*Conn) CanUnsubscribe ¶
CanUnsubscribe provides a fake implementation.
func (*Conn) Type ¶
func (f *Conn) Type() message.SubscriberType
Type provides a fake implementation.
type Notifier ¶
type Notifier struct {
Events []event.Subscription
}
Notifier fake.
func (*Notifier) NotifySubscribe ¶
func (f *Notifier) NotifySubscribe(sub message.Subscriber, ev *event.Subscription)
NotifySubscribe provides a fake implementation.
func (*Notifier) NotifyUnsubscribe ¶
func (f *Notifier) NotifyUnsubscribe(sub message.Subscriber, ev *event.Subscription)
NotifyUnsubscribe provides a fake implementation.
type PubSub ¶
PubSub fake.
func (*PubSub) Subscribe ¶
func (f *PubSub) Subscribe(sub message.Subscriber, ev *event.Subscription) bool
Subscribe provides a fake implementation.
func (*PubSub) Unsubscribe ¶
func (f *PubSub) Unsubscribe(sub message.Subscriber, ev *event.Subscription) bool
Unsubscribe provides a fake implementation.
type Replicator ¶
type Replicator struct {
// contains filtered or unexported fields
}
Replicator fake.
Click to show internal directories.
Click to hide internal directories.