Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PatchChunk ¶
func PatchChunk(s Service) gin.HandlerFunc
func ReceiveFirstChunk ¶
func ReceiveFirstChunk(s Service) gin.HandlerFunc
func RemoveChunk ¶
func RemoveChunk(s Service) gin.HandlerFunc
Types ¶
type Service ¶
type Service interface { CreateFile(f *model.InitialFileData) (float64, error) AppendChunk(f *model.FileChunk) (float64, error) Remove(name string) error Start() Stop() }
func NewService ¶
func NewService() Service
type ServiceImpl ¶
type ServiceImpl struct {
// contains filtered or unexported fields
}
func (*ServiceImpl) AppendChunk ¶
func (*ServiceImpl) AppendChunk(f *model.FileChunk) (float64, error)
func (*ServiceImpl) CreateFile ¶
func (s *ServiceImpl) CreateFile(f *model.InitialFileData) (float64, error)
func (*ServiceImpl) Remove ¶
func (s *ServiceImpl) Remove(name string) error
func (*ServiceImpl) Start ¶
func (s *ServiceImpl) Start()
func (*ServiceImpl) Stop ¶
func (s *ServiceImpl) Stop()
Click to show internal directories.
Click to hide internal directories.