Documentation ¶
Overview ¶
Package internal GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE
Index ¶
- func DeferWriter(createWriter func() (io.Writer, error)) io.Writer
- func NewRequest(ctx context.Context, method string, path string, v any) (*http.Request, error)
- func Pipe(w func(w io.Writer) error, r func(r io.Reader) error) error
- func ReadCloseWithHeader(rc io.ReadCloser, h http.Header) interface{ ... }
- func Register(creator TransformerProvider)
- func UnmarshalRequest(req *http.Request, out any) error
- func UnmarshalRequestInfo(ireq httprequest.Request, out any) error
- type Content
- type ContentLengthSetter
- type ContentProvider
- type ContentReader
- type ContentTypeGetter
- type ContentTypeSetter
- type FilenameGetter
- type FilenameSetter
- type HeaderGetter
- type ParamValue
- func (p *ParamValue) AddrValues(sf *jsonflags.StructField, n int) iter.Seq2[int, reflect.Value]
- func (p *ParamValue) CanMultiple(sf *jsonflags.StructField) bool
- func (p *ParamValue) MarshalValues(ctx context.Context, sf *jsonflags.StructField) (values []string, err error)
- func (v ParamValue) RuntimeDoc(names ...string) ([]string, bool)
- func (p *ParamValue) UnmarshalReaders(ctx context.Context, sf *jsonflags.StructField, readers []io.ReadCloser) error
- func (p *ParamValue) UnmarshalValues(ctx context.Context, sf *jsonflags.StructField, values []string) error
- func (p *ParamValue) Values(sf *jsonflags.StructField) iter.Seq[reflect.Value]
- type ReadCloserFrom
- type Request
- func (p *Request) MarshalRequest(ctx context.Context, method string, path pathpattern.Segments) (*http.Request, error)
- func (v Request) RuntimeDoc(names ...string) ([]string, bool)
- func (p *Request) UnmarshalRequest(req *http.Request) error
- func (p *Request) UnmarshalRequestInfo(r httprequest.Request) error
- type Transformer
- type TransformerProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRequest ¶
func ReadCloseWithHeader ¶
func ReadCloseWithHeader(rc io.ReadCloser, h http.Header) interface { io.ReadCloser HeaderGetter }
func Register ¶
func Register(creator TransformerProvider)
func UnmarshalRequestInfo ¶
func UnmarshalRequestInfo(ireq httprequest.Request, out any) error
Types ¶
type Content ¶
type Content interface { GetContentType() string GetContentLength() int64 io.ReadCloser }
type ContentLengthSetter ¶
type ContentLengthSetter interface {
SetContentLength(l int64)
}
type ContentProvider ¶
type ContentReader ¶
type ContentTypeGetter ¶
type ContentTypeGetter interface {
ContentType() string
}
type ContentTypeSetter ¶
type ContentTypeSetter interface {
SetContentType(contentType string)
}
type FilenameGetter ¶
type FilenameGetter interface {
Filename() string
}
type FilenameSetter ¶
type FilenameSetter interface {
SetFilename(f string)
}
type HeaderGetter ¶
type ParamValue ¶
func (*ParamValue) AddrValues ¶
func (p *ParamValue) AddrValues(sf *jsonflags.StructField, n int) iter.Seq2[int, reflect.Value]
func (*ParamValue) CanMultiple ¶
func (p *ParamValue) CanMultiple(sf *jsonflags.StructField) bool
func (*ParamValue) MarshalValues ¶
func (p *ParamValue) MarshalValues(ctx context.Context, sf *jsonflags.StructField) (values []string, err error)
func (ParamValue) RuntimeDoc ¶
func (v ParamValue) RuntimeDoc(names ...string) ([]string, bool)
func (*ParamValue) UnmarshalReaders ¶
func (p *ParamValue) UnmarshalReaders(ctx context.Context, sf *jsonflags.StructField, readers []io.ReadCloser) error
func (*ParamValue) UnmarshalValues ¶
func (p *ParamValue) UnmarshalValues(ctx context.Context, sf *jsonflags.StructField, values []string) error
func (*ParamValue) Values ¶
func (p *ParamValue) Values(sf *jsonflags.StructField) iter.Seq[reflect.Value]
type ReadCloserFrom ¶
type ReadCloserFrom interface {
ReadFromCloser(r io.ReadCloser) (n int64, err error)
}
type Request ¶
type Request struct {
ParamValue
}
func (*Request) MarshalRequest ¶
func (*Request) UnmarshalRequestInfo ¶
func (p *Request) UnmarshalRequestInfo(r httprequest.Request) error
type Transformer ¶
type Transformer interface { MediaType() string ContentReader ContentProvider }
type TransformerProvider ¶
type TransformerProvider interface { Names() []string Transformer() (Transformer, error) }
Click to show internal directories.
Click to hide internal directories.