Library for define legs protocol messages for legs-server and legs-client
go get github.com/iij/legs-message
and
import "github.com/iij/legs-message"
msg := message.NewConsoleStartMessage("session-id", "shell cmd")
b, err := message.Marshal(msg)
msg := &message.ConsoleMessage{}
err = message.Unmarshal(b, msg)
- CI (testing, formatting)