chainer

package
v0.0.0-...-0cf0af7 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IAction

type IAction interface {
	Name() string
	Keychain() string
	Description() string
	Handler() TActionHandler
	BinaryKey() ([]TBinaryKey, error)
}

IAction -

func NewAction

func NewAction(name, keychain, desc string, handler TActionHandler) IAction

NewAction -

type TAction

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

TAction -

func (*TAction) BinaryKey

func (o *TAction) BinaryKey() ([]TBinaryKey, error)

BinaryKey -

func (*TAction) Description

func (o *TAction) Description() string

Description -

func (*TAction) Handler

func (o *TAction) Handler() TActionHandler

Handler -

func (*TAction) Keychain

func (o *TAction) Keychain() string

Keychain -

func (*TAction) Name

func (o *TAction) Name() string

Name -

type TActionHandler

type TActionHandler func(keychain string) bool

TActionHandler -

type TBinaryKey

type TBinaryKey int64

TBinaryKey -

func (TBinaryKey) String

func (o TBinaryKey) String() string

String -

type TBuilder

type TBuilder struct{}

TBuilder -

type TChainer

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

TChainer -

func NewChainer

func NewChainer() *TChainer

NewChainer -

func (*TChainer) Add

func (o *TChainer) Add(actions ...IAction) *TChainer

Add -

func (*TChainer) Apply

func (o *TChainer) Apply()

Apply -

func (*TChainer) Extract

func (o *TChainer) Extract(name string) IAction

Extract -

func (*TChainer) Get

func (o *TChainer) Get(name string) IAction

Get -

func (*TChainer) Handle

func (o *TChainer) Handle(key TBinaryKey) error

Handle -

func (*TChainer) Remove

func (o *TChainer) Remove(names ...string)

Remove -

func (TChainer) String

func (o TChainer) String() string

String -

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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