listener

package
v0.9.9 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: GPL-3.0 Imports: 4 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FailedToCloseError  = errors.New("failed to close listener")
	FailedToListenError = errors.New("failed to listen")
	FailedToServeError  = errors.New("failed to serve")
)

Functions

This section is empty.

Types

type Logger

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

Logger is the logger for the listener

func NewLogger

func NewLogger(logger commonlogger.Logger) (*Logger, error)

NewLogger creates a new listener logger

func (*Logger) ServerStarted

func (l *Logger) ServerStarted(port string)

ServerStarted logs a success message when the server starts

type ServicePort

type ServicePort struct {
	Port          string
	FormattedPort string
}

ServicePort is the port of the service

func LoadServicePort

func LoadServicePort(host string, key string) (
	servicePort *ServicePort, err error,
)

LoadServicePort load Service port from environment variables

Jump to

Keyboard shortcuts

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