Help us shape the future of Go! Take the 2026 Go Developer Survey

mbus

package
v2.907.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectionInfo

type ConnectionInfo struct {
	Addr      string
	IP        string
	IPs       []string
	Dial      func(network, address string) (net.Conn, error)
	TLSConfig *tls.Config
}

type ConnectionTLSInfo

type ConnectionTLSInfo struct {
	CertPool              *x509.CertPool
	ClientCert            *tls.Certificate
	VerifyPeerCertificate func(rawCerts [][]byte, verifiedChains [][]*x509.Certificate) error
}

type HTTPHandlerFunc

type HTTPHandlerFunc func(writer http.ResponseWriter, request *http.Request)

type HTTPSDispatcher

type HTTPSDispatcher struct {
	// contains filtered or unexported fields
}

func NewHTTPSDispatcher

func NewHTTPSDispatcher(baseURL *url.URL, keyPair settings.CertKeyPair, logger boshlog.Logger) *HTTPSDispatcher

func (*HTTPSDispatcher) AddRoute

func (h *HTTPSDispatcher) AddRoute(route string, handler HTTPHandlerFunc)

func (*HTTPSDispatcher) Start

func (h *HTTPSDispatcher) Start() error

func (*HTTPSDispatcher) Stop

func (h *HTTPSDispatcher) Stop()

type HTTPSHandler

type HTTPSHandler struct {
	// contains filtered or unexported fields
}

func NewHTTPSHandler

func NewHTTPSHandler(
	parsedURL *url.URL,
	keyPair settings.CertKeyPair,
	blobManager boshagentblobstore.BlobManagerInterface,
	logger boshlog.Logger,
	auditLogger platform.AuditLogger,
) HTTPSHandler

func (HTTPSHandler) RegisterAdditionalFunc

func (h HTTPSHandler) RegisterAdditionalFunc(_handlerFunc boshhandler.Func)

func (HTTPSHandler) Run

func (h HTTPSHandler) Run(handlerFunc boshhandler.Func) error

func (HTTPSHandler) Send

func (h HTTPSHandler) Send(target boshhandler.Target, topic boshhandler.Topic, message interface{}) error

func (HTTPSHandler) Start

func (h HTTPSHandler) Start(handlerFunc boshhandler.Func) error

func (HTTPSHandler) Stop

func (h HTTPSHandler) Stop()

type Handler

type Handler interface {
	Run(boshhandler.Func) error
	Start(boshhandler.Func) error
	RegisterAdditionalFunc(boshhandler.Func)
	Send(target boshhandler.Target, topic boshhandler.Topic, message interface{}) error
	Stop()
}

func NewNatsHandler

func NewNatsHandler(
	settingsService boshsettings.Service,
	client NatsConnector,
	logger boshlog.Logger,
	platform boshplatform.Platform,
) Handler

type HandlerProvider

type HandlerProvider struct {
	// contains filtered or unexported fields
}

func NewHandlerProvider

func NewHandlerProvider(
	settingsService boshsettings.Service,
	logger boshlog.Logger,
	auditLogger boshplatform.AuditLogger,
) (p HandlerProvider)

func (HandlerProvider) Get

type NatsConnection

type NatsConnection interface {
	Close()
	Publish(subj string, data []byte) error
	Subscribe(subj string, cb nats.MsgHandler) (*nats.Subscription, error)
}

type NatsConnector

type NatsConnector func(url string, options ...nats.Option) (NatsConnection, error)

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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