protobuf

package
v0.0.0-...-9fd2f02 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthNsqd        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowNsqd          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupNsqd = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type NsqMessage

type NsqMessage struct {
	// 链路信息
	TraceId string `protobuf:"bytes,1,opt,name=traceId,proto3" json:"traceId,omitempty"`
	// 链路信息
	TraceSpanID string `protobuf:"bytes,2,opt,name=traceSpanID,proto3" json:"traceSpanID,omitempty"`
	// 相关的租户
	TenantID string `protobuf:"bytes,3,opt,name=tenantID,proto3" json:"tenantID,omitempty"`
	// 消息内容
	Body []byte `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"`
	// 签名验证
	Sign                 string   `protobuf:"bytes,5,opt,name=sign,proto3" json:"sign,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*NsqMessage) Descriptor

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

func (*NsqMessage) GetBody

func (m *NsqMessage) GetBody() []byte

func (*NsqMessage) GetSign

func (m *NsqMessage) GetSign() string

func (*NsqMessage) GetTenantID

func (m *NsqMessage) GetTenantID() string

func (*NsqMessage) GetTraceId

func (m *NsqMessage) GetTraceId() string

func (*NsqMessage) GetTraceSpanID

func (m *NsqMessage) GetTraceSpanID() string

func (*NsqMessage) Marshal

func (m *NsqMessage) Marshal() (dAtA []byte, err error)

func (*NsqMessage) MarshalTo

func (m *NsqMessage) MarshalTo(dAtA []byte) (int, error)

func (*NsqMessage) MarshalToSizedBuffer

func (m *NsqMessage) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*NsqMessage) ProtoMessage

func (*NsqMessage) ProtoMessage()

func (*NsqMessage) Reset

func (m *NsqMessage) Reset()

func (*NsqMessage) Size

func (m *NsqMessage) Size() (n int)

func (*NsqMessage) String

func (m *NsqMessage) String() string

func (*NsqMessage) Unmarshal

func (m *NsqMessage) Unmarshal(dAtA []byte) error

func (*NsqMessage) XXX_DiscardUnknown

func (m *NsqMessage) XXX_DiscardUnknown()

func (*NsqMessage) XXX_Marshal

func (m *NsqMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NsqMessage) XXX_Merge

func (m *NsqMessage) XXX_Merge(src proto.Message)

func (*NsqMessage) XXX_Size

func (m *NsqMessage) XXX_Size() int

func (*NsqMessage) XXX_Unmarshal

func (m *NsqMessage) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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