utils

package
v0.0.0-...-b702281 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMockServer

func GetMockServer(closeWS <-chan []byte) (*httptest.Server, chan<- string, <-chan string, <-chan error, error)

GetMockServer returns a mock websocket server that can be started up as TLS or not. TODO replace with gomock closeWS - send msg to this channel to close the ws connection from server side serverChan - use this channel to send messages to server, which server would in turn write on ws connection requestsChan - use this channel to confirm msgs were received on server side errChan - use this channel to receive errors. Server reads/writes message on ws connection and sends error if any on this channel.

Types

type TestECSClient

type TestECSClient struct {
	TCSurl string
}

func (*TestECSClient) DiscoverTelemetryEndpoint

func (client *TestECSClient) DiscoverTelemetryEndpoint(url string) (string, error)

Jump to

Keyboard shortcuts

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