Documentation
¶
Index ¶
- Constants
- func NewScript(ctx context.Context, _ adapter.Core, logger log.Logger, tag string, args any) (adapter.PluginMatcher, error)
- type Args
- type Script
- func (s *Script) APIHandler() chi.Router
- func (s *Script) Close() error
- func (s *Script) LoadRunningArgs(_ context.Context, _ any) (uint16, error)
- func (s *Script) Match(ctx context.Context, dnsCtx *adapter.DNSContext, _ uint16) (bool, error)
- func (s *Script) Start() error
- func (s *Script) Tag() string
- func (s *Script) Type() string
Constants ¶
View Source
const DefaultInterval = 5 * time.Minute
View Source
const Type = "script"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Script ¶
type Script struct {
// contains filtered or unexported fields
}
func (*Script) APIHandler ¶
func (s *Script) APIHandler() chi.Router
func (*Script) LoadRunningArgs ¶
Click to show internal directories.
Click to hide internal directories.