dataaccess

package
v1.54.1 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2026 License: MIT Imports: 23 Imported by: 0

Documentation

Overview

Package dataaccess wires the Lookup and Update gRPC services into a single process listening on one port.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewComponents added in v1.54.0

func NewComponents(ctx context.Context, cfg config.RuntimeConfig[Config], m *metrics.Metrics, tracer *trace.Tracer) (boot.Components, error)

NewComponents builds data-access's gRPC registration for pkg/boot.Boot. data-access has no HTTP surface: its metrics/probe endpoint is attached automatically by Boot from Config.MetricsAddr(), not registered here. lookup.NewLookupService/update.NewUpdateService never actually fail (storage.MustConnect panics rather than returning an error), so their error returns are ignored rather than handled with dead code.

Types

type Config

type Config struct {
	GRPCAddress string `mapstructure:"grpc_address"`

	// MetricsAddress defaults to ":9090" when unset (see MetricsAddr).
	MetricsAddress string `mapstructure:"metrics_address"`

	ServiceAuth serviceauth.Config `mapstructure:",squash"`

	UserAuth userauth.Config `mapstructure:"auth"`
}

func (Config) GRPCAddr

func (c Config) GRPCAddr() string

func (Config) MetricsAddr added in v1.36.0

func (c Config) MetricsAddr() string

func (Config) Validate

func (c Config) Validate() error

Directories

Path Synopsis
internal
dbmetrics
Package dbmetrics defines the data-access-wide repository-operation- duration instrument (used by store.go/resolver.go): a metric name plus a thin re-export of pkg/telemetry/db's generic OperationRecorder.
Package dbmetrics defines the data-access-wide repository-operation- duration instrument (used by store.go/resolver.go): a metric name plus a thin re-export of pkg/telemetry/db's generic OperationRecorder.
relationships/roles
Package roles parses the glaz role definitions vendored under vendored/ (synced by vendir), the single source of truth for role ids so they are not hardcoded here.
Package roles parses the glaz role definitions vendored under vendored/ (synced by vendir), the single source of truth for role ids so they are not hardcoded here.

Jump to

Keyboard shortcuts

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