client

package
v0.0.0-...-1465e64 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertDXClientDaemon

type CertDXClientDaemon struct {
	Config    *config.ClientConfigT
	ClientOpt []CertDXHttpClientOption
	// contains filtered or unexported fields
}

func MakeCertDXClientDaemon

func MakeCertDXClientDaemon() *CertDXClientDaemon

func (*CertDXClientDaemon) GRPCMain

func (r *CertDXClientDaemon) GRPCMain()

func (*CertDXClientDaemon) HttpMain

func (r *CertDXClientDaemon) HttpMain()

type CertDXHttpClient

type CertDXHttpClient struct {
	HttpClient *http.Client
	Server     *config.ClientHttpServer
}

func MakeCertDXHttpClient

func MakeCertDXHttpClient(s ...CertDXHttpClientOption) *CertDXHttpClient

func (*CertDXHttpClient) GetCert

func (c *CertDXHttpClient) GetCert(domains []string) (*types.HttpCertResp, error)

func (*CertDXHttpClient) GetCertCtx

func (c *CertDXHttpClient) GetCertCtx(ctx context.Context, domains []string) (*types.HttpCertResp, error)

type CertDXHttpClientOption

type CertDXHttpClientOption func(client *CertDXHttpClient)

func WithCertDXInsecure

func WithCertDXInsecure() CertDXHttpClientOption

func WithCertDXServerInfo

func WithCertDXServerInfo(server *config.ClientHttpServer) CertDXHttpClientOption

type CertDXgRPCClient

type CertDXgRPCClient struct {
	Kill     chan struct{}
	Running  atomic.Bool
	Received atomic.Pointer[chan struct{}]
	// contains filtered or unexported fields
}

func MakeCertDXgRPCClient

func MakeCertDXgRPCClient(server *config.ClientGRPCServer, certs []*watchingCert) *CertDXgRPCClient

func (*CertDXgRPCClient) Stream

func (c *CertDXgRPCClient) Stream() error

Jump to

Keyboard shortcuts

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