MCPcopy Create free account
hub / github.com/olivere/elastic / Type

Method Type

script.go:56–59  ·  view source on GitHub ↗

Type sets the type of script: "inline" or "id".

(typ string)

Source from the content-addressed store, hash-verified

54
55// Type sets the type of script: "inline" or "id".
56func (s *Script) Type(typ string) *Script {
57 s.typ = typ
58 return s
59}
60
61// Lang sets the language of the script. The default scripting language
62// is Painless ("painless").

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected