MCPcopy
hub / github.com/caddyserver/caddy / Token

Method Token

caddyconfig/caddyfile/dispenser.go:390–395  ·  view source on GitHub ↗

Token returns the current token.

()

Source from the content-addressed store, hash-verified

388
389// Token returns the current token.
390func (d *Dispenser) Token() Token {
391 if d.cursor < 0 || d.cursor >= len(d.tokens) {
392 return Token{}
393 }
394 return d.tokens[d.cursor]
395}
396
397// Reset sets d's cursor to the beginning, as
398// if this was a new and unused dispenser.

Callers 12

doImportMethod · 0.95
RemainingArgsAsTokensMethod · 0.95
NextSegmentMethod · 0.95
SyntaxErrMethod · 0.95
WrapErrMethod · 0.95
beginMethod · 0.80
addressesMethod · 0.80
directiveMethod · 0.80
blockTokensMethod · 0.80
parseMatcherDefinitionsFunction · 0.80
MatcherTokenMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected