You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
365 B

3 weeks ago
  1. package agent_client
  2. import (
  3. "github.com/seaweedfs/seaweedfs/weed/pb/mq_agent_pb"
  4. "github.com/seaweedfs/seaweedfs/weed/pb/schema_pb"
  5. )
  6. func (a *PublishSession) PublishMessageRecord(key []byte, record *schema_pb.RecordValue) error {
  7. return a.stream.Send(&mq_agent_pb.PublishRecordRequest{
  8. SessionId: a.sessionId,
  9. Key: key,
  10. Value: record,
  11. })
  12. }