corel

package
v1.2.7-3465f46a9744d6 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttachCorelToHttp added in v1.0.16

func AttachCorelToHttp(corelid *CoRelationId, req *http.Request)

func AttachCorelToHttpFromCtx added in v1.0.16

func AttachCorelToHttpFromCtx(ctx context.Context, req *http.Request)

func NewCorelCtx added in v1.2.2

func NewCorelCtx(sessionId string) context.Context

This is used when the default context is used to define a new corel

func NewCorelCtxFromCtx added in v1.2.2

func NewCorelCtxFromCtx(ctx context.Context, sessionId string) context.Context

This is used to define a new corel on the context

func NewCorelCtxFromRequest added in v1.2.8

func NewCorelCtxFromRequest(ctx context.Context, sessionId, requestId string) context.Context

Any task consumer will call this method only

Types

type CoRelationId

type CoRelationId struct {
	RequestID string `json:"requestID" header:"request_id"`
	SessionID string `json:"sessionID" header:"session_id"`
	Auth      string `header:"Authorization"`
	JWT       *jwtinfo

	AppRequestId,
	RequestSource string
	// contains filtered or unexported fields
}

CoRelationId correlationData

func GetCorelationId

func GetCorelationId(ctx context.Context) (corelid *CoRelationId, err error)

GetCorelationId ...

func NewCoRelationId added in v1.2.2

func NewCoRelationId(sessionId string) *CoRelationId

todo: do we need this

func (*CoRelationId) Logrus added in v1.2.8

func (corelid *CoRelationId) Logrus(f logrus.Fields)

func (*CoRelationId) RequestId added in v1.2.8

func (corelid *CoRelationId) RequestId() string

func (*CoRelationId) SessionId added in v1.2.8

func (corelid *CoRelationId) SessionId() string

Jump to

Keyboard shortcuts

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