Documentation ¶
Index ¶
Constants ¶
View Source
const ( YearPattern string = "${year}" MonthPattern string = "${month}" DayPattern string = "${day}" HourPattern string = "${hour}" MinutePattern string = "${minute}" SecondPattern string = "${second}" UnixTimePattern string = "${unix_time}" UnixTimeNanoPattern string = "${unix_time_nano}" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pattern ¶
type Pattern struct {
// contains filtered or unexported fields
}
func NewPattern ¶
func NewPattern(pattern string, options ...PatternOption) *Pattern
func (*Pattern) AddExtension ¶
func (*Pattern) SearchRegexp ¶
type PatternOption ¶
type PatternOption func(namer *Pattern)
func PatternAddSegments ¶
func PatternAddSegments(segments ...Segment) PatternOption
func PatternWithSegments ¶
func PatternWithSegments(segments ...Segment) PatternOption
type Segment ¶
func NewSegment ¶
func NewSegment(field string, searchRegexp string, valueFunc SegmentValueFunc) Segment
type SegmentValueFunc ¶
type SegmentValueFunc func() string
Click to show internal directories.
Click to hide internal directories.