server

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTempRegistry

func NewTempRegistry(ctx context.Context, root string) *tmpRegistryServer

Types

type Server

type Server interface {
	ListenAndServe() error
	ListenAndServeTLS(string, string) error
}

func NewFile

func NewFile(ctx context.Context, cfg flags.ServeFilesOpts) (Server, error)

NewFile returns a fileserver TODO: Better configs

Jump to

Keyboard shortcuts

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