file

package
v0.0.0-...-76f7c0c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2021 License: MIT Imports: 20 Imported by: 0

Documentation

Index

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 NewHandler(rpcConfig *RPCConfig) *Handler

func (*Handler) DeleteFile

func (h *Handler) DeleteFile(c *gin.Context)

func (*Handler) DeleteFiles

func (h *Handler) DeleteFiles(c *gin.Context)

func (*Handler) GetFile

func (h *Handler) GetFile(c *gin.Context)

func (*Handler) GetFilePage

func (h *Handler) GetFilePage(c *gin.Context)

func (*Handler) GetFiles

func (h *Handler) GetFiles(c *gin.Context)

func (*Handler) GetFilesCSV

func (h *Handler) GetFilesCSV(c *gin.Context)

func (*Handler) GetFilesExcel

func (h *Handler) GetFilesExcel(c *gin.Context)

func (*Handler) PostFiles

func (h *Handler) PostFiles(c *gin.Context)

type RPCConfig

type RPCConfig struct {
	Client      storage_service.StorageClient
	CallOptions []grpc.CallOption
	Deadline    int64
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL