Versions in this module Expand all Collapse all v1 v1.0.6 Sep 20, 2020 v1.0.5 Aug 25, 2020 Changes in this version + const ProtocolHTTPName + const ProtocolHTTPSName + var DefaultClient = &Client + var DefaultTransport = newDefaultTransport() + func NewHTTPMetaData() protocol.Metadata + func WithMapInterface(opt map[string]interface{}) func(client protocol.Client) error + func WithTLS(config *tls.Config) func(protocol.Client) error + func WithTransport(transport *http.Transport) func(protocol.Client) + type Client struct + func (cli *Client) GetResource(url string, md protocol.Metadata) protocol.Resource + type ClientBuilder struct + func (cb *ClientBuilder) NewProtocolClient(opts ...func(client protocol.Client) error) (protocol.Client, error) + type Headers struct + func (hd *Headers) All() interface{} + func (hd *Headers) Del(key string) + func (hd *Headers) Get(key string) (interface{}, error) + func (hd *Headers) Set(key string, value interface{}) + type Resource struct + func (rs *Resource) Call(ctx context.Context, request interface{}) (response interface{}, err error) + func (rs *Resource) Close() error + func (rs *Resource) Expire(ctx context.Context) (bool, interface{}, error) + func (rs *Resource) Length(ctx context.Context) (int64, error) + func (rs *Resource) Metadata(ctx context.Context) (protocol.Metadata, error) + func (rs *Resource) Read(ctx context.Context, off int64, size int64) (rc io.ReadCloser, err error)