worker

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ErrorWorkerReaderIsNil ...
	ErrorWorkerReaderIsNil = "Reader should not be nil"
	// ErrorWorkerWriterIsNil ...
	ErrorWorkerWriterIsNil = "Writer should not be nil"
)

Variables

This section is empty.

Functions

func NewMapping

func NewMapping() worker.Mapping

NewMapping creates a new mapping and returns its address.

func NewWorker

func NewWorker(in io.Reader, out io.Writer, m worker.Mapping) worker.Worker

NewWorker creates a a new worker and returns its address.

Types

type Mapping

type Mapping struct{}

Mapping specifies the api logic to apply transformation to a specific Golang identifier by reading simple JSON map.

func (*Mapping) Apply

func (*Mapping) Apply(ident string) string

Apply checks the Golang identifier and transforms it to a specific representation.

type Worker

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

Worker specifies the api logic of transforming a source code format into another target format.

func (*Worker) Start

func (w *Worker) Start() error

Start ...

Jump to

Keyboard shortcuts

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