cmdr_http2

package module
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2020 License: MIT Imports: 0 Imported by: 0

README

cmdr-http2

A cmdr demo app. cmdr-http2 implements a http2 server with full daemon supports and graceful shutdown.


# clone and init
git clone https://github.com/hedzr/cmdr-http2.git
cd cmdr-http2
go mod download

# run server
go run ./cli/ server run &

# run client and make an request
go run ./cli/ h2

# or via curl
curl -k https://localhost:5151/

#
# Build the binary
#
go build -o bin/cli ./cli/
# or:
make build

# Shell prompt mode
$ go run ./cli/ shell
>>> --help
>>> quit
# type <space> to get auto-completion tip
# type sub-commands
plugins for cmdr system
sample

sample plugin give a example to howto modify cmdr daemon plugin server start command at an appropriate time.

trace

trace plugin adds a trace option to cmdr system.

shell

enable shell prompt mode inside app.

cmdr-http2 shell prompt mode:

image

Shell prompt mode

the feature is powered by c-bata/go-prompt.

LICENSE

MIT

Documentation

Index

Constants

View Source
const (
	// AppName const
	AppName = "cmdr-http2" // main app-name
	// Version const
	Version = "1.2.3" // version name
	// VersionInt const
	VersionInt = 0x010203 // using as
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
cli
cmd
internal

Jump to

Keyboard shortcuts

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