aboutsummaryrefslogtreecommitdiff
path: root/weed/mq/client/agent_client/agent_publish.go
blob: 3e16f3b991d6b82764652e08f10f332726bd9875 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package agent_client

import (
	"github.com/seaweedfs/seaweedfs/weed/pb/mq_agent_pb"
	"github.com/seaweedfs/seaweedfs/weed/pb/schema_pb"
)

func (a *PublishSession) PublishMessageRecord(key []byte, record *schema_pb.RecordValue) error {
	return a.stream.Send(&mq_agent_pb.PublishRecordRequest{
		SessionId: a.sessionId,
		Key:       key,
		Value:     record,
	})
}