service

package
v0.0.0-...-b911265 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseStorageError

func ParseStorageError(err error, v interface{}, noun string) error

ParseStorageError parses common storage errors into a user-readable format.

Types

type Service

type Service struct {
	Logger      logger.Logger
	ConnFactory *secureconn.Factory
	Storage     storage.Storage
	Secrets     secrets.SecretsServiceClient
}

Service holds the internal state and configuration of the Infra proxy service.

func Start

func Start(l logger.Logger, migrationsConfig migration.Config, connFactory *secureconn.Factory, secretsClient secrets.SecretsServiceClient,
	authzClient authz.AuthorizationServiceClient) (*Service, error)

Start returns an instance of Service that connects to a postgres storage backend.

Jump to

Keyboard shortcuts

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