Documentation
¶
Index ¶
- Variables
- func Buffer[T string | []byte](data T) *synq.LinkedBuffer
- func ConnmetaSvc(t *testing.T, ctx context.Context, conn *connection.Connection) connmeta.Service
- func Headers(kv map[string]string) *plugins.HttpHeaderMap
- func MarshalJSON(t *testing.T, v any) string
- func MarshalYAML(t *testing.T, v any) *yaml.Node
- type Clock
- type Context
- type Logger
- type Meta
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultTime = time.Date(2024, 10, 22, 0, 0, 0, 0, time.UTC)
Functions ¶
func ConnmetaSvc ¶
func ConnmetaSvc(t *testing.T, ctx context.Context, conn *connection.Connection) connmeta.Service
Types ¶
type Context ¶
type Context struct {
T *testing.T
VReqBody []byte
VResBody []byte
VContext context.Context
VTags tags.List
VMeta *Meta
}
func (*Context) GetRequestBodyBuffer ¶
func (c *Context) GetRequestBodyBuffer() plugins.BodyBuffer
plugins.HttpPluginInstance interface implementation this is the client side of the connection that filters can use to interact with the connection
func (*Context) GetResponseBodyBuffer ¶
func (c *Context) GetResponseBodyBuffer() plugins.BodyBuffer
type Meta ¶
func NewMeta ¶
func NewMeta(t *testing.T, conn *connection.Connection) *Meta
func (*Meta) SetReadBytes ¶
func (*Meta) SetWriteBytes ¶
func (*Meta) WriteBytes ¶
Click to show internal directories.
Click to hide internal directories.