transports

package
v0.0.0-...-4aff305 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2018 License: GPL-3.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHTTPTransport

func NewHTTPTransport(client *client.Client) api.Transport

NewHTTPTransport creates a new Transport that uses the HTTP protocol

Types

type Nop

type Nop struct{}

func (Nop) Delete

Delete removes a value associated with the key. Returns ChangeSet of success and failure

func (Nop) Hash

func (Nop) Hash() uint32

Hash returns the transport unique hash

func (Nop) Host

func (Nop) Host() string

Host returns the transport host

func (Nop) Insert

Insert takes a key and value and stores with in the underlying store. Returns ChangeSet of success and failure

func (Nop) Keys

func (Nop) Keys() ([]selectors.Key, error)

Keys returns all the potential keys that are stored with in the store.

func (Nop) Members

func (Nop) Members(selectors.Key) ([]selectors.Field, error)

Members returns the members associated for a key

func (Nop) Score

Score returns the specific score for the field with in the key.

func (Nop) Select

Select retrieves a field and score associated with the store. Returns Field, Value and Score if the value found

func (Nop) Size

func (Nop) Size(selectors.Key) (int64, error)

Size returns the number of members for the key are stored in the store.

type Strategy

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

Strategy wraps a Transport protocol layer for querying requests.

func Parse

func Parse(protocol string) (Strategy, error)

Parse a protocol transport config and return a Strategy for creating a Transport on demand.

func (Strategy) Apply

func (s Strategy) Apply(host string) api.Transport

Apply a host to a Transport

Jump to

Keyboard shortcuts

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