model

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RequestMessage

type RequestMessage struct {
	Name string      `json:"msg-type"`
	Body interface{} `json:"msg-body,omitempty"`
}

type ResponseMessage

type ResponseMessage struct {
	Name string      `json:msg-type`
	Body interface{} `json:"msg-body,omitempty"`
}

type StatusResponseBody

type StatusResponseBody struct {
	Status string `json:"status"`
}

type Unpacker

type Unpacker struct {
	Data interface{}
}

func (*Unpacker) String

func (u *Unpacker) String() string

func (*Unpacker) UnmarshalJSON

func (u *Unpacker) UnmarshalJSON(b []byte) error

General process:

  • unmarshal
  • check that something was unmarshaled, if yes return
  • check for an error other than type, if yes return

Jump to

Keyboard shortcuts

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