messages

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: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal(in services.Message) ([]byte, int, error)

func Unmarshal

func Unmarshal(in []byte) (services.Message, error)

Types

type Deploy

type Deploy struct {
	Main    string
	Imports []string
	Source  map[string]map[string]string // Source packages for this build: map[<package>]map[<filename>]<contents>
	Tags    []string
}

type DeployComplete

type DeployComplete struct {
	Main  string
	Index string
}

type Get

type Get struct {
	Path string
}

Get is sent by the client to the server asking it to download a package and return the source.

type GetComplete

type GetComplete struct {
	Source map[string]map[string]string
}

type Initialise

type Initialise struct {
	Path   string
	Minify bool
}

Initialise is sent by the client to get the source at Path, and update.

type Share

type Share struct {
	Source map[string]map[string]string
	Tags   []string
}

Share is sent by the client to persist the setup on the server.

type ShareComplete

type ShareComplete struct {
	Hash string
}

type Update

type Update struct {
	Source map[string]map[string]string // Source packages for this build: map[<package>]map[<filename>]<contents>
	Tags   []string                     // Build tags
	Cache  map[string]string            // Map of path->hash of previously compiled dependencies to use if still in the cache
	Minify bool
}

Update is sent by the client to the server asking it to compile the source and return the archive files for all dependencies that are not found in the client cache.

Jump to

Keyboard shortcuts

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