connection

package
v0.0.0-...-47becbb Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TestConnectionRequest = func(ctx context.Context, httpClient *http.HttpClient) error {
	_, err := httpClient.Get(ctx, "")
	return err
}

Functions

This section is empty.

Types

type ExampleConnectionTester

type ExampleConnectionTester struct {
	Ctx        context.Context
	HttpClient *http.HttpClient
}

ExampleConnectionTester is a struct for testing connection to server, containing needed properties. Extends ConnectionTester from SDK. See https://github.com/digital-ai/release-integration-sdk-go/blob/master/test/connection.go

func (*ExampleConnectionTester) TestConnection

func (tester *ExampleConnectionTester) TestConnection() error

TestConnection implements logic for testing the connection to the server. If there is no error, connection is successful.

Jump to

Keyboard shortcuts

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