Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataAndTag ¶
DataAndTag is a pair of data and tag.
type MockContext ¶
type MockContext struct {
// contains filtered or unexported fields
}
MockContext mock context.
func NewMockContext ¶
func NewMockContext(data []byte, tag uint32) *MockContext
NewMockContext returns the mock context. the data is that returned by ctx.Data(), the tag is that returned by ctx.Tag().
func (*MockContext) Data ¶
func (c *MockContext) Data() []byte
func (*MockContext) HTTP ¶
func (m *MockContext) HTTP() serverless.HTTP
func (*MockContext) RecordWritten ¶
func (c *MockContext) RecordWritten() []DataAndTag
RecordWritten returns the data records be written with `ctx.Write`.
func (*MockContext) Tag ¶
func (c *MockContext) Tag() uint32
Click to show internal directories.
Click to hide internal directories.