filter

package
v0.0.0-...-a385381 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Unlicense Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CleanLevel

type CleanLevel int
const (
	No CleanLevel = iota
	Low
	Middle
	High
)

type Filter

type Filter struct {
	// contains filtered or unexported fields
}

func Create

func Create(cleanLevel CleanLevel) Filter

func NewFilter

func NewFilter(options ...Option) Filter

func Select

func Select(pollutionLevel int) Filter

func (Filter) Absorber

func (f Filter) Absorber() string

func (Filter) CleanLevel

func (f Filter) CleanLevel() CleanLevel

func (Filter) WaterImprover

func (f Filter) WaterImprover() string

type Option

type Option func(opt *option)

func WithAbsorber

func WithAbsorber(absorber string) Option

func WithCleanLevel

func WithCleanLevel(cleanLevel CleanLevel) Option

func WithWaterImprover

func WithWaterImprover(waterImprover string) Option

Jump to

Keyboard shortcuts

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