lookup

package
v1.42.8 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2026 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LookupService

type LookupService struct {
	proto.UnimplementedLookupServiceServer
	// contains filtered or unexported fields
}

LookupService is the implementation of the Lookup service.

func NewLookupService

func NewLookupService(ctx context.Context) (*LookupService, error)

NewLookupService creates a new Lookup service.

func NewLookupServiceWithDB added in v1.26.0

func NewLookupServiceWithDB(db storage.Database) *LookupService

NewLookupServiceWithDB builds a LookupService from an already-connected db, so tests can exercise the real service with a stub database instead of a live one.

func (*LookupService) Close

func (s *LookupService) Close() error

Close releases the underlying database connection. Used by callers that embed LookupService into a larger composite (e.g. dataaccess) and don't go through Lookup.Shutdown.

func (*LookupService) DB added in v1.37.0

func (s *LookupService) DB() storage.Database

DB returns the service's database handle, so callers (e.g. dataaccess's metrics wiring) can register pool-stat gauges against it.

func (*LookupService) Health

Health checks the health of the Lookup service.

func (*LookupService) LookupRelationships added in v1.29.1

func (*LookupService) ReadRelationships added in v1.16.0

Jump to

Keyboard shortcuts

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