Skip to content

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

License

Notifications You must be signed in to change notification settings

iij/legs-message

Repository files navigation

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)