core

package
v0.0.0-...-6031783 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultMux

func DefaultMux() mux.IMux

func GetServiceName

func GetServiceName() string

func GetServiceNameUrl

func GetServiceNameUrl() string

func NewMux

func NewMux(r *mux.Resource, options ...mux.OptionHandler) (mux.IMux, error)

func SetCors

func SetCors(opt *mux.Option, m *mux.Mux)

func SetLimiter

func SetLimiter(opt *mux.Option, m *mux.Mux)

func SetServiceName

func SetServiceName(name string)

func SetSystem

func SetSystem(m *mux.Mux)

Types

type HealthResponse

type HealthResponse struct {
	Version      string `json:"version"`
	BuildVersion string `json:"buildVersion"`
	BuildDate    string `json:"buildDate"`
	Datetime     string `json:"datetime"`
	Environment  string `json:"environment"`
	Service      string `json:"service"`
	Host         string `json:"host"`
	Status       string `json:"status"`
}

func NewHealthResponse

func NewHealthResponse() *HealthResponse

type RouterHandler

type RouterHandler func(r *RouterResource)

type RouterResource

type RouterResource struct {
	Mux mux.IMux
}

Jump to

Keyboard shortcuts

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