option

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2020 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	FetchRelated  bool
	StoreRelated  bool
	DeleteRelated bool
	Params        map[string]interface{}
}

func NewConfig

func NewConfig(base Config, opts []Option) Config

func (Config) Param

func (c Config) Param(n string) (interface{}, bool)

type Option

type Option func(Config) Config

func Cascade

func Cascade(on bool) Option

func DeleteRelated

func DeleteRelated(on bool) Option

func FetchRelated

func FetchRelated(on bool) Option

func Params

func Params(p map[string]interface{}) Option

func StoreRelated

func StoreRelated(on bool) Option

func UseConfig

func UseConfig(c Config) Option

Jump to

Keyboard shortcuts

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