usecase

package
v0.0.0-...-8450a52 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

func NewController

func NewController(httpInjector HttpInjector, apiError module.ApiError, rootCommand *cobra.Command) *Controller

func (*Controller) InjectCommand

func (c *Controller) InjectCommand(commands ...module.CommandController)

TODO: Return error when command already registered

func (*Controller) InjectDownstream

func (c *Controller) InjectDownstream(downstream ...module.DownstreamController)

func (*Controller) InjectHTTP

func (ctrl *Controller) InjectHTTP(httpControllers ...module.HttpController)

TODO: Return error when controller already registered

func (*Controller) InjectMetric

func (c *Controller) InjectMetric(metric ...module.MetricController)

func (*Controller) ListDownstream

func (c *Controller) ListDownstream() []module.DownstreamController

func (*Controller) ListMetric

func (c *Controller) ListMetric() []module.MetricController

type HttpInjector

type HttpInjector func(httpMethod, relativePath string, handlers ...gin.HandlerFunc) gin.IRoutes

Jump to

Keyboard shortcuts

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