NewDirectLinkClient returns a client for the DirectLink from the given config.
(c config)
| 489 | |
| 490 | // NewDirectLinkClient returns a client for the DirectLink from the given config. |
| 491 | func NewDirectLinkClient(c config) *DirectLinkClient { |
| 492 | return &DirectLinkClient{config: c} |
| 493 | } |
| 494 | |
| 495 | // Use adds a list of mutation hooks to the hooks stack. |
| 496 | // A call to `Use(f, g, h)` equals to `directlink.Hooks(f(g(h())))`. |