record

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Operation_name = map[int32]string{
		0: "BatchPush",
		1: "MarkRead",
		2: "StoreMsg",
		3: "SyncMsg",
	}
	Operation_value = map[string]int32{
		"BatchPush": 0,
		"MarkRead":  1,
		"StoreMsg":  2,
		"SyncMsg":   3,
	}
)

Enum value maps for Operation.

View Source
var File_record_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Marked

type Marked struct {
	Type string  `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Mids []int64 `protobuf:"varint,2,rep,packed,name=mids,proto3" json:"mids,omitempty"`
	// contains filtered or unexported fields
}

Operation=MarkRead

func (*Marked) Descriptor deprecated

func (*Marked) Descriptor() ([]byte, []int)

Deprecated: Use Marked.ProtoReflect.Descriptor instead.

func (*Marked) GetMids

func (x *Marked) GetMids() []int64

func (*Marked) GetType

func (x *Marked) GetType() string

func (*Marked) ProtoMessage

func (*Marked) ProtoMessage()

func (*Marked) ProtoReflect

func (x *Marked) ProtoReflect() protoreflect.Message

func (*Marked) Reset

func (x *Marked) Reset()

func (*Marked) String

func (x *Marked) String() string

type Operation

type Operation int32
const (
	Operation_BatchPush Operation = 0
	Operation_MarkRead  Operation = 1
	Operation_StoreMsg  Operation = 2
	Operation_SyncMsg   Operation = 3
)

func (Operation) Descriptor

func (Operation) Descriptor() protoreflect.EnumDescriptor

func (Operation) Enum

func (x Operation) Enum() *Operation

func (Operation) EnumDescriptor deprecated

func (Operation) EnumDescriptor() ([]byte, []int)

Deprecated: Use Operation.Descriptor instead.

func (Operation) Number

func (x Operation) Number() protoreflect.EnumNumber

func (Operation) String

func (x Operation) String() string

func (Operation) Type

type PushMsg

type PushMsg struct {
	AppId     string `protobuf:"bytes,1,opt,name=appId,proto3" json:"appId,omitempty"`
	FromId    string `protobuf:"bytes,2,opt,name=fromId,proto3" json:"fromId,omitempty"`
	Mid       int64  `protobuf:"varint,3,opt,name=mid,proto3" json:"mid,omitempty"`
	Key       string `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"`
	Target    string `protobuf:"bytes,5,opt,name=target,proto3" json:"target,omitempty"` //推送目标 用户id 或者 群id
	Msg       []byte `protobuf:"bytes,6,opt,name=msg,proto3" json:"msg,omitempty"`
	Type      int32  `protobuf:"varint,7,opt,name=type,proto3" json:"type,omitempty"`
	FrameType string `protobuf:"bytes,8,opt,name=frameType,proto3" json:"frameType,omitempty"`
	// contains filtered or unexported fields
}

record --> mq

func (*PushMsg) Descriptor deprecated

func (*PushMsg) Descriptor() ([]byte, []int)

Deprecated: Use PushMsg.ProtoReflect.Descriptor instead.

func (*PushMsg) GetAppId

func (x *PushMsg) GetAppId() string

func (*PushMsg) GetFrameType

func (x *PushMsg) GetFrameType() string

func (*PushMsg) GetFromId

func (x *PushMsg) GetFromId() string

func (*PushMsg) GetKey

func (x *PushMsg) GetKey() string

func (*PushMsg) GetMid

func (x *PushMsg) GetMid() int64

func (*PushMsg) GetMsg

func (x *PushMsg) GetMsg() []byte

func (*PushMsg) GetTarget

func (x *PushMsg) GetTarget() string

func (*PushMsg) GetType

func (x *PushMsg) GetType() int32

func (*PushMsg) ProtoMessage

func (*PushMsg) ProtoMessage()

func (*PushMsg) ProtoReflect

func (x *PushMsg) ProtoReflect() protoreflect.Message

func (*PushMsg) Reset

func (x *PushMsg) Reset()

func (*PushMsg) String

func (x *PushMsg) String() string

type RecordDeal

type RecordDeal struct {
	AppId  string    `protobuf:"bytes,1,opt,name=appId,proto3" json:"appId,omitempty"`
	FromId string    `protobuf:"bytes,2,opt,name=fromId,proto3" json:"fromId,omitempty"`
	Key    string    `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`
	Opt    Operation `protobuf:"varint,4,opt,name=opt,proto3,enum=dtalk.record.Operation" json:"opt,omitempty"`
	Msg    []byte    `protobuf:"bytes,5,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

record --> mq

func (*RecordDeal) Descriptor deprecated

func (*RecordDeal) Descriptor() ([]byte, []int)

Deprecated: Use RecordDeal.ProtoReflect.Descriptor instead.

func (*RecordDeal) GetAppId

func (x *RecordDeal) GetAppId() string

func (*RecordDeal) GetFromId

func (x *RecordDeal) GetFromId() string

func (*RecordDeal) GetKey

func (x *RecordDeal) GetKey() string

func (*RecordDeal) GetMsg

func (x *RecordDeal) GetMsg() []byte

func (*RecordDeal) GetOpt

func (x *RecordDeal) GetOpt() Operation

func (*RecordDeal) ProtoMessage

func (*RecordDeal) ProtoMessage()

func (*RecordDeal) ProtoReflect

func (x *RecordDeal) ProtoReflect() protoreflect.Message

func (*RecordDeal) Reset

func (x *RecordDeal) Reset()

func (*RecordDeal) String

func (x *RecordDeal) String() string

type Sync

type Sync struct {
	Mid int64 `protobuf:"varint,1,opt,name=mid,proto3" json:"mid,omitempty"`
	// contains filtered or unexported fields
}

Operation=SyncMsg

func (*Sync) Descriptor deprecated

func (*Sync) Descriptor() ([]byte, []int)

Deprecated: Use Sync.ProtoReflect.Descriptor instead.

func (*Sync) GetMid

func (x *Sync) GetMid() int64

func (*Sync) ProtoMessage

func (*Sync) ProtoMessage()

func (*Sync) ProtoReflect

func (x *Sync) ProtoReflect() protoreflect.Message

func (*Sync) Reset

func (x *Sync) Reset()

func (*Sync) String

func (x *Sync) String() string

Jump to

Keyboard shortcuts

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