Documentation
¶
Index ¶
- Variables
- type DataBind
- type TestContext
- type TestEvent
- func (te *TestEvent) GetBody() []byte
- func (te *TestEvent) GetContentType() string
- func (te *TestEvent) GetHeader(key string) interface{}
- func (te *TestEvent) GetHeaderByteSlice(key string) []byte
- func (te *TestEvent) GetHeaderString(key string) string
- func (te *TestEvent) GetHeaders() map[string]interface{}
- func (te *TestEvent) GetMethod() string
- func (te *TestEvent) GetPath() string
- func (te *TestEvent) GetTimestamp() time.Time
- func (te *TestEvent) GetURL() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnsupported = errors.New("Event does not support this interface")
Functions ¶
This section is empty.
Types ¶
type TestContext ¶
type TestContext struct {
LogLevel nucliozap.Level
Logger logger.Logger
Data *DataBind
// contains filtered or unexported fields
}
func NewTestContext ¶
func (*TestContext) GetContext ¶
func (tc *TestContext) GetContext() nuclio.Context
func (*TestContext) InitContext ¶
func (tc *TestContext) InitContext(function func(context *nuclio.Context) error) error
type TestEvent ¶
type TestEvent struct {
nuclio.AbstractEvent
Body []byte
ContentType string
Headers map[string]interface{}
Path string
URL string
Method string
Time time.Time
// contains filtered or unexported fields
}
func (*TestEvent) GetContentType ¶
func (*TestEvent) GetHeaderByteSlice ¶
func (*TestEvent) GetHeaderString ¶
func (*TestEvent) GetHeaders ¶
func (*TestEvent) GetTimestamp ¶
Click to show internal directories.
Click to hide internal directories.