Documentation ¶
Index ¶
- Constants
- func AppName(ctx context.Context) string
- func Database(ctx context.Context) database.Context
- func Domain(ctx context.Context) string
- func Level(ctx context.Context) log.Level
- func Logger(ctx context.Context) logger.Logger
- func OptionArgs(args *Options, defaultAppName string)
- func SecretOrPassword(secret string) string
- func SecureID(ctx context.Context) security.SecureID
- func WebAppURL(ctx context.Context) string
- func WithAppName(ctx context.Context, name string) context.Context
- func WithDatabase(ctx context.Context, db database.Context) context.Context
- func WithDomain(ctx context.Context, name string) context.Context
- func WithHasherWorker(ctx context.Context, options HasherOptions) context.Context
- func WithLogLevel(ctx context.Context, level string) context.Context
- func WithLogger(ctx context.Context, database logger.Logger) context.Context
- func WithOptions(ctx context.Context, options Options) context.Context
- func WithProcessusGrabber(ctx context.Context, grabber Worker) context.Context
- func WithSecureID(ctx context.Context, secureID security.SecureID) context.Context
- func WithWebAppURL(ctx context.Context, url string) context.Context
- func WithWriter(ctx context.Context, writer io.Writer) context.Context
- type HasherOptions
- type Options
- type Worker
Constants ¶
View Source
const ( AppNameKey = iota DomainKey WebAppURLKey LoggerKey ProcessusGrabberKey SecureIDKey WriterKey LogLevelKey DatabaseKey )
Variables ¶
This section is empty.
Functions ¶
func OptionArgs ¶
func SecretOrPassword ¶
func WithAppName ¶
WithAppName returns a context with the Application name set
func WithDatabase ¶
WithDatabase returns a context with the database set
func WithDomain ¶ added in v0.0.2
WithDomain returns a context with the Domain name set
func WithHasherWorker ¶
func WithHasherWorker(ctx context.Context, options HasherOptions) context.Context
WithHasherWorker returns a context with the password worker set
func WithLogLevel ¶
WithLogLevel returns a context with the LogLevel set
func WithLogger ¶
WithLogger returns a context with the log Writer set
func WithProcessusGrabber ¶ added in v0.0.2
func WithSecureID ¶ added in v0.0.2
func WithWebAppURL ¶ added in v0.0.2
WithWebAppUrl returns a context with the WebApplication url set
Types ¶
Click to show internal directories.
Click to hide internal directories.