grpc

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InterceptorLogger

func InterceptorLogger(log *slog.Logger) grpclog.Logger

Types

type Client

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

func New

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

func (*Client) DelAdmin

func (c *Client) DelAdmin(ctx context.Context, email string, appID int) (bool, error)

func (*Client) IsAdmin

func (c *Client) IsAdmin(ctx context.Context, userID uint64, appID int) (bool, error)

func (*Client) SetAdmin

func (c *Client) SetAdmin(ctx context.Context, email string, appID int) (bool, error)

Jump to

Keyboard shortcuts

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