Back to godoc.org

Package authdb

v0.0.15
Latest Go to latest

The latest major version is .

Published: Jul 31, 2020 | License: BSD-3-Clause | Module: go.chromium.org/goma/server

Overview

Package authdb provides access to authentication database.

Index

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 {
	AuthDB AuthDB
}

Handler handles request to AuthDB.

func (Handler) CheckMembership

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

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier