new: implemented api.rest.record and api.rest.replay

This commit is contained in:
evilsocket 2019-03-29 16:20:31 +01:00
commit 0a31ac8167
No known key found for this signature in database
GPG key ID: 1564D7F30393A456
76 changed files with 7610 additions and 48 deletions

View file

@ -35,7 +35,7 @@ type ifaceJSON struct {
Addresses []addrJSON `json:"addresses"`
}
type sessionJSON struct {
type SessionJSON struct {
Version string `json:"version"`
OS string `json:"os"`
Arch string `json:"arch"`
@ -59,7 +59,7 @@ type sessionJSON struct {
}
func (s *Session) MarshalJSON() ([]byte, error) {
doc := sessionJSON{
doc := SessionJSON{
Version: core.Version,
OS: runtime.GOOS,
Arch: runtime.GOARCH,