grpc

package
v0.0.0-...-ce4d510 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InterceptorsLogger

func InterceptorsLogger(l *slog.Logger) logging.Logger

InterceptorsLogger wraps slog.Logger to grpc logging.Logger

Types

type Client

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

func New

func New(
	ctx context.Context,
	log *slog.Logger,
	address string,
	retriesNumber int,
	timeout time.Duration,
) (*Client, error)

func (*Client) IsAdmin

func (c *Client) IsAdmin(ctx context.Context, userID int64) (bool, error)

Jump to

Keyboard shortcuts

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