startcmd

package
v0.0.0-...-e6bf14e Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetStartCmd

func GetStartCmd(srv Server) *cobra.Command

GetStartCmd returns the Cobra start command.

Types

type Server

type Server interface {
	ListenAndServe(host, certFile, keyFile string, router http.Handler) error
	Logger() log.Logger
}

Server represents an HTTP server.

func NewHTTPServer

func NewHTTPServer(logger log.Logger) Server

NewHTTPServer returns a new instance of Server.

Jump to

Keyboard shortcuts

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