server

package
v0.0.0-...-ccdc392 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	CertFile string
	KeyFile  string
	Addr     string
}

Config defines the HTTP server

type Server

type Server interface {
	Serve() error
}

Server defines the basic operations for image-cloner server.

func Setup

func Setup(cfg Config) (Server, error)

Setup initializes and returns a server; error otherwise.

Jump to

Keyboard shortcuts

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