Documentation
¶
Index ¶
- Constants
- Variables
- func ErrTargetNotFound(targetName string) error
- func ErrUpdateTarget(targetName string, err error) error
- type Client
- func (c *Client) CloseTarget(ctx context.Context, targetName string) error
- func (c *Client) CloseTargets(ctx context.Context, targets ...string) error
- func (c *Client) OpenTarget(ctx context.Context, t *target.Target) error
- func (c *Client) OpenTargets(ctx context.Context, targets ...*target.Target) error
- func (c *Client) PerformForAll(ctx context.Context, handler ResponseHandler, req database.Request) error
- func (c *Client) PerformWithHandler(ctx context.Context, handler ResponseHandler, targetName string, ...) error
- func (c *Client) PingTarget(ctx context.Context, targetName string) error
- func (c *Client) Request(ctx context.Context, targetName string, request database.Request) (chan *request.Response, error)
- func (c *Client) RequestForAll(ctx context.Context, req database.Request) (chan *request.Response, error)
- func (c *Client) RequestWithHandler(ctx context.Context, handler ResponseHandler, targetName string, ...) error
- func (c *Client) String() string
- func (c *Client) Target(targetName string) (*target.Target, bool)
- func (c *Client) UpdateTarget(ctx context.Context, targetName string, opts ...target.TargetOption) error
- type DatabaseListFetchData
- type EventHandler
- type ExecuteQuery
- type QueryResult
- type ResponseHandler
- type TableCountFetchData
- type TableFetchData
- type TableListFetchData
Constants ¶
View Source
const Version = "0.0.1"
Variables ¶
View Source
var ( ErrNoTarget = errors.New("no target provided") ErrNoRequests = errors.New("no requests provided") )
Functions ¶
func ErrTargetNotFound ¶
func ErrUpdateTarget ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CloseTarget ¶
func (*Client) CloseTargets ¶
func (*Client) OpenTarget ¶
func (*Client) OpenTargets ¶
func (*Client) PerformForAll ¶
func (c *Client) PerformForAll(ctx context.Context, handler ResponseHandler, req database.Request) error
no targets = NoOp
func (*Client) PerformWithHandler ¶
func (c *Client) PerformWithHandler(ctx context.Context, handler ResponseHandler, targetName string, req database.Request) error
Blocking
func (*Client) PingTarget ¶
func (*Client) RequestForAll ¶
func (c *Client) RequestForAll(ctx context.Context, req database.Request) (chan *request.Response, error)
no targets = NoOp
func (*Client) RequestWithHandler ¶
func (c *Client) RequestWithHandler(ctx context.Context, handler ResponseHandler, targetName string, req database.Request) error
Non-Blocking
func (*Client) UpdateTarget ¶
type DatabaseListFetchData ¶
type ExecuteQuery ¶
type QueryResult ¶
type ResponseHandler ¶
type TableCountFetchData ¶
type TableFetchData ¶
type TableListFetchData ¶
Click to show internal directories.
Click to hide internal directories.