export

package
v0.0.0-...-2811922 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArticleExportFile

type ArticleExportFile struct {
	FileBytes []byte
	MimeType  string
	FileName  string
}

ArticleExportFile is the structure used to generate a response body for an article export file

type Context

type Context struct {
	// contains filtered or unexported fields
}

Context is the structure for an export, based on the exportInterface

func NewContext

func NewContext(e exportInterface) *Context

NewContext is the constructor of a Context for exporting article

func (*Context) Export

func (c *Context) Export(param string) *ArticleExportFile

Export function is the context function that generate a file from an article id

type Csv

type Csv struct {
}

Csv is the csv export strategy struct

type Xlsx

type Xlsx struct {
}

Xlsx is the csv export strategy struct

Jump to

Keyboard shortcuts

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