messages

package
v0.0.0-...-cbd168f Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

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

Marshal 序列化

func Unmarshal

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

Unmarshal 反序列化

Types

type DeployClientVersionNotSupported

type DeployClientVersionNotSupported struct{}

DeployClientVersionNotSupported 不支持的客户端版本

type DeployDone

type DeployDone struct{}

DeployDone 发布完成

type DeployFile

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

DeployFile 发布文件的内容

type DeployFileKey

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

DeployFileKey 发布文件的值

type DeployFileType

type DeployFileType string

DeployFileType 发布文件类型

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

文件类型

type DeployPayload

type DeployPayload struct {
	Files []DeployFile
}

DeployPayload 发布的上下文

type DeployQuery

type DeployQuery struct {
	Version string
	Files   []DeployFileKey
}

DeployQuery 发布队列

type DeployQueryResponse

type DeployQueryResponse struct {
	Required []DeployFileKey
}

DeployQueryResponse 返回队列

type Payload

type Payload struct {
	Message wasmcore.Message
}

Payload 上下文

Jump to

Keyboard shortcuts

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