Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cleaner ¶ added in v0.2.0
type Cleaner struct {
// contains filtered or unexported fields
}
Cleaner cleans text
func NewCleaner ¶ added in v0.2.0
NewCleaner creates a text cleaner
func (*Cleaner) Process ¶ added in v0.2.0
func (sp *Cleaner) Process(ctx context.Context, data *api.FullResult) (*api.FullResult, error)
type Handler ¶ added in v0.2.0
type Handler interface {
Process(context.Context, *api.FullResult) (*api.FullResult, error)
}
type Joiner ¶
type Joiner struct {
// contains filtered or unexported fields
}
Joiner communicates with num joiner service service
func (*Joiner) Process ¶
func (sp *Joiner) Process(ctx context.Context, data *api.FullResult) (*api.FullResult, error)
type ListHandler ¶ added in v0.2.0
type ListHandler struct {
// contains filtered or unexported fields
}
List passes data to list of middleware
func NewListHandler ¶ added in v0.2.0
func NewListHandler() (*ListHandler, error)
func (*ListHandler) Add ¶ added in v0.2.0
func (sp *ListHandler) Add(h Handler)
type Punctuator ¶ added in v0.2.0
type Punctuator struct {
// contains filtered or unexported fields
}
Punctuator
func NewPunctuator ¶ added in v0.2.0
func NewPunctuator(getURL string) (*Punctuator, error)
NewPunctuator creates a punctuation middleware
func (*Punctuator) Process ¶ added in v0.2.0
func (sp *Punctuator) Process(ctx context.Context, data *api.FullResult) (*api.FullResult, error)
Click to show internal directories.
Click to hide internal directories.