Documentation
¶
Index ¶
- type Config
- type Lookup
- type LookupService
- func (s *LookupService) Close() error
- func (s *LookupService) Health(ctx context.Context, in *proto.HealthRequest) (*proto.HealthResponse, error)
- func (s *LookupService) LookupRelationships(ctx context.Context, req *proto.LookupRelationshipsRequest) (*proto.LookupRelationshipsResponse, error)
- func (s *LookupService) ReadRelationships(ctx context.Context, req *proto.ReadRelationshipsRequest) (*proto.ReadRelationshipsResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lookup ¶
type Lookup struct {
*LookupService
// contains filtered or unexported fields
}
func NewLookupAPI ¶
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) Health ¶
func (s *LookupService) Health(ctx context.Context, in *proto.HealthRequest) (*proto.HealthResponse, error)
Health checks the health of the Lookup service.
func (*LookupService) LookupRelationships ¶ added in v1.29.1
func (s *LookupService) LookupRelationships(ctx context.Context, req *proto.LookupRelationshipsRequest) (*proto.LookupRelationshipsResponse, error)
func (*LookupService) ReadRelationships ¶ added in v1.16.0
func (s *LookupService) ReadRelationships(ctx context.Context, req *proto.ReadRelationshipsRequest) (*proto.ReadRelationshipsResponse, error)
Click to show internal directories.
Click to hide internal directories.