Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UnmarshalPayload ¶
Types ¶
type Entry ¶
type Entry struct { Url string ZipPath string CompressionMethod uint16 ContentReader io.ReadCloser }
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(env string, options ServerOptions) *Server
func (*Server) HandleGetStreamZip ¶
func (s *Server) HandleGetStreamZip(w http.ResponseWriter, req *http.Request)
func (*Server) HandlePostStreamZip ¶
func (s *Server) HandlePostStreamZip(w http.ResponseWriter, req *http.Request)
func (*Server) HealthCheck ¶
func (s *Server) HealthCheck(w http.ResponseWriter, req *http.Request)
type ServerOptions ¶
type ZipStreamer ¶
type ZipStreamer struct {
Entries []*Entry
}
func NewZipStreamer ¶
func NewZipStreamer(files []File) (*ZipStreamer, error)
func (*ZipStreamer) StreamFiles ¶
func (z *ZipStreamer) StreamFiles(w io.Writer) error
Click to show internal directories.
Click to hide internal directories.