dataaccess

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2026 License: MIT Imports: 17 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

This section is empty.

Types

type Config

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

	Auth tokenauth.Config `mapstructure:"auth"`
}

func (Config) GRPCAddr

func (c Config) GRPCAddr() string

func (Config) Validate

func (c Config) Validate() error

type DataAccess

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

func NewDataAccessAPI

func NewDataAccessAPI(ctx context.Context, cfg config.RuntimeConfig[Config]) (*DataAccess, error)

func (*DataAccess) Address

func (d *DataAccess) Address() string

func (*DataAccess) Logger

func (d *DataAccess) Logger() *logrus.Entry

func (*DataAccess) Name

func (d *DataAccess) Name() string

func (*DataAccess) Serve

func (d *DataAccess) Serve() error

func (*DataAccess) Shutdown

func (d *DataAccess) Shutdown(ctx context.Context) error

Jump to

Keyboard shortcuts

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