server

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateChannel

func CreateChannel() (chan os.Signal, func())

func DokcliBanner

func DokcliBanner() (string, error)

func HealthCheck

func HealthCheck(c echo.Context) error

Types

type Dokcli

type Dokcli struct {
	Server      *echo.Echo
	Port        string
	HideBanner  bool
	OpenBrowser bool
}

func NewServer

func NewServer(hideBanner bool, openBrowser bool) *Dokcli

func (*Dokcli) Middleware

func (d *Dokcli) Middleware()

func (*Dokcli) Register

func (d *Dokcli) Register()

func (*Dokcli) Routing

func (d *Dokcli) Routing(url string)

func (*Dokcli) SetPort

func (d *Dokcli) SetPort(port string) string

func (*Dokcli) Shutdown

func (d *Dokcli) Shutdown(ctx context.Context)

func (*Dokcli) StartServer

func (d *Dokcli) StartServer()

Jump to

Keyboard shortcuts

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