utils

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: MIT Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeepAliveService

type KeepAliveService struct {
	*http.Server
	// contains filtered or unexported fields
}

func NewKeepAliveService

func NewKeepAliveService(tlsConf *tls.Config) *KeepAliveService

NewKeepAliveService .

func (*KeepAliveService) Endpoint

func (s *KeepAliveService) Endpoint() (*url.URL, error)

Endpoint return a real address to registry endpoint.

func (*KeepAliveService) Start

func (s *KeepAliveService) Start() error

Start starts the HTTP server.

func (*KeepAliveService) Stop

func (s *KeepAliveService) Stop(ctx context.Context) error

Stop stops the HTTP server.

Jump to

Keyboard shortcuts

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