client

package
v0.0.0-...-8ce2553 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateClient

func CreateClient(protocol, service string) (microClient.Client, error)

CreateClient is for to create client based on protocol and the service name

func GetClient

func GetClient(protocol, service string) (microClient.Client, error)

GetClient is to get the client based on protocol and service name

func GetProtocolSpec

func GetProtocolSpec(p string) model.Protocol

GetProtocolSpec is to get protocol specifications

func InstallPlugin

func InstallPlugin(protocol string, f ClientNewFunc)

InstallPlugin is plugin for the new function

Types

type ClientNewFunc

type ClientNewFunc func(...microClient.Option) microClient.Client

ClientNewFunc is function for the client

func GetClientNewFunc

func GetClientNewFunc(name string) (ClientNewFunc, error)

GetClientNewFunc is to get the client

Jump to

Keyboard shortcuts

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