Documentation ¶
Index ¶
- func NewClient(addrs []string, apiKey string, httpClient *http.Client) (*gocent.Client, error)
- type GrpcClient
- func (client *GrpcClient) Batch(ctx context.Context) error
- func (client *GrpcClient) Broadcast(ctx context.Context, channels []string, data []byte) error
- func (client *GrpcClient) Presence(ctx context.Context, channel string) error
- func (client *GrpcClient) PresenceStats(ctx context.Context, channel string) error
- func (client *GrpcClient) Publish(ctx context.Context, channel string, data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GrpcClient ¶ added in v3.0.79
type GrpcClient struct { }
func NewGrpcClient ¶ added in v3.0.79
func NewGrpcClient(hosts []string) (client *GrpcClient, err error)
func (*GrpcClient) Batch ¶ added in v3.0.81
func (client *GrpcClient) Batch(ctx context.Context) error
func (*GrpcClient) Presence ¶ added in v3.0.81
func (client *GrpcClient) Presence(ctx context.Context, channel string) error
func (*GrpcClient) PresenceStats ¶ added in v3.0.81
func (client *GrpcClient) PresenceStats(ctx context.Context, channel string) error
Click to show internal directories.
Click to hide internal directories.