shimo

package module
v0.0.0-...-0609fe5 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2020 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Document

type Document struct {
	GUID       string `json:"guid"`
	SheetIndex int    `json:"sheet_index"`

	Cookie string `json:"-"`
	Suffix string `json:"suffix"`

	CacheTTL       time.Duration `json:"cache_ttl"`
	CacheBytes     []byte        `json:"cache_bytes"`
	CacheUpdatedAt time.Time     `json:"cache_updated_at"`
	JSONCache      *json.RawMessage
	CSVCache       []byte
}

func NewDocument

func NewDocument(guid string, cookie string) *Document

NewDocument returns a new Document

func (*Document) GetCSV

func (d *Document) GetCSV() ([]byte, error)

func (*Document) GetJSON

func (d *Document) GetJSON() (*json.RawMessage, error)

type Response

type Response struct {
	DownloadURL string `json:"downloadUrl"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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