clients

package
v1.6.6 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	REST_CLIENT_CONFIG = "rest_client_config"
	CLIENT_AUTH_TYPE   = "client_auth_type"

	CERTS_CA  = "ssl_ca_file"
	CERTS_CRT = "ssl_crt_file"
	CERTS_KEY = "ssl_key_file"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type IMyClient

type IMyClient interface {
	SayHello(correlationId string, name string) (result string, err error)
}

type MyRestClient

type MyRestClient struct {
	*clients.RestClient
	// contains filtered or unexported fields
}

func NewMyRestClient

func NewMyRestClient() *MyRestClient

func (*MyRestClient) Configure

func (c *MyRestClient) Configure(config *cconf.ConfigParams)

func (*MyRestClient) GetCaCert

func (c *MyRestClient) GetCaCert() (*x509.CertPool, error)

func (*MyRestClient) GetCertificates

func (c *MyRestClient) GetCertificates() ([]tls.Certificate, error)

func (*MyRestClient) GetClientAuthType

func (c *MyRestClient) GetClientAuthType() tls.ClientAuthType

func (*MyRestClient) SayHello

func (c *MyRestClient) SayHello(correlationId string, name string) (result string, err error)

Jump to

Keyboard shortcuts

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