MCPcopy
hub / github.com/google/mtail / SetOption

Method SetOption

internal/runtime/runtime.go:341–348  ·  view source on GitHub ↗

SetOption takes one or more option functions and applies them in order to Runtime.

(options ...Option)

Source from the content-addressed store, hash-verified

339
340// SetOption takes one or more option functions and applies them in order to Runtime.
341func (r *Runtime) SetOption(options ...Option) error {
342 for _, option := range options {
343 if err := option(r); err != nil {
344 return err
345 }
346 }
347 return nil
348}
349
350// UnloadProgram removes the named program, any currently running VM goroutine.
351func (r *Runtime) UnloadProgram(pathname string) {

Callers 1

NewFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected