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

Method NewFromNextSegment

caddyconfig/caddyfile/dispenser.go:351–353  ·  view source on GitHub ↗

NewFromNextSegment returns a new dispenser with a copy of the tokens from the current token until the end of the "directive" whether that be to the end of the line or the end of a block that starts at the end of the line; in other words, until the end of the segment.

()

Source from the content-addressed store, hash-verified

349// the end of a block that starts at the end of the line;
350// in other words, until the end of the segment.
351func (d *Dispenser) NewFromNextSegment() *Dispenser {
352 return NewDispenser(d.NextSegment())
353}
354
355// NextSegment returns a copy of the tokens from the current
356// token until the end of the line or block that starts at

Callers 13

UnmarshalCaddyfileMethod · 0.80
UnmarshalCaddyfileMethod · 0.80
UnmarshalCaddyfileMethod · 0.80
UnmarshalCaddyfileMethod · 0.80
parseCaddyfileFunction · 0.80
parsePHPFastCGIFunction · 0.80
parseCaddyfileFunction · 0.80
UnmarshalModuleFunction · 0.80
parseTLSFunction · 0.80

Calls 2

NextSegmentMethod · 0.95
NewDispenserFunction · 0.85

Tested by

no test coverage detected