tracer

package
v1.122.8 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: Unlicense Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for tracer.

func NewClient

func NewClient(tracer Tracer, client gr.Client) *Client

NewClient for tracer.

func (*Client) Close

func (c *Client) Close() error

func (*Client) Del

func (c *Client) Del(ctx context.Context, keys ...string) *redis.IntCmd

func (*Client) Get

func (c *Client) Get(ctx context.Context, key string) *redis.StringCmd

func (*Client) Incr

func (c *Client) Incr(ctx context.Context, key string) *redis.IntCmd

func (*Client) Ping

func (c *Client) Ping(ctx context.Context) *redis.StatusCmd

func (*Client) Set

func (c *Client) Set(ctx context.Context, key string, value any, ttl time.Duration) *redis.StatusCmd

func (*Client) SetNX

func (c *Client) SetNX(ctx context.Context, key string, value any, ttl time.Duration) *redis.BoolCmd

func (*Client) SetXX

func (c *Client) SetXX(ctx context.Context, key string, value any, ttl time.Duration) *redis.BoolCmd

type Params

type Params struct {
	fx.In

	Lifecycle   fx.Lifecycle
	Config      *tracer.Config
	Environment env.Environment
	Version     version.Version
}

Params for tracer.

type Tracer

type Tracer trace.Tracer

Tracer for tracer.

func NewTracer

func NewTracer(params Params) (Tracer, error)

NewTracer for tracer.

Jump to

Keyboard shortcuts

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