rest

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: MIT Imports: 3 Imported by: 12

Documentation

Overview

*********** WARNING *********** This package provides a generic reusable REST client

Deprecated: This package is deprecated. Use the listen package instead. This will be removed in a future release.

This package is frozen and no new functionality will be added. *********** WARNING ***********

*********** WARNING *********** This package provides the prerecorded client implementation for the Deepgram API

Deprecated: This package is deprecated. Use the listen package instead. This will be removed in a future release.

This package is frozen and no new functionality will be added. *********** WARNING ***********

Index

Constants

View Source
const (
	LogLevelDefault   = common.LogLevelDefault
	LogLevelErrorOnly = common.LogLevelErrorOnly
	LogLevelStandard  = common.LogLevelStandard
	LogLevelElevated  = common.LogLevelElevated
	LogLevelFull      = common.LogLevelFull
	LogLevelDebug     = common.LogLevelDebug
	LogLevelTrace     = common.LogLevelTrace
	LogLevelVerbose   = common.LogLevelVerbose
)

please see pkg/common/init.go for more information

View Source
const (
	PackageVersion = restv1.PackageVersion
)

Variables

This section is empty.

Functions

func Init

func Init(init InitLib)

The SDK Init function for this library. Allows you to set the logging level and use of a log file. Default is output to the stdout.

func InitWithDefault

func InitWithDefault()

InitWithDefault is the SDK Init function for this library using default values.

Types

type Client

type Client = restv1.Client

Alias

func New

func New(options *interfaces.ClientOptions) *Client

New REST client

func NewWithDefaults

func NewWithDefaults() *Client

NewWithDefaults creates a REST client with default options

type InitLib

type InitLib struct {
	LogLevel      common.LogLevel
	DebugFilePath string
}

Initialization options for this SDK.

Directories

Path Synopsis
v1
This package implements a reusable REST client
This package implements a reusable REST client
debug
This package provides API debugging at the REST/HTTP level
This package provides API debugging at the REST/HTTP level

Jump to

Keyboard shortcuts

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