network

package
v0.0.0-...-43dd9f0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteJson

func ExecuteJson(req *HttpReq, res HttpRes) error

func ExecuteRpc

func ExecuteRpc(req *HttpReq) ([]byte, error)

Types

type HttpMethod

type HttpMethod string
const (
	HttpMethodGet  HttpMethod = "GET"
	HttpMethodPost HttpMethod = "POST"
)

type HttpReq

type HttpReq struct {
	URL    string      `json:"url"`
	Method HttpMethod  `json:"method"`
	Param  interface{} `json:"param"`
}

type HttpRes

type HttpRes interface {
}

Jump to

Keyboard shortcuts

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