Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 514 Bytes

README.md

File metadata and controls

34 lines (26 loc) · 514 Bytes

legs-message

Library for define legs protocol messages for legs-server and legs-client

Basic Usage

install

go get github.com/iij/legs-message

and

import "github.com/iij/legs-message"

create message

msg := message.NewConsoleStartMessage("session-id", "shell cmd")

Encode to msgpack

b, err := message.Marshal(msg)

Decode from msgpack

msg := &message.ConsoleMessage{}
err = message.Unmarshal(b, msg)

TODOs

  • CI (testing, formatting)