auth

package
v2.0.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: May 11, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AuthMgr = &AuthManager{
	keyMgr: inauth.NewAccessKeyManager(),
}

Functions

func Setup

func Setup() error

Types

type AuthManager

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

AuthManager manages access keys and provides gRPC authentication

func (*AuthManager) DeleteAccessKey

func (am *AuthManager) DeleteAccessKey(keyId string) error

DeleteAccessKey deletes an access key from the database

func (*AuthManager) GrpcAuthInterceptor

func (am *AuthManager) GrpcAuthInterceptor() grpc.UnaryServerInterceptor

GrpcAuthInterceptor returns a gRPC unary interceptor for authentication

func (*AuthManager) GrpcStreamAuthInterceptor

func (am *AuthManager) GrpcStreamAuthInterceptor() grpc.StreamServerInterceptor

GrpcStreamAuthInterceptor returns a gRPC stream interceptor for authentication

func (*AuthManager) KeyMgr

func (it *AuthManager) KeyMgr() *inauth.AccessKeyManager

func (*AuthManager) RefreshAccessKeysFromDB

func (am *AuthManager) RefreshAccessKeysFromDB() error

RefreshAccessKeysFromDB loads access keys from the database

func (*AuthManager) SaveAccessKey

func (am *AuthManager) SaveAccessKey(key *inauth.AccessKey) error

SaveAccessKey saves an access key to the database

Jump to

Keyboard shortcuts

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