context

package
v0.0.0-...-3201739 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2019 License: Apache-2.0 Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearSagaAgentContext

func ClearSagaAgentContext()

func ExtractFromHttpHeaders

func ExtractFromHttpHeaders(headers http.Header)

func InjectIntoHttpHeaders

func InjectIntoHttpHeaders(headers http.Header)

func SetSagaAgentContext

func SetSagaAgentContext(c *SagaAgentContext)

Types

type IdGenerator

type IdGenerator struct {
}

func (*IdGenerator) NextId

func (g *IdGenerator) NextId() string

type SagaAgentContext

type SagaAgentContext struct {
	GlobalTxId string
	LocalTxId  string
}

func GetSagaAgentContext

func GetSagaAgentContext() (*SagaAgentContext, error)

func MustGetSagaAgentContext

func MustGetSagaAgentContext() *SagaAgentContext

func NewSagaAgentContext

func NewSagaAgentContext() *SagaAgentContext

func (*SagaAgentContext) Initialize

func (c *SagaAgentContext) Initialize()

func (*SagaAgentContext) NewLocalTxId

func (c *SagaAgentContext) NewLocalTxId()

Jump to

Keyboard shortcuts

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