user

package
v0.0.0-...-eec2a5c Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

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

Provider provides telegramId to userId mapping.

func New

func New(grpc *backend.GrpcClient) (Provider, error)

New constructs Provider instance.

func (*Provider) GetUserId

func (provider *Provider) GetUserId(telegramId int) (string, error)

GetUserId returns userId by telegramId.

Jump to

Keyboard shortcuts

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