test

package
v0.40.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BrokerAddress

func BrokerAddress(params BrokerAddressParams) string

BrokerAddress returns the broker address based on the environment. If the environment variable ASYNCAPI_DOCKERIZED is set, it returns the dockerized address.

func GenerateSelfSignedCertificate

func GenerateSelfSignedCertificate(name string) ([]byte, []byte, error)

GenerateSelfSignedCertificate generates a self-signed certificate.

func GenerateSelfSignedCertificateWithCA

func GenerateSelfSignedCertificateWithCA(name string) ([]byte, []byte, []byte, error)

GenerateSelfSignedCertificateWithCA generates a self-signed certificate with a CA certificate.

Types

type BrokerAddressParams

type BrokerAddressParams struct {
	Schema string
	Port   string

	DockerizedAddr string
	DockerizedPort string

	LocalAddr string
	LocalPort string
}

BrokerAddressParams is the parameters for the BrokerAddress function.

Jump to

Keyboard shortcuts

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