Documentation ¶
Index ¶
- type Processor
- type Step
- func (s *Step) AddProcessor(processors ...Processor) *Step
- func (s *Step) Next(ss *Steps) *Step
- func (s *Step) Prev(ss *Steps) *Step
- func (s *Step) Process(ctx echo.Context) error
- func (s *Step) SetActive(active bool) *Step
- func (s *Step) SetActiveByCurrentIndex(currentIndex int) *Step
- func (s *Step) SetConfig(config echo.H) *Step
- func (s *Step) SetConfigKV(key string, value interface{}) *Step
- func (s *Step) SetDescription(description string) *Step
- func (s *Step) SetTitle(title string) *Step
- type Steps
- func (s *Steps) Add(stepName string, processors ...Processor) *Steps
- func (s *Steps) AddStep(step *Step) *Steps
- func (s *Steps) First() *Step
- func (s *Steps) Get(stepName string) *Step
- func (s *Steps) GetAny(stepNames ...string) *Step
- func (s *Steps) GetDescription(stepName string) string
- func (s *Steps) GetIndex(stepName string) int
- func (s *Steps) GetTitle(stepName string) string
- func (s *Steps) Last() *Step
- func (s *Steps) Max() int
- func (s *Steps) Next(index int) *Step
- func (s *Steps) NextByName(stepName string) *Step
- func (s *Steps) Prev(index int) *Step
- func (s *Steps) PrevByName(stepName string) *Step
- func (s *Steps) Set(stepName string, processors ...Processor) *Steps
- func (s *Steps) SetStep(step *Step) *Steps
- func (s *Steps) Size() int
- func (s *Steps) Slice() []*Step
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Step ¶
type Step struct { Name string // 英文标识名 Title string // 步骤标题 Description string // 步骤说明 Active bool // 是否已完成步骤 Index int Config echo.H // contains filtered or unexported fields }
Step 单个步骤信息
func (*Step) AddProcessor ¶
AddProcessor 添加处理逻辑
func (*Step) SetActiveByCurrentIndex ¶
func (*Step) SetConfigKV ¶
func (*Step) SetDescription ¶
Click to show internal directories.
Click to hide internal directories.