supinic

package
v0.0.0-...-f1b5f16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package supinic contains a client for the Supinic API. https://supinic.com/api/

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is a Supinic API client.

func NewClient

func NewClient(userID, apiKey string) *Client

NewClient creates a new Client.

func NewClientForTesting

func NewClientForTesting(baseURL string) *Client

NewClientForTesting creates a new Client for testing.

func (*Client) StartPinging

func (c *Client) StartPinging(ctx context.Context)

StartPinging starts a background task to ping the Supinic API regularly to make sure the API knows the bot is still online. This function blocks and should be run within a goroutine.

Directories

Path Synopsis
Package ivrtest provides helpers for testing connections to the Supinic API.
Package ivrtest provides helpers for testing connections to the Supinic API.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL