idlookup

package
v0.0.0-...-9648343 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2021 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUserNotFound = errors.New("User not found")

Functions

func LoginToID

func LoginToID(ctx context.Context, login string) (string, error)

Types

type GQL

type GQL struct {
	Client *gql.Client
}

func (GQL) LoginToID

func (g GQL) LoginToID(ctx context.Context, login string) (string, error)

type Leppu

type Leppu struct{}

func (Leppu) LoginToID

func (Leppu) LoginToID(ctx context.Context, login string) (string, error)

type Lookup

type Lookup interface {
	LoginToID(ctx context.Context, login string) (string, error)
}
var Global Lookup = Leppu{}

Lookup is global instance

func FromConf

func FromConf(conf string) Lookup

Jump to

Keyboard shortcuts

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