bertydirectory

package
v2.469.6 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: Apache-2.0, MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Datastore added in v2.452.0

type Datastore interface {
	Get(identifier string) (*directorytypes.Record, error)
	Put(record *directorytypes.Record) error
	Del(identifier string) error
}

type DirectoryService

type DirectoryService struct {
	directorytypes.UnimplementedDirectoryServiceServer
	// contains filtered or unexported fields
}

func New

func New(ds Datastore, opts *ServiceOpts) (*DirectoryService, error)

func (*DirectoryService) Query

func (*DirectoryService) Register

func (*DirectoryService) Unregister

type SQLDatastore added in v2.452.0

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

func NewSQLDatastore added in v2.452.0

func NewSQLDatastore(db *gorm.DB) (*SQLDatastore, error)

func (*SQLDatastore) Del added in v2.452.0

func (ds *SQLDatastore) Del(identifier string) error

func (*SQLDatastore) Get added in v2.452.0

func (ds *SQLDatastore) Get(identifier string) (*directorytypes.Record, error)

func (*SQLDatastore) Put added in v2.452.0

func (ds *SQLDatastore) Put(record *directorytypes.Record) error

type ServiceOpts

type ServiceOpts struct {
	Logger            *zap.Logger
	DefaultExpiration time.Duration
	DefaultLockTime   time.Duration
	MaxExpiration     time.Duration
	MaxLockTime       time.Duration
	AllowedIssuers    []string
}

Jump to

Keyboard shortcuts

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