Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct { TopicFn func(name string) (lobby.Topic, error) TopicInvoked int CloseFn func() error CloseInvoked int }
Backend is a mock service that runs provided functions. Useful for testing.
type Plugin ¶
type Plugin struct { sync.Mutex NameFn func() string NameInvoked int CloseFn func() error CloseInvoked int WaitFn func() error WaitInvoked int }
Plugin is a mock service that runs provided functions. Useful for testing.
type Registry ¶
type Registry struct { CreateFn func(string, string) error CreateInvoked int TopicFn func(string) (lobby.Topic, error) TopicInvoked int CloseFn func() error CloseInvoked int Backends map[string]lobby.Backend }
Registry is a mock service that runs provided functions. Useful for testing.
func (*Registry) RegisterBackend ¶
RegisterBackend saves the backend in the Backends map.
Click to show internal directories.
Click to hide internal directories.