Documentation ¶
Index ¶
- type Builder
- type Client
- func (c *Client) Deliver(ctx context.Context, cid, uid int64, message []byte) error
- func (c *Client) GetState(ctx context.Context) (cluster.State, error)
- func (c *Client) SetState(ctx context.Context, state cluster.State) error
- func (c *Client) Trigger(ctx context.Context, event cluster.Event, cid, uid int64) error
- type Options
- type Provider
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
type Provider ¶
type Provider interface { // Trigger 触发事件 Trigger(ctx context.Context, gid string, cid, uid int64, event cluster.Event) error // Deliver 投递消息 Deliver(ctx context.Context, gid, nid string, cid, uid int64, message []byte) error // GetState 获取状态 GetState() (cluster.State, error) // SetState 设置状态 SetState(state cluster.State) error }
Click to show internal directories.
Click to hide internal directories.