logic

package
v0.0.0-...-4702bed Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Overview

** description(""). ** copyright('open-im,www.open-im.io'). ** author("fg,Gordon@open-im.io"). ** time(2021/3/22 15:33).

** description(""). ** copyright('Open_IM,www.Open_IM.io'). ** author("fg,Gordon@tuoyun.net"). ** time(2021/5/13 10:33).

** description(""). ** copyright('open-im,www.open-im.io'). ** author("fg,Gordon@open-im.io"). ** time(2021/3/5 14:31).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOfflinePushOpts

func GetOfflinePushOpts(pushMsg *pbPush.PushMsgReq) (opts push.PushOpts, err error)

func IOSAccountListPush

func IOSAccountListPush(accounts []string, title, content, jsonCustomContent string)

func Init

func Init(rpcPort int)

func MsgToSuperGroupUser

func MsgToSuperGroupUser(pushMsg *pbPush.PushMsgReq)

func MsgToUser

func MsgToUser(pushMsg *pbPush.PushMsgReq)

func Run

func Run(promethuesPort int)

Types

type AtContent

type AtContent struct {
	Text       string   `json:"text"`
	AtUserList []string `json:"atUserList"`
	IsAtSelf   bool     `json:"isAtSelf"`
}

type OpenIMContent

type OpenIMContent struct {
	SessionType int    `json:"sessionType"`
	From        string `json:"from"`
	To          string `json:"to"`
	Seq         uint32 `json:"seq"`
}

type PushConsumerHandler

type PushConsumerHandler struct {
	// contains filtered or unexported fields
}

func (PushConsumerHandler) Cleanup

func (*PushConsumerHandler) ConsumeClaim

func (*PushConsumerHandler) Init

func (ms *PushConsumerHandler) Init()

func (PushConsumerHandler) Setup

type RPCServer

type RPCServer struct {
	// contains filtered or unexported fields
}

func (*RPCServer) DelUserPushToken

func (*RPCServer) Init

func (r *RPCServer) Init(rpcPort int)

func (*RPCServer) PushMsg

func (r *RPCServer) PushMsg(_ context.Context, pbData *pbPush.PushMsgReq) (*pbPush.PushMsgResp, error)

Jump to

Keyboard shortcuts

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