Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultAddress = "127.0.0.1:1111"
DefaultAddress of the server is to listen only on the loopback interface.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter interface { Instances() (int, error) SubscriptionManager() SubscriptionManager EventManager() EventManager }
type EventManager ¶
type EventManager interface { // Create an event registration Create(string) error // Delete an event registration (must have been created by this service). Delete(string) error // List all available events List() ([]string, error) }
EventManager for registering emitted events
type Grid ¶
type Grid struct {
// contains filtered or unexported fields
}
Grid service.
type Option ¶
type Option func(*Grid)
func WithAdapter ¶
func WithAddress ¶
func WithOnListen ¶
func WithOnListen(f func()) Option
func WithVerbose ¶
func WithVersion ¶
Click to show internal directories.
Click to hide internal directories.