Documentation ¶
Index ¶
- func Authorizer(path string) (auth authz.Authorizer, err error)
- func Bolt(path string) (keys.Repository, error)
- func From(conf *config.Config) (http.Server, error)
- func Logger(path string) logx.Logger
- func SQLite(path string) (user.Repository, secret.Repository, shared.Repository, error)
- func Service(authKeyPath, boltDBPath, sqliteDBPath string) (service.Service, error)
- func Spanner(path string)
- func WithLogAndTrace(traceFilePath, logFilePath string, svc service.Service) service.Service
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 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 ¶
func SQLite(path string) (user.Repository, secret.Repository, shared.Repository, error)
SQLite creates user and secret repositories based on the defined SQLite DB path
func Service ¶
Service creates a new service based on the signing key path `authKeyPath`, Bolt DB path `boltDBPath`, and SQLite DB path `sqliteDBPath`
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.