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 NewRestRouterWithCerti ¶
func NewRestRouterWithCerti(path string) *RestRouter
NewRestRouterWithCerti constructs RestRouter instance with Certificate file path
func (*RestRouter) Add ¶
func (r *RestRouter) Add(s restinterface.IRestRoutes)
Add registers REST API to RestRouter
Click to show internal directories.
Click to hide internal directories.