Documentation ¶
Index ¶
- func GetFilesAsCSVRecords(files []*models.GetFilesResponse, headers []string) [][]string
- func WriteFilesToExcel(files []*models.GetFilesResponse, headers []string) (*excelize.File, error)
- type Handler
- func (h *Handler) DeleteFile(c *gin.Context)
- func (h *Handler) DeleteFiles(c *gin.Context)
- func (h *Handler) GetFile(c *gin.Context)
- func (h *Handler) GetFilePage(c *gin.Context)
- func (h *Handler) GetFiles(c *gin.Context)
- func (h *Handler) GetFilesCSV(c *gin.Context)
- func (h *Handler) GetFilesExcel(c *gin.Context)
- func (h *Handler) PostFiles(c *gin.Context)
- type RPCConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFilesAsCSVRecords ¶
func GetFilesAsCSVRecords(files []*models.GetFilesResponse, headers []string) [][]string
GetFilesAsCSVRecords returns the files as CSV writeable records
func WriteFilesToExcel ¶
func WriteFilesToExcel(files []*models.GetFilesResponse, headers []string) (*excelize.File, error)
Types ¶
type Handler ¶
type Handler struct {
RPC *RPCConfig
}
func NewHandler ¶
func (*Handler) DeleteFile ¶
func (*Handler) DeleteFiles ¶
func (*Handler) GetFilePage ¶
func (*Handler) GetFilesCSV ¶
func (*Handler) GetFilesExcel ¶
type RPCConfig ¶
type RPCConfig struct { Client storage_service.StorageClient CallOptions []grpc.CallOption Deadline int64 }
Click to show internal directories.
Click to hide internal directories.