compcontgin

package module
v0.0.0-...-c98b72b Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const TypeName compcont.ComponentType = "contrib.gin"

Variables

This section is empty.

Functions

func MustRegister

func MustRegister(registry compcont.IFactoryRegistry)

Types

type Component

type Component interface {
	gin.IRouter
}

func New

func New(cc compcont.IComponentContainer, cfg Config) (c Component, err error)

type Config

type Config struct {
	Mode        string                                                `ccf:"mode"`
	ListenAddrs []string                                              `ccf:"listen_addrs"`
	Middlewares []compcont.TypedComponentConfig[any, gin.HandlerFunc] `ccf:"middlewares"`
}

Jump to

Keyboard shortcuts

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