cmd

package
v0.0.0-...-53094e8 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, c Config) error

Types

type Config

type Config struct {
	CBackend  string
	CFilePath string
	LBackend  string
	Port      int
}

type ContentReader

type ContentReader interface {
	Open(context.Context, string) (io.ReadCloser, error)
	Read(ctx context.Context, r io.Reader) ([]byte, error)
	Close(ctx context.Context, rc io.ReadCloser) error
}

type Handler

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

type Locator

type Locator interface {
	Open(context.Context) (io.ReadCloser, error)
	Locate(context.Context, net.HardwareAddr, io.Reader) (string, error)
	Close(ctx context.Context, rc io.ReadCloser) error
}

Jump to

Keyboard shortcuts

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