INNER CODE UNIT · Go

func

unitedrhino/things · sdk/protocol/coreProtocol.go:370

func (m *CoreProtocol) RegisterRpcServer(c zrpc.RpcServerConf, f func(grpcServer *grpc.Server)) {
	m.rpcRegisters = append(m.rpcRegisters, f)
	m.rpcConf = c
}

// RegisterSync 主动同步产品或设备,支持才需填写
func (m *CoreProtocol) RegisterSync(c zrpc.RpcServerConf, handle protocolSync.ProtocolSyncServer) {
	m.RegisterRpcServer(c, func(grpcServer *grpc.Server) {
		protocolSync.RegisterProtocolSyncServer(grpcServer, handle)
	})
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…