Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client contains all the information needed to connect to the CaptainHook server
func NewClient ¶
NewClient creates a new CaptainHook client. Use the secret you received from your server administrator. rootCAs can contain additional certifactes for SSL validation, e.g. snakeoil/self-signed. Set to nil if you don't expect that
func (*Client) Connect ¶
Connect to the captainhook server. Provide the hostname and port of the server. If the server offers an SSL connection, you should set useSSL to true.
func (*Client) Disconnect ¶
Disconnect disconnects the websocket from the server
func (*Client) RemoveHook ¶
RemoveHook deletes the Webhook identified by the identifier on the server.
Click to show internal directories.
Click to hide internal directories.