generators

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultGenerators

func DefaultGenerators(logger *slog.Logger, structAttrProvider structAttrProvider) []func(*gin.Context) (string, any)

func HeadersGenerator

func HeadersGenerator(gc *gin.Context) (string, any)

func RequestIdGenerator

func RequestIdGenerator(gc *gin.Context) (string, any)

Types

type CallerGenerator

type CallerGenerator struct {
	// contains filtered or unexported fields
}

func NewCallerGenerator

func NewCallerGenerator(errorLogger *slog.Logger, structAttrProvider structAttrProvider) *CallerGenerator

func (*CallerGenerator) Generate

func (c *CallerGenerator) Generate(gc *gin.Context) (string, any)

type UserInfoGenerator

type UserInfoGenerator struct {
	// contains filtered or unexported fields
}

func NewUserInfoGenerator

func NewUserInfoGenerator(errorLogger *slog.Logger, structAttrProvider structAttrProvider) *UserInfoGenerator

func (*UserInfoGenerator) Generate

func (c *UserInfoGenerator) Generate(gc *gin.Context) (string, any)

Jump to

Keyboard shortcuts

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