http

package
v0.0.0-...-6b27e27 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

README

http server and client

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	http.Client
	Unmarshaller service.Unmarshaller
	Marshaller   service.Marshaller
}

func NewClient

func NewClient() *Client

func (*Client) Handle

func (client *Client) Handle(method string, url string, ptrHandlerObj interface{})

type Server

type Server struct {
	Unmarshaller service.Unmarshaller
	Marshaller   service.Marshaller
	// contains filtered or unexported fields
}

func NewServer

func NewServer() *Server

func (*Server) Close

func (server *Server) Close() error

func (*Server) Handle

func (server *Server) Handle(pattern string, handlerObj interface{})

func (*Server) Shutdown

func (server *Server) Shutdown(ctx *countlog.Context) error

func (*Server) Start

func (server *Server) Start(addr string) error

Jump to

Keyboard shortcuts

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