options

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ROption

type ROption func(*ReaderOptions) error

func WithREnvironment

func WithREnvironment(e env.REnvironment) ROption

func WithRLogger

func WithRLogger(l *zap.Logger) ROption

type ReaderOptions

type ReaderOptions struct {
	Logger *zap.Logger
	Env    env.REnvironment
}

func (*ReaderOptions) SetDefault

func (o *ReaderOptions) SetDefault()

type WOption

type WOption func(*WriterOptions) error

func WithWEnvironment

func WithWEnvironment(e env.WEnvironment) WOption

func WithWLogger

func WithWLogger(l *zap.Logger) WOption

type WriterOptions

type WriterOptions struct {
	Logger *zap.Logger
	Env    env.WEnvironment
}

func (*WriterOptions) SetDefault

func (o *WriterOptions) SetDefault()

Jump to

Keyboard shortcuts

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