server: go.chromium.org/goma/server/auth/authdb Index | Files

package authdb

import "go.chromium.org/goma/server/auth/authdb"

Package authdb provides access to authentication database.

Index

Package Files

client.go doc.go handler.go

type AuthDB Uses

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

AuthDB is authentication database.

type Client Uses

type Client struct {
    *httprpc.Client
}

Client is authdb client.

func (Client) IsMember Uses

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

IsMember checks email is in group.

type Handler Uses

type Handler struct {
    AuthDB AuthDB
}

Handler handles request to AuthDB.

func (Handler) CheckMembership Uses

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

Package authdb imports 5 packages (graph) and is imported by 1 packages. Updated 2019-07-13. Refresh now. Tools for package owners.