listener

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

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

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(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