managementhttp

package
v1.0.63 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2026 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildResult

type BuildResult struct {
	Engine      *gin.Engine
	Handler     *cpasdkapi.Handler
	AuthManager *cpacoreauth.Manager
}

func Build

func Build(configFilePath string, opts ...RouteOption) (*BuildResult, error)

Build builds a build.

type ClusterManagementOption

type ClusterManagementOption struct {
	Enabled          bool
	Repository       *cluster.Repository
	Runtime          *home.Runtime
	NodeIP           string
	NodePort         int
	HeartbeatTimeout time.Duration
	ForwardTLSConfig *tls.Config
	QuotaRecollect   clustermanagement.QuotaRecollectTrigger
}

type DatabaseManagementOption added in v1.0.44

type DatabaseManagementOption = ClusterManagementOption

type RouteKey

type RouteKey struct {
	Method string
	Path   string
}

type RouteOption

type RouteOption func(*RouteRegistry)

func WithDatabaseManagement added in v1.0.44

func WithDatabaseManagement(opt DatabaseManagementOption) RouteOption

WithDatabaseManagement applies the database-backed management option.

type RouteRegistry

type RouteRegistry struct {
	// contains filtered or unexported fields
}

func (*RouteRegistry) Register

func (r *RouteRegistry) Register(group *gin.RouterGroup)

Register wires package handlers into the provided registry.

func (*RouteRegistry) Set

func (r *RouteRegistry) Set(method, path string, handler gin.HandlerFunc)

Set updates set.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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