authdb

package
Version: v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Overview

Package authdb provides access to authentication database.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthDB

type AuthDB interface {
	IsMember(ctx context.Context, email, group string) bool
}

AuthDB is authentication database.

type Client

type Client struct {
	*httprpc.Client
}

Client is authdb client.

func (Client) IsMember

func (c Client) IsMember(ctx context.Context, email, group string) bool

IsMember checks email is in group.

type Handler

type Handler struct {
	pb.UnimplementedAuthDBServiceServer
	AuthDB AuthDB
}

Handler handles request to AuthDB.

func (Handler) CheckMembership

func (h Handler) CheckMembership(ctx context.Context, req *pb.CheckMembershipReq) (*pb.CheckMembershipResp, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL