Documentation
¶
Index ¶
- Constants
- type Callback
- type Dancer
- type Message
- func (msg *Message) Ack() bool
- func (msg *Message) Copy() *Message
- func (msg *Message) EnsureHeadersProvided(keys ...string) error
- func (msg *Message) GetAppendHeaders() string
- func (msg *Message) GetAppendHeadersList() []string
- func (msg *Message) GetAppendPayload() string
- func (msg *Message) GetAppendPayloadMapping() map[string]string
- func (msg *Message) GetContext() context.Context
- func (msg *Message) GetEvent() string
- func (msg *Message) GetHeader(key string) string
- func (msg *Message) GetHeaders() message.Metadata
- func (msg *Message) GetPayload() []byte
- func (msg *Message) GetPayloadPath(path string) json.RawMessage
- func (msg *Message) GetSagaId() string
- func (msg *Message) GetStepId() string
- func (msg *Message) Nack() bool
- func (msg *Message) Raw() *message.Message
- func (msg *Message) SetAppendHeaders(h string) *Message
- func (msg *Message) SetAppendPayload(c map[string]string) *Message
- func (msg *Message) SetAppendPayloadRaw(c string) *Message
- func (msg *Message) SetContext(ctx context.Context) *Message
- func (msg *Message) SetEvent(e string) *Message
- func (msg *Message) SetHeader(key, value string) *Message
- func (msg *Message) SetHeaders(headers map[string]string) *Message
- func (msg *Message) SetPayload(p []byte) *Message
- func (msg *Message) SetSagaId(id string) *Message
- func (msg *Message) SetStepId(id string) *Message
- type Saga
- type Step
Constants ¶
View Source
const ( HeaderContentType = "content-type" HeaderSagaId = "x-choreographer-saga-id" HeaderStepId = "x-choreographer-step-id" HeaderEvent = "x-choreographer-event" HeaderTimeSpent = "x-choreographer-time-spent" HeaderAppendPayload = "x-choreographer-append-payload" HeaderAppendHeaders = "x-choreographer-append-headers" HeaderAppendTracing = "x-choreographer-append-tracing" ContentTypeJson = "application/json" ContentTypeProtobuf = "application/protobuf" SagaStartedEvent = "ChoreographerSagaStarted" SagaSucceededEvent = "ChoreographerSagaSucceeded" SagaFailedEvent = "ChoreographerSagaFailed" SagaFinishedEvent = "ChoreographerSagaFinished" StepStartedEvent = "ChoreographerStepStarted" StepSucceededEvent = "ChoreographerStepSucceeded" StepFailedEvent = "ChoreographerStepFailed" StepRollbackEvent = "ChoreographerStepRollback" StepFinishedEvent = "ChoreographerStepFinished" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dancer ¶ added in v0.1.2
type Dancer struct {
// contains filtered or unexported fields
}
func New ¶ added in v0.1.2
func New(sub message.Subscriber) (d Dancer)
type Message ¶
type Message struct {
// contains filtered or unexported fields
}
func NewMessage ¶
func NewMessage() *Message
func NewMessageRaw ¶ added in v0.1.2
func (*Message) EnsureHeadersProvided ¶ added in v0.1.2
func (*Message) GetAppendHeaders ¶ added in v0.1.7
func (*Message) GetAppendHeadersList ¶ added in v0.1.7
func (*Message) GetAppendPayload ¶ added in v0.1.7
func (*Message) GetAppendPayloadMapping ¶ added in v0.1.7
GetAppendPayloadMapping returns calculated append payload field mapping in form map[from field]to field
func (*Message) GetContext ¶ added in v0.1.2
func (*Message) GetHeaders ¶ added in v0.1.2
func (*Message) GetPayload ¶
func (*Message) GetPayloadPath ¶ added in v0.1.2
func (msg *Message) GetPayloadPath(path string) json.RawMessage
func (*Message) SetAppendHeaders ¶ added in v0.1.7
func (*Message) SetAppendPayload ¶ added in v0.1.7
func (*Message) SetAppendPayloadRaw ¶ added in v0.1.7
func (*Message) SetContext ¶ added in v0.1.2
func (*Message) SetHeaders ¶ added in v0.1.7
func (*Message) SetPayload ¶
Click to show internal directories.
Click to hide internal directories.