factory

package
v0.0.0-...-757fb74 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authorizer

func Authorizer(path string) (auth authz.Authorizer, err error)

Authorizer creates a new authorizer with the input key `key`, or creates a new one under the preset folder if it doesn't yet exist and is not provided

func Bolt

func Bolt(path string) (keys.Repository, error)

Bolt creates a key repository based on the defined Bolt DB path

func From

func From(conf *config.Config) (http.Server, error)

From creates a HTTP server for the Secrets service based on the input config

func Logger

func Logger(path string) logx.Logger

Logger loads the file in the path `path`, to store the error log entries in, defaulting to a std.out output if the path is empty or invalid

func SQLite

SQLite creates user and secret repositories based on the defined SQLite DB path

func Service

func Service(authKeyPath, boltDBPath, sqliteDBPath string) (service.Service, error)

Service creates a new service based on the signing key path `authKeyPath`, Bolt DB path `boltDBPath`, and SQLite DB path `sqliteDBPath`

func Spanner

func Spanner(path string)

Spanner loads the file in the path `path`, to store the spanner entries in, defaulting to a std.err output if the path is empty or invalid

func WithLogAndTrace

func WithLogAndTrace(traceFilePath, logFilePath string, svc service.Service) service.Service

WithLogAndTrace configures a service to write on a specific trace file and log file

Types

This section is empty.

Jump to

Keyboard shortcuts

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