Help us shape the future of Go! Take the 2026 Go Developer Survey

messages

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2018 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

View Source
const (
	DeployFileTypeIndex  DeployFileType = "index"
	DeployFileTypeLoader                = "loader"
	DeployFileTypeWasm                  = "wasm"
)

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 DeployClientVersionNotSupported

type DeployClientVersionNotSupported struct{}

type DeployDone

type DeployDone struct{}

type DeployFile

type DeployFile struct {
	DeployFileKey
	Contents []byte // in the initial CommandDeploy, this is nil
}

type DeployFileKey

type DeployFileKey struct {
	Type DeployFileType
	Hash string // sha1 hash of contents
}

type DeployFileType

type DeployFileType string

type DeployPayload

type DeployPayload struct {
	Files []DeployFile
}

type DeployQuery

type DeployQuery struct {
	Version string
	Files   []DeployFileKey
}

type DeployQueryResponse

type DeployQueryResponse struct {
	Required []DeployFileKey
}

type Payload

type Payload struct {
	Message services.Message
}

Jump to

Keyboard shortcuts

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