Documentation ¶
Index ¶
- func RegisterCheckFunc(checkFunc CheckFunc)
- func RegisterInFunc(inFunc InFunc)
- func RegisterOutFunc(outFunc OutFunc)
- func RunCheck(reqReader io.Reader, respWriter io.Writer, checkFunc CheckFunc) error
- func RunCheckMain(checkFunc CheckFunc) error
- func RunIn(reqReader io.Reader, respWriter io.Writer, targetDir string, inFunc InFunc) error
- func RunInMain(inFunc InFunc) error
- func RunMain() error
- func RunMainExit()
- func RunOut(reqReader io.Reader, respWriter io.Writer, targetDir string, outFunc OutFunc) error
- func RunOutMain(outFunc OutFunc) error
- func TestCheckFunc(t *testing.T, request interface{}, response interface{}, checkFunc CheckFunc) error
- func TestInFunc(t *testing.T, request interface{}, response interface{}, targetDir string, ...) error
- func TestOutFunc(t *testing.T, request interface{}, response interface{}, targetDir string, ...) error
- type CheckFunc
- type CheckRequest
- type InFunc
- type InRequest
- type MainRunner
- type MetadataField
- type OutFunc
- type OutRequest
- type ResourceRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterCheckFunc ¶
func RegisterCheckFunc(checkFunc CheckFunc)
func RegisterInFunc ¶
func RegisterInFunc(inFunc InFunc)
func RegisterOutFunc ¶
func RegisterOutFunc(outFunc OutFunc)
func RunCheckMain ¶
func RunMainExit ¶
func RunMainExit()
func RunOutMain ¶
func TestCheckFunc ¶
func TestInFunc ¶
Types ¶
type CheckFunc ¶
type CheckFunc func(req CheckRequest) error
type CheckRequest ¶
type CheckRequest interface { Decode(source interface{}, version interface{}) error AddResponseVersion(version interface{}) }
type InRequest ¶
type InRequest interface { ResourceRequest Decode(source interface{}, version interface{}, params interface{}) error }
type MainRunner ¶
type MainRunner struct {
// contains filtered or unexported fields
}
func (MainRunner) RunMain ¶
func (r MainRunner) RunMain() error
func (*MainRunner) SetCheckFunc ¶
func (r *MainRunner) SetCheckFunc(checkFunc CheckFunc)
func (*MainRunner) SetInFunc ¶
func (r *MainRunner) SetInFunc(inFunc InFunc)
func (*MainRunner) SetOutFunc ¶
func (r *MainRunner) SetOutFunc(outFunc OutFunc)
type MetadataField ¶
type OutFunc ¶
type OutFunc func(req OutRequest) error
type OutRequest ¶
type OutRequest interface { ResourceRequest Decode(source interface{}, params interface{}) error }
type ResourceRequest ¶
Click to show internal directories.
Click to hide internal directories.