http

package
v0.0.0-...-ed4c74a Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2017 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(opts *ClientOptions, cfg *config.ServiceConfig) nano.Service

func NewListener

func NewListener(opts *ListenerOptions, cfgs ...*config.ServiceConfig) nano.Listener

Types

type ClientOptions

type ClientOptions struct {
	Client        *http.Client
	Discoverer    discovery.Discoverer
	Serializer    *serialization.ClientSideSerializer
	PrefixURLPath bool
}
var DefaultClientOptions *ClientOptions

DefaultClientOptions is used by NewClient when its opts parameter is nil. If DefaultClientOptions is nil then the opts parameter of NewClient can't be nil.

type ListenerOptions

type ListenerOptions struct {
	BindAddr      string
	Serializer    *serialization.ServerSideSerializer
	PrefixURLPath bool
}
var DefaultListenerOptions *ListenerOptions

Directories

Path Synopsis
gogo_proto
Package gogo_proto is a generated protocol buffer package.
Package gogo_proto is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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