utils

package
v0.6.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package utils contains various helpers and utility functions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoggerMustFromContext added in v0.6.0

func LoggerMustFromContext(ctx context.Context) *zap.Logger

func StreamServerMetadata added in v0.6.0

func StreamServerMetadata(logger *zap.Logger) grpc.StreamServerInterceptor

func UnaryServerMetadata added in v0.6.0

func UnaryServerMetadata(logger *zap.Logger) grpc.UnaryServerInterceptor

Types

type Counter

type Counter[T number] struct {
	// contains filtered or unexported fields
}

func NewCounter

func NewCounter[T number]() *Counter[T]

func (*Counter[T]) Add

func (c *Counter[T]) Add(delta T)

func (*Counter[T]) MakeChild

func (c *Counter[T]) MakeChild() *Counter[T]

func (*Counter[T]) Value

func (c *Counter[T]) Value() T

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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