Documentation ¶
Overview ¶
Package snowboard API blueprint parser and renderer
Index ¶
- func HTML(tpl string, w io.Writer, b *api.API) error
- func Load(name string, engine Parser) (*api.API, error)
- func MockHandler(ms MockTransactions) http.Handler
- func Parse(r io.Reader, engine Parser) (*api.API, error)
- func Read(name string) ([]byte, error)
- func Validate(r io.Reader, engine Parser) (*api.API, error)
- type MockTransaction
- type MockTransactions
- type Parser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MockHandler ¶
func MockHandler(ms MockTransactions) http.Handler
Types ¶
type MockTransaction ¶
type MockTransaction struct { Path string Method string StatusCode int ContentType string Body string }
func Mock ¶
func Mock(b *api.API) []*MockTransaction
type MockTransactions ¶
type MockTransactions []*MockTransaction
func (MockTransactions) Router ¶
func (ms MockTransactions) Router() *mockRouter
Click to show internal directories.
Click to hide internal directories.