Documentation ¶
Index ¶
- Constants
- func AppName(ctx context.Context) string
- func Cache(ctx context.Context) bank.Cache
- func Database(ctx context.Context) bank.Database
- func Domain(ctx context.Context) string
- func HasherWorker(ctx context.Context) bank.Worker
- func Level(ctx context.Context) log.Level
- func Logger(ctx context.Context) bank.Logger
- func Messaging(ctx context.Context) bank.Messaging
- func OptionArgs(args *Options, defaultAppName string)
- func SecretOrPassword(secret string) string
- func SecureID(ctx context.Context) bank.SecureID
- func WebAppURL(ctx context.Context) string
- func WithAppName(ctx context.Context, name string) context.Context
- func WithCache(ctx context.Context, cache bank.Cache) context.Context
- func WithDatabase(ctx context.Context, db bank.Database) 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 bank.Logger) context.Context
- func WithMessaging(ctx context.Context, messaging bank.Messaging) context.Context
- func WithOptions(ctx context.Context, options Options) context.Context
- func WithProcessusGrabber(ctx context.Context, grabber bank.Worker) context.Context
- func WithSecureID(ctx context.Context, secureID bank.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
Constants ¶
View Source
const ( AppNameKey = iota DomainKey WebAppURLKey LoggerKey ProcessusGrabberKey SecureIDKey WriterKey LogLevelKey CacheKey MessagingKey DatabaseKey )
Variables ¶
This section is empty.
Functions ¶
func HasherWorker ¶
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 WithMessaging ¶
WithMessaging returns a context with the messaging 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.