msg

package
v0.0.0-...-c85e1c3 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2017 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package msg defines the main messages used in the Focus protocol. See docs/protocol.adoc for further protocol description.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cmd

type Cmd int
const (
	C_NIL Cmd = iota
	C_OPEN
	C_OPEN_RESP
	C_WRITE
	C_WRITE_RESP
)

func (Cmd) String

func (c Cmd) String() string

type Msg

type Msg struct {
	Cmd  Cmd
	Name string `json:",omitempty"`
	Fd   int    `json:",omitempty"`
	Rev  int    `json:",omitempty"`
	Hash string `json:",omitempty"`
	Ops  ot.Ops `json:",omitempty"`
}

Jump to

Keyboard shortcuts

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