restfult

package
Version: v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: GPL-3.0 Imports: 4 Imported by: 3

Documentation

Index

Constants

View Source
const (
	Client  = "cli"
	Backend = "back"
)

// IRestfult ... type IRestfult interface {

ConnectPool() *http.Client
HTTPLisentRun(ListenIP string, HandleURL ...[]myhttp.RESTfulURL) (err error)
ListenProxy(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

} ConnType ...

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service IRestfult

func NewRestfultService

func NewRestfultService() *Service

NewRestfultService ...

func (*Service) HTTPLisentRun

func (restfult *Service) HTTPLisentRun(adders string, HandleURL ...[]Setting) (err error)

HTTPLisentRun ...

func (*Service) HTTPSListen added in v1.0.1

func (restfult *Service) HTTPSListen(adders string, certFile string, keyFile string, HandleURL ...[]Setting) error

HTTPSListen ... wrapper for TLS service function

func (*Service) ListenProxy

func (restfult *Service) ListenProxy(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

ListenProxy ...

type Setting

type Setting struct {
	RequestType string
	URL         string
	Fun         httprouter.Handle
	ConnType    string
}

Setting ...

Source Files

Jump to

Keyboard shortcuts

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