handlers

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 20, 2024 License: BSD-3-Clause Imports: 13 Imported by: 0

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

func NewCleaner() (*Cleaner, error)

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 NewJoiner

func NewJoiner(getURL string) (*Joiner, error)

NewClient creates a transcriber client

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)

func (*ListHandler) Process added in v0.2.0

func (sp *ListHandler) Process(ctx context.Context, data string) (string, error)

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL