Documentation
¶
Index ¶
- Constants
- func Redis(ctx context.Context) *redis.Client
- func SetupRedis(ctx context.Context, client *redis.Client) context.Context
- type BlazeMessage
- type Client
- type Event
- type EventResponse
- type Hub
- func (hub *Hub) Register(ctx context.Context, client *Client) error
- func (hub *Hub) Run(ctx context.Context) error
- func (hub *Hub) SubscribePendingEvents(ctx context.Context, market, cid string) error
- func (hub *Hub) Unregister(client *Client) error
- func (hub *Hub) UnsubscribePendingEvents(ctx context.Context, market, cid string) error
- type Member
- type Queue
- type Subscription
Constants ¶
View Source
const ( EventTypeOrderOpen = "ORDER-OPEN" EventTypeOrderMatch = "ORDER-MATCH" EventTypeOrderCancel = "ORDER-CANCEL" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BlazeMessage ¶
type Event ¶
type EventResponse ¶
type Hub ¶
type Hub struct {
// contains filtered or unexported fields
}
func (*Hub) SubscribePendingEvents ¶
func (*Hub) Unregister ¶
type Queue ¶
type Queue struct {
// contains filtered or unexported fields
}
func (*Queue) AttachEvent ¶
type Subscription ¶
type Subscription struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.