onlinemessagerelayservice

package
v0.0.0-...-efd9455 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetUsersOnlineStatusReq

type GetUsersOnlineStatusReq = pb.GetUsersOnlineStatusReq

type GetUsersOnlineStatusResp

type GetUsersOnlineStatusResp = pb.GetUsersOnlineStatusResp

type GetUsersOnlineStatusResp_FailedDetail

type GetUsersOnlineStatusResp_FailedDetail = pb.GetUsersOnlineStatusResp_FailedDetail

type GetUsersOnlineStatusResp_SuccessDetail

type GetUsersOnlineStatusResp_SuccessDetail = pb.GetUsersOnlineStatusResp_SuccessDetail

type GetUsersOnlineStatusResp_SuccessResult

type GetUsersOnlineStatusResp_SuccessResult = pb.GetUsersOnlineStatusResp_SuccessResult

type KickUserConnsReq

type KickUserConnsReq = pb.KickUserConnsReq

type KickUserConnsResp

type KickUserConnsResp = pb.KickUserConnsResp

type OnlineMessageRelayService

type OnlineMessageRelayService interface {
	OnlinePushMsg(ctx context.Context, in *OnlinePushMsgReq, opts ...grpc.CallOption) (*OnlinePushMsgResp, error)
	GetUsersOnlineStatus(ctx context.Context, in *GetUsersOnlineStatusReq, opts ...grpc.CallOption) (*GetUsersOnlineStatusResp, error)
	KickUserConns(ctx context.Context, in *KickUserConnsReq, opts ...grpc.CallOption) (*KickUserConnsResp, error)
}

func GetAllByEtcd

func GetAllByEtcd(
	ctx context.Context,
	etcdConf discov.EtcdConf,
	msggatewayRpcEtcdKey string,
) (services []OnlineMessageRelayService, err error)

GetAllByEtcd 获取所有 service @param msggatewayRpcEtcdKey msggateway-rpc 的 etcd key

func GetAllByK8s

func GetAllByK8s(
	msggatewayRpcTarget string,
) (services []OnlineMessageRelayService, err error)

GetAllByK8s k8s里获取所有 service @param msggatewayRpcEtcdKey msggateway-rpc 的 etcd key

func NewOnlineMessageRelayService

func NewOnlineMessageRelayService(cli zrpc.Client) OnlineMessageRelayService

type OnlinePushMsgReq

type OnlinePushMsgReq = pb.OnlinePushMsgReq

type OnlinePushMsgResp

type OnlinePushMsgResp = pb.OnlinePushMsgResp

type SingleMsgToUser

type SingleMsgToUser = pb.SingleMsgToUser

Jump to

Keyboard shortcuts

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