Documentation

Index

Constants

View Source
const Name = "truncate_token"

Variables

This section is empty.

Functions

func TruncateTokenFilterConstructor

func TruncateTokenFilterConstructor(config map[string]interface{}, cache *registry.Cache) (analysis.TokenFilter, error)

Types

type TruncateTokenFilter

type TruncateTokenFilter struct {
	// contains filtered or unexported fields
}

func NewTruncateTokenFilter

func NewTruncateTokenFilter(length int) *TruncateTokenFilter

func (*TruncateTokenFilter) Filter

Source Files