http

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

Error is the error data for the JSON-RPC request.

func NewError

func NewError(code int, message string) *Error

NewError returns a new Error instance.

func (Error) Error

func (e Error) Error() string

type Params

type Params map[string]interface{}

func (Params) Bool

func (p Params) Bool(key string) (bool, bool)

func (Params) Float32

func (p Params) Float32(filed string) (float32, bool)

func (Params) Float64

func (p Params) Float64(filed string) (float64, bool)

func (Params) Int

func (p Params) Int(filed string) (int, bool)

func (Params) Int16

func (p Params) Int16(filed string) (int16, bool)

func (Params) Int32

func (p Params) Int32(filed string) (int32, bool)

func (Params) Int64

func (p Params) Int64(filed string) (int64, bool)

func (Params) String

func (p Params) String(key string) (string, bool)

func (Params) Uint

func (p Params) Uint(filed string) (uint, bool)

func (Params) Uint16

func (p Params) Uint16(filed string) (uint16, bool)

func (Params) Uint32

func (p Params) Uint32(filed string) (uint32, bool)

func (Params) Uint64

func (p Params) Uint64(filed string) (uint64, bool)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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