internals

package
v0.0.0-...-0b3c072 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const SHEETS_MIME_TYPE = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"

Variables

This section is empty.

Functions

func DownloadFile

func DownloadFile(config DownloadConfig) error

func GetAllIds

func GetAllIds(id string) []string

func GetDocument

func GetDocument(file *excelize.File, config ParseConfig) models.Document

Types

type DownloadConfig

type DownloadConfig struct {
	Id   string
	Path string
	Name string
}

type GlobalParseConfig

type GlobalParseConfig struct {
	AddressTable    string `toml:"address_table"`
	BackendKey      string `toml:"backend_key"`
	BLCUAddressKey  string `toml:"blcu_address_key"`
	UnitsTable      string `toml:"units_table"`
	PortsTable      string `toml:"ports_table"`
	BoardIdsTable   string `toml:"board_ids_table"`
	MessageIdsTable string `toml:"message_ids_table"`
}

type ParseConfig

type ParseConfig struct {
	GlobalSheetPrefix string            `toml:"global_sheet_prefix"`
	BoardSheetPrefix  string            `toml:"board_sheet_prefix"`
	TablePrefix       string            `toml:"table_prefix"`
	Global            GlobalParseConfig `toml:"global"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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