common

package
v0.0.0-...-0651e20 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	TimeZone   = "Asia/Shanghai"
	TimeFormat = "2006-01-02 15:04:05"
)

Variables

View Source
var (
	ControllerFuncSuffix = "Action"
	ControllerPreExecute = "PreExecute"
	ControllerSetContext = "SetContext"
)
View Source
var DefaultLogStore = LogStoreLoki

Functions

func TargetNginxIngressAnnotation

func TargetNginxIngressAnnotation(str string) bool

for service

Types

type ApiGroup

type ApiGroup string
const (
	ApiGroupApis ApiGroup = "apis"
)

type LogStoreEnd

type LogStoreEnd string
var (
	LogStoreLoki LogStoreEnd = "loki"
	LogStoreES   LogStoreEnd = "es"
)

type RestAPIMeta

type RestAPIMeta struct {
	ApiGroup     ApiGroup
	Handler      string
	Method       string
	Act          string
	Path         string
	GroupVersion schema.GroupVersion
	HandlerFunc  func(e echo.Context) error
}

func (RestAPIMeta) ApiPath

func (r RestAPIMeta) ApiPath() string

compose api path

func (RestAPIMeta) Gen

func (r RestAPIMeta) Gen(gv schema.GroupVersion, apiGroup ApiGroup, mod, m, a, p string) RestAPIMeta

Jump to

Keyboard shortcuts

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