utils

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const (
	LogName       = "log-name"
	TraceID       = "x-request-id"
	Authorization = "x-authorization"
	Token         = "x-token"
	UserAgent     = "User-Agent"

	Target = "x-target"
	Method = "x-method"
)

Variables

This section is empty.

Functions

func BuildRequestID

func BuildRequestID() string

func ParseToken added in v1.3.5

func ParseToken(ctx context.Context, v interface{}) error

Types

type Config

type Config struct {
	Builder   func() string
	RequestId string
}

type Option

type Option func(*Config)

func WithBuilder

func WithBuilder(b func() string) Option

func WithRequestId

func WithRequestId(requestId string) Option

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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