Documentation ¶
Index ¶
- func FileEnd() *isp.Message
- func IsEndOfFile(msg *isp.Message) bool
- func NewFileStreamWriter(stream DuplexMessageStream, bf BeginFile) (io.WriteCloser, error)
- func WriteFile(stream DuplexMessageStream, path string, bf BeginFile) error
- type BeginFile
- type DuplexMessageStream
- type FileFactory
- type FileStream
- type FormData
- type StreamConsumer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsEndOfFile ¶
func NewFileStreamWriter ¶ added in v2.8.0
func NewFileStreamWriter(stream DuplexMessageStream, bf BeginFile) (io.WriteCloser, error)
Types ¶
type BeginFile ¶
type BeginFile struct { FileName string FormDataName string ContentType string ContentLength int64 FormData FormData }
func ReadFile ¶
func ReadFile(stream DuplexMessageStream, fileFactory func(bf BeginFile) (io.WriteCloser, error), sendResponse bool) (*BeginFile, error)
type DuplexMessageStream ¶
type FileStream ¶ added in v2.8.0
type FileStream interface {
BeginFile() BeginFile
}
type StreamConsumer ¶
type StreamConsumer func(stream DuplexMessageStream, md metadata.MD) error
Click to show internal directories.
Click to hide internal directories.