Documentation ¶
Index ¶
Constants ¶
View Source
const (
STORY_BORG_FILE = "/tmp/search-story.borg"
)
Variables ¶
View Source
var Empty stories.InitFunc = func(ctx context.Context) (mux.Screen, error) { paths, err := createBorgFiles(5) if err != nil { return nil, err } return New( ctx, bind.NewBindScope(nil), bind.NewBindScope(nil), bind.NewBindScope(nil), WithRequest(Request{ Query: "asdasdasd", Files: paths, Workers: 3, }), ), nil }
View Source
var Load stories.InitFunc = func(ctx context.Context) (mux.Screen, error) { paths, err := createBorgFiles(5) if err != nil { return nil, err } return New( ctx, bind.NewBindScope(nil), bind.NewBindScope(nil), bind.NewBindScope(nil), WithRequest(Request{ Query: "bar", Files: paths, Workers: 3, }), ), nil }
View Source
var Many stories.InitFunc = func(ctx context.Context) (mux.Screen, error) { borg, err := createBorgFiles(5) if err != nil { return nil, err } var paths []string for i := 0; i < 100; i++ { paths = append(paths, borg...) } return New( ctx, bind.NewBindScope(nil), bind.NewBindScope(nil), bind.NewBindScope(nil), WithRequest(Request{ Query: "bar", Files: paths, Workers: 3, }), ), nil }
Functions ¶
Types ¶
type ActionEvent ¶
type ActionEvent struct {
Type ActionType
}
type ActionType ¶
type ActionType int
const ( ActionCancel ActionType = iota ActionNext ActionPrev ActionFirst ActionLast ActionInput )
Click to show internal directories.
Click to hide internal directories.