Documentation
¶
Index ¶
- Constants
- Variables
- func GetDesc(opt Option) string
- func Load(pathp string, opts ...Option) (*operators, error)
- func LoadBook(path string) (*book, error)
- func New(opts ...Option) (*operator, error)
- func Paths(pathp string) ([]string, error)
- type Option
- func AsTestHelper(t *testing.T) Option
- func Book(path string) Option
- func Books(pathp string) ([]Option, error)
- func DBRunner(name string, client *sql.DB) Option
- func Debug(debug bool) Option
- func Desc(desc string) Option
- func HTTPRunner(name, endpoint string, client *http.Client) Option
- func HTTPRunnerWithHandler(name string, h http.Handler) Option
- func Runner(name, dsn string) Option
- func Var(k string, v interface{}) Option
Constants ¶
View Source
const (
MediaTypeApplicationJSON = "application/json"
)
Variables ¶
View Source
var ( T = AsTestHelper Runbook = Book )
Functions ¶
Types ¶
type Option ¶
type Option func(*book) error
func AsTestHelper ¶
func HTTPRunnerWithHandler ¶ added in v0.6.0
Source Files
¶
Click to show internal directories.
Click to hide internal directories.