server

package
v0.0.0-...-cde6bcd Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2025 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseListenAddress

func ParseListenAddress(addr string) (*url.URL, error)

Types

type Spec

type Spec struct {
	Name          string
	ListenAddress string
	HTTPS         bool
	CertFilePath  string
	KeyFilePath   string
	Handler       http.Handler
	// contains filtered or unexported fields
}

func NewSpec

func NewSpec(ctx context.Context, spec *Spec) *Spec

func (*Spec) DisplayName

func (spec *Spec) DisplayName() string

func (*Spec) Start

func (spec *Spec) Start(_ context.Context, logger *log.Logger)

func (*Spec) Stop

func (spec *Spec) Stop(ctx context.Context, logger *log.Logger) error

Jump to

Keyboard shortcuts

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