trace

package
v0.0.0-...-1897b02 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2018 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsumeMessageContext

type ConsumeMessageContext struct {
	ConsumerGroup  string
	Topic          string
	QueueId        int32
	ClientHost     string
	StoreHost      string
	MessageIds     map[string]int64
	BodyLength     int
	Success        bool
	Status         string
	MqTraceContext interface{}
}

type ConsumeMessageHook

type ConsumeMessageHook interface {
	HookName() string
	ConsumeMessageBefore(context *ConsumeMessageContext)
	ConsumeMessageAfter(context *ConsumeMessageContext)
}

ConsumeMessageHook 消费消息回调 Author rongzhihong Since 2017/9/5

type SendMessageContext

type SendMessageContext struct {
	ProducerGroup string
	Topic         string
	MsgId         string
	OriginMsgId   string
	QueueId       int32
	QueueOffset   int64
	BrokerAddr    string
	BornHost      string
	BodyLength    int
	Code          int
	ErrorMsg      string
	MsgProps      string
}

SendMessageContext 消息发送上下文 Author gaoyanlei Since 2017/8/15

func NewSendMessageContext

func NewSendMessageContext() *SendMessageContext

NewSendMessageContext 初始化 Author gaoyanlei Since 2017/8/15

type SendMessageHook

type SendMessageHook interface {
	HookName() string
	SendMessageBefore(context *SendMessageContext)
	SendMessageAfter(context *SendMessageContext)
}

SendMessageHook 发送消息回调 Author rongzhihong Since 2017/9/5

Jump to

Keyboard shortcuts

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