store

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StoreCompile

func StoreCompile(ctx context.Context, database services.Database, path string, data CompileData) error

func StoreDeploy

func StoreDeploy(ctx context.Context, database services.Database, data DeployData) error

func StoreError

func StoreError(ctx context.Context, database services.Database, data Error) error

func StoreShare

func StoreShare(ctx context.Context, database services.Database, data ShareData) error

func StoreWasmDeploy

func StoreWasmDeploy(ctx context.Context, database services.Database, data WasmDeploy) error

Types

type CompileContents

type CompileContents struct {
	Main     string
	Packages []CompilePackage
}

type CompileData

type CompileData struct {
	Path string
	Time time.Time
	Min  CompileContents
	Max  CompileContents
	Ip   string

	Success bool
	Error   string
}

func Package

func Package(ctx context.Context, database services.Database, path string) (bool, CompileData, error)

type CompilePackage

type CompilePackage struct {
	Path     string
	Hash     string
	Standard bool
}

type DeployContents

type DeployContents struct {
	Index    string
	Main     string
	Packages []CompilePackage
}

type DeployData

type DeployData struct {
	Time     time.Time
	Contents DeployContents
	Minify   bool
	Ip       string
}

type Error

type Error struct {
	Time  time.Time
	Error string
	Ip    string
}

type ShareData

type ShareData struct {
	Time  time.Time
	Hash  string
	Files int
	Ip    string
}

type WasmDeploy

type WasmDeploy struct {
	Time  time.Time
	Ip    string
	Files []WasmDeployFile
}

type WasmDeployFile

type WasmDeployFile struct {
	Type string
	Hash string
}

Jump to

Keyboard shortcuts

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