schema

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2018 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CodeError

type CodeError struct {
	Code    string
	MsgBody string
	Prefix  string
}

func (*CodeError) Marshal

func (d *CodeError) Marshal(buf []byte) ([]byte, error)

func (*CodeError) Size

func (d *CodeError) Size() (s uint64)

func (*CodeError) Unmarshal

func (d *CodeError) Unmarshal(buf []byte) (uint64, error)

type ReqMsg

type ReqMsg struct {
	Id     string
	Params []byte
}

func (*ReqMsg) Marshal

func (d *ReqMsg) Marshal(buf []byte) ([]byte, error)

func (*ReqMsg) Size

func (d *ReqMsg) Size() (s uint64)

func (*ReqMsg) Unmarshal

func (d *ReqMsg) Unmarshal(buf []byte) (uint64, error)

type ResMsg

type ResMsg struct {
	Id       string
	Response []*ResultItem
}

func (*ResMsg) Marshal

func (d *ResMsg) Marshal(buf []byte) ([]byte, error)

func (*ResMsg) Size

func (d *ResMsg) Size() (s uint64)

func (*ResMsg) Unmarshal

func (d *ResMsg) Unmarshal(buf []byte) (uint64, error)

type Result

type Result struct {
	ResultRef []byte
	Err       *CodeError
}

func (*Result) Marshal

func (d *Result) Marshal(buf []byte) ([]byte, error)

func (*Result) Size

func (d *Result) Size() (s uint64)

func (*Result) Unmarshal

func (d *Result) Unmarshal(buf []byte) (uint64, error)

type ResultItem

type ResultItem struct {
	Key    string
	Result *Result
}

func (*ResultItem) Marshal

func (d *ResultItem) Marshal(buf []byte) ([]byte, error)

func (*ResultItem) Size

func (d *ResultItem) Size() (s uint64)

func (*ResultItem) Unmarshal

func (d *ResultItem) Unmarshal(buf []byte) (uint64, error)

Jump to

Keyboard shortcuts

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