MCPcopy Create free account
hub / github.com/DoNewsCode/core / WithDispatcher

Function WithDispatcher

config/config.go:61–65  ·  view source on GitHub ↗

WithDispatcher changes the default dispatcher of Koanf.

(dispatcher contract.Dispatcher)

Source from the content-addressed store, hash-verified

59
60// WithDispatcher changes the default dispatcher of Koanf.
61func WithDispatcher(dispatcher contract.Dispatcher) Option {
62 return func(option *KoanfAdapter) {
63 option.dispatcher = dispatcher
64 }
65}
66
67// WithValidators changes the validators of Koanf.
68func WithValidators(validators ...Validator) Option {

Callers 1

TestModule_WatchFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestModule_WatchFunction · 0.68