Documentation
¶
Index ¶
- type Action
- type Attachment
- type Button
- type Color
- type CustomStepBuilder
- func (b *CustomStepBuilder) Build() Step
- func (b *CustomStepBuilder) IsNotEmpty() *CustomStepBuilder
- func (b *CustomStepBuilder) WithButton(button Button) *CustomStepBuilder
- func (b *CustomStepBuilder) WithColor(color Color) *CustomStepBuilder
- func (b *CustomStepBuilder) WithImage(path string) *CustomStepBuilder
- func (b *CustomStepBuilder) WithPretext(text string) *CustomStepBuilder
- type Dialog
- type EmptyStep
- type Step
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶ added in v0.0.23
type Action struct {
model.PostAction
OnClick func(userID string) (int, Attachment)
Dialog *Dialog
}
type Attachment ¶ added in v0.0.23
type Attachment struct {
SlackAttachment *model.SlackAttachment
Actions []Action
}
func (*Attachment) ToSlackAttachment ¶ added in v0.0.23
func (a *Attachment) ToSlackAttachment() *model.SlackAttachment
type CustomStepBuilder ¶ added in v0.0.23
type CustomStepBuilder struct {
// contains filtered or unexported fields
}
func NewCustomStepBuilder ¶ added in v0.0.23
func NewCustomStepBuilder(name, title, message string) *CustomStepBuilder
NewCustomStepBuilder create a new builder for a custom step.
name must be a unique identifier for a step within the plugin.
func (*CustomStepBuilder) Build ¶ added in v0.0.23
func (b *CustomStepBuilder) Build() Step
func (*CustomStepBuilder) IsNotEmpty ¶ added in v0.0.23
func (b *CustomStepBuilder) IsNotEmpty() *CustomStepBuilder
func (*CustomStepBuilder) WithButton ¶ added in v0.0.23
func (b *CustomStepBuilder) WithButton(button Button) *CustomStepBuilder
func (*CustomStepBuilder) WithColor ¶ added in v0.0.23
func (b *CustomStepBuilder) WithColor(color Color) *CustomStepBuilder
func (*CustomStepBuilder) WithImage ¶ added in v0.0.23
func (b *CustomStepBuilder) WithImage(path string) *CustomStepBuilder
func (*CustomStepBuilder) WithPretext ¶ added in v0.0.23
func (b *CustomStepBuilder) WithPretext(text string) *CustomStepBuilder
type EmptyStep ¶ added in v0.0.23
type EmptyStep struct {
OnRender func(userID string)
// contains filtered or unexported fields
}
func NewEmptyStep ¶
func (*EmptyStep) Attachment ¶ added in v0.0.23
func (s *EmptyStep) Attachment(pluginURL string) Attachment
Click to show internal directories.
Click to hide internal directories.