server

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 15 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 FileConfig

type FileConfig struct {
	Root string
	Host string
	Port int
}

type Server

type Server interface {
	ListenAndServe() error
}

func NewFile

func NewFile(ctx context.Context, cfg FileConfig) (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