goserve

package
v1.2.10 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: MIT Imports: 13 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	Router *chi.Mux
	// contains filtered or unexported fields
}

func GetService added in v1.0.4

func GetService(r *chi.Mux, port string, cert string, key string, tlsEnabled bool, mInfo map[string]interface{}) *Service

func NewService

func NewService(port string) *Service

func (*Service) EnableProfiling

func (c *Service) EnableProfiling(isEnable bool)

func (*Service) SetGlobalMetrics

func (c *Service) SetGlobalMetrics(handler http.Handler)

func (*Service) SetInfo added in v1.1.2

func (c *Service) SetInfo(info map[string]interface{})

func (*Service) Start

func (c *Service) Start() error

Jump to

Keyboard shortcuts

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