Documentation ¶
Index ¶
- func NewHTTPTransport(server string, client *http.Client) transport
- func NewSocketTransport(server string, connectionPoolSize int, waitTimeout time.Duration) transport
- type Client
- func NewClient(server string, connectionPoolSize int, waitTimeout time.Duration) (c *Client, err error)
- func NewClientWithTransport(transport transport) (c *Client, err error)
- func NewHTTPClient(server string) (c *Client, err error)
- func NewHTTPClientWithTransport(transport transport) (c *Client, err error)
- func (c *Client) GetContent(request *requests.Content) (*content.SiteContent, error)
- func (c *Client) GetNodes(env *requests.Env, nodes map[string]*requests.Node) (map[string]*content.Node, error)
- func (c *Client) GetRepo() (map[string]*content.RepoNode, error)
- func (c *Client) GetURIs(dimension string, IDs []string) (map[string]string, error)
- func (c *Client) ShutDown()
- func (c *Client) Update() (*responses.Update, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHTTPTransport ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client a content server client
func NewClientWithTransport ¶
func NewHTTPClient ¶
func (*Client) GetContent ¶
GetContent request site content
func (*Client) GetNodes ¶
func (c *Client) GetNodes(env *requests.Env, nodes map[string]*requests.Node) (map[string]*content.Node, error)
GetNodes request nodes
Click to show internal directories.
Click to hide internal directories.