modify

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2020 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const ModName = "alias_file"

Variables

This section is empty.

Functions

func New

func New(_, instName string, _, inlineArgs []string) (module.Module, error)

func NewReplaceAddr

func NewReplaceAddr(modName, instName string, _, inlineArgs []string) (module.Module, error)

Types

type Group

type Group struct {
	Modifiers []module.Modifier
	// contains filtered or unexported fields
}

Group wraps multiple modifiers and runs them serially.

It is also registered as a module under 'modifiers' name and acts as a module group.

func (*Group) Init

func (g *Group) Init(cfg *config.Map) error

func (*Group) InstanceName

func (g *Group) InstanceName() string

func (Group) ModStateForMsg

func (g Group) ModStateForMsg(ctx context.Context, msgMeta *module.MsgMetadata) (module.ModifierState, error)

func (*Group) Name

func (g *Group) Name() string

type Modifier

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

func (*Modifier) Close

func (m *Modifier) Close() error

func (*Modifier) Init

func (m *Modifier) Init(cfg *config.Map) error

func (*Modifier) InstanceName

func (m *Modifier) InstanceName() string

func (*Modifier) ModStateForMsg

func (m *Modifier) ModStateForMsg(ctx context.Context, msgMeta *module.MsgMetadata) (module.ModifierState, error)

func (*Modifier) Name

func (m *Modifier) Name() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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