config

package
v1.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	zrpc.RpcServerConf
	PushType                string      `json:",default=jpns,options=jpns|mobpush"`
	Jpns                    JpnsConf    `json:",optional"`
	MobPush                 MobPushConf `json:",optional"`
	ImUserRpc               zrpc.RpcClientConf
	OfflinePushDefaultTitle string // 默认的离线推送标题
	OfflinePushGroupTitle   string // 群聊消息推送标题
	SinglePushConsumer      SinglePushConsumerConfig
	GroupPushConsumer       GroupPushConsumerConfig
	Redis                   redis.RedisConf
}

type GroupPushConsumerConfig

type GroupPushConsumerConfig struct {
	xkafka.ProducerConfig
	GroupPushGroupID string
}

type JpnsConf

type JpnsConf struct {
	PushIntent     string
	PushUrl        string
	AppKey         string
	MasterSecret   string
	ApnsProduction bool `json:",default=false"`
}

type MobPushConf

type MobPushConf struct {
	AppKey         string
	AppSecret      string
	ApnsProduction bool `json:",default=false"`
	ApnsCateGory   string
	ApnsSound      string
	AndroidSound   string
}

type SinglePushConsumerConfig

type SinglePushConsumerConfig struct {
	xkafka.ProducerConfig
	SinglePushGroupID string
}

Jump to

Keyboard shortcuts

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