microserver

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSetRPCConn = wire.NewSet(
	NewHouYiConn,
	NewRabbitRPCConn,
)

ProviderSetRPCConn wire set

Functions

This section is empty.

Types

type HouYiConn

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

HouYiConn HouYi服务连接

func NewHouYiConn

func NewHouYiConn(c *palaceconf.Bootstrap) (*HouYiConn, func(), error)

NewHouYiConn 创建一个HouYi rpc连接

func (*HouYiConn) Health

func (l *HouYiConn) Health(ctx context.Context, req *api.CheckRequest) (*api.CheckReply, error)

Health 健康检查

func (*HouYiConn) PushStrategy

PushStrategy 推送策略

func (*HouYiConn) Query

Query 查询数据

func (*HouYiConn) Sync

Sync 同步数据

func (*HouYiConn) SyncV2

SyncV2 同步数据

type Option

type Option struct {
	RPCOpts  []grpc.CallOption
	HTTPOpts []http.CallOption
}

Option http/grpc option

type RabbitConn

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

RabbitConn rabbit服务连接

func NewRabbitRPCConn

func NewRabbitRPCConn(c *palaceconf.Bootstrap) (*RabbitConn, func(), error)

NewRabbitRPCConn 创建一个rabbit rpc连接

func (*RabbitConn) NotifyObject

NotifyObject 发送通道配置

func (*RabbitConn) SendMsg

func (l *RabbitConn) SendMsg(ctx context.Context, in *hookapi.SendMsgRequest, opts ...Option) (*hookapi.SendMsgReply, error)

SendMsg 发送消息

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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