corel

package
v1.1.3-2x10 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2021 License: MIT Imports: 15 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 GetCtxWithCorelID added in v1.0.8

func GetCtxWithCorelID(ctx context.Context, corelid *CoRelationId) context.Context

GetCtxWithCorelID ... Will be of no use once the consumer stops copying the context.

func GinSetCoRelID added in v1.0.10

func GinSetCoRelID(c *gin.Context, corelid *CoRelationId)

GinSetCoRelID ...

Types

type CoRelationId

type CoRelationId struct {
	RequestID string `json:"requestID" header:"request_id"`
	SessionID string `json:"sessionID" header:"session_id"`
	Hop       int    `json:"hop" header:"hop"`
	Auth      string `header:"Authorization"`
	IsHTTP    bool

	OriginHost string
	OriginApp  string
	JWT        string
	User       *dotJWTinfo
	// contains filtered or unexported fields
}

CoRelationId correlationData

func GetCorelationId

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

GetCorelationId ...

func (*CoRelationId) BasicOnceMust added in v1.2.2

func (corelid *CoRelationId) BasicOnceMust()

func (*CoRelationId) OnceMust added in v1.0.16

func (corelid *CoRelationId) OnceMust(c *gin.Context, app string)

Jump to

Keyboard shortcuts

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