message

package
v0.0.0-...-4e26a97 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const SUCCESS = "0"

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	// contains filtered or unexported fields
}

func NewEvent

func NewEvent(t, name, status, data string, timestampInMillis int64) *Event

func (*Event) GetData

func (m *Event) GetData() string

func (*Event) GetName

func (m *Event) GetName() string

func (*Event) GetStatus

func (m *Event) GetStatus() string

func (*Event) GetTimestamp

func (m *Event) GetTimestamp() int64

func (*Event) GetType

func (m *Event) GetType() string

func (*Event) IsSuccess

func (m *Event) IsSuccess() bool

type Heartbeat

type Heartbeat struct {
	// contains filtered or unexported fields
}

func NewHeartbeat

func NewHeartbeat(t, name, status, data string, timestampInMillis int64) *Heartbeat

func (*Heartbeat) GetData

func (m *Heartbeat) GetData() string

func (*Heartbeat) GetName

func (m *Heartbeat) GetName() string

func (*Heartbeat) GetStatus

func (m *Heartbeat) GetStatus() string

func (*Heartbeat) GetTimestamp

func (m *Heartbeat) GetTimestamp() int64

func (*Heartbeat) GetType

func (m *Heartbeat) GetType() string

func (*Heartbeat) IsSuccess

func (m *Heartbeat) IsSuccess() bool

type Message

type Message interface {
	GetType() string
	GetName() string
	GetStatus() string
	GetData() string
	GetTimestamp() int64
	IsSuccess() bool
}

type MessageTree

type MessageTree struct {
	// contains filtered or unexported fields
}

func NewMessageTree

func NewMessageTree() *MessageTree

func (*MessageTree) CanDiscard

func (tree *MessageTree) CanDiscard() bool

func (*MessageTree) GetDomain

func (tree *MessageTree) GetDomain() []byte

func (*MessageTree) GetMessage

func (tree *MessageTree) GetMessage() Message

func (*MessageTree) GetMessageId

func (tree *MessageTree) GetMessageId() []byte

func (*MessageTree) GetParentMessageId

func (tree *MessageTree) GetParentMessageId() []byte

func (*MessageTree) GetRootMessageId

func (tree *MessageTree) GetRootMessageId() []byte

func (*MessageTree) GetThreadGroupName

func (tree *MessageTree) GetThreadGroupName() []byte

func (*MessageTree) GetThreadId

func (tree *MessageTree) GetThreadId() []byte

func (*MessageTree) GetThreadName

func (tree *MessageTree) GetThreadName() []byte

func (*MessageTree) SetDiscard

func (tree *MessageTree) SetDiscard(discard bool)

func (*MessageTree) SetDomain

func (tree *MessageTree) SetDomain(domain []byte)

func (*MessageTree) SetMessage

func (tree *MessageTree) SetMessage(message Message)

func (*MessageTree) SetMessageId

func (tree *MessageTree) SetMessageId(messageId []byte)

func (*MessageTree) SetParentMessageId

func (tree *MessageTree) SetParentMessageId(parentMessageId []byte)

func (*MessageTree) SetRootMessageId

func (tree *MessageTree) SetRootMessageId(rootMessageId []byte)

func (*MessageTree) SetThreadGroupName

func (tree *MessageTree) SetThreadGroupName(threadGroupName []byte)

func (*MessageTree) SetThreadId

func (tree *MessageTree) SetThreadId(threadId []byte)

func (*MessageTree) SetThreadName

func (tree *MessageTree) SetThreadName(threadName []byte)

type Transaction

type Transaction struct {
	// contains filtered or unexported fields
}

func NewTransaction

func NewTransaction(t, name, status, data string, timestampInMillis int64, children []Message, durationInMicros int64) *Transaction

func (*Transaction) AddChild

func (trans *Transaction) AddChild(child Message)

func (*Transaction) GetChildren

func (trans *Transaction) GetChildren() []Message

func (*Transaction) GetData

func (m *Transaction) GetData() string

func (*Transaction) GetDurationInMicros

func (trans *Transaction) GetDurationInMicros() int64

func (*Transaction) GetName

func (m *Transaction) GetName() string

func (*Transaction) GetStatus

func (m *Transaction) GetStatus() string

func (*Transaction) GetTimestamp

func (m *Transaction) GetTimestamp() int64

func (*Transaction) GetType

func (m *Transaction) GetType() string

func (*Transaction) IsSuccess

func (m *Transaction) IsSuccess() bool

func (*Transaction) SetDurationInMicros

func (trans *Transaction) SetDurationInMicros(durationInMicros int64)

Jump to

Keyboard shortcuts

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