connector

package
v0.0.5-timer Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 7, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package connector provides the functionality to send rpc requests to connector server. You can understand the connector servers as a gateway to get requests and push commands to client.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct{}

func New

func New() *Client

func (*Client) GroupDissolved

func (m *Client) GroupDissolved(uids []string, groupID int64)

func (*Client) PushAcceptInvite

func (m *Client) PushAcceptInvite(inviter, invitee string)

func (*Client) PushCancelMatch

func (m *Client) PushCancelMatch(uids []string, cancelUID string)

func (*Client) PushGroupState

func (m *Client) PushGroupState(uids []string, groupID int64, state entry.GroupState)

func (*Client) PushGroupUsers

func (m *Client) PushGroupUsers(uids []string, users pto.GroupUser)

func (*Client) PushInviteMsg

func (m *Client) PushInviteMsg(param *pto.InviteMsg)

func (*Client) PushKick

func (m *Client) PushKick(uid string, groupID int64)

func (*Client) PushRefuseInvite

func (m *Client) PushRefuseInvite(inviter, invitee, refuseMsg string)

func (*Client) PushVoiceState

func (m *Client) PushVoiceState(uids []string, states *pto.UserVoiceState)

func (*Client) UpdateOnlineState

func (m *Client) UpdateOnlineState(uids []string, state int)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL