route

package
v1.1.16 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package route implements management functions of REST Router

Index

Constants

View Source
const (
	// ConstWellknownPort is the common port for REST API
	ConstWellknownPort = 56001
	// ConstInternalPort is the port used for TLS connection
	ConstInternalPort = 56002
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RestRouter

type RestRouter struct {
	tls.HasCertificate
	// contains filtered or unexported fields
}

RestRouter struct {

func NewRestRouter

func NewRestRouter() *RestRouter

NewRestRouter constructs RestRouter instance

func NewRestRouterWithCerti

func NewRestRouterWithCerti(path string) *RestRouter

NewRestRouterWithCerti constructs RestRouter instance with Certificate file path

func (*RestRouter) Add

Add registers REST API to RestRouter

func (RestRouter) Start

func (r RestRouter) Start()

Start wraps ListenAndServe function

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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