interceptor

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddLogHint

func AddLogHint(ctx context.Context, key string, value any)

func New

func New() []connect.Interceptor

func NewAccessLogInterceptor

func NewAccessLogInterceptor() connect.UnaryInterceptorFunc

func NewFixPreconditionParamsInterceptor

func NewFixPreconditionParamsInterceptor() connect.UnaryInterceptorFunc

func NewTraceInterceptor

func NewTraceInterceptor() connect.UnaryInterceptorFunc

Types

type PreconditionParams

type PreconditionParams struct {
	RequestID      uuid.UUID
	IdempotencyKey uuid.UUID
	// リクエストを受け取った現実世界での時刻
	RequestedTime time.Time
	// サーバが現在時刻として認識する時刻 (現実世界と乖離しうる)
	Now time.Time
}

func (PreconditionParams) TransactionContext

Jump to

Keyboard shortcuts

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