internal

package
v0.0.0-...-1e55c69 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const AppOcspType = "ocsp"
View Source
const AppTlsType = "tls"

Variables

View Source
var InjectorSet = wire.NewSet(wire.Struct(new(Injector), "*"))

Functions

func Init

func Init(ctx context.Context, opts ...Option) (func(), error)

func InitGinEngine

func InitGinEngine(r router.IRouter) *gin.Engine

func InitOCSPServer

func InitOCSPServer(ctx context.Context, handler http.Handler) func()

OCSP 服务

func InitOcspEngine

func InitOcspEngine(r *api.OcspAPI) *http.ServeMux

func InitTLSServer

func InitTLSServer(ctx context.Context, handler http.Handler) func()

TLS 服务

func Run

func Run(ctx context.Context, opts ...Option) error

Types

type Injector

type Injector struct {
	Engine     *gin.Engine
	OcspEngine *http.ServeMux
}

func BuildInjector

func BuildInjector(ctx context.Context) (*Injector, func(), error)

type Option

type Option func(*options)

func SetAppType

func SetAppType(s string) Option

func SetConfigFile

func SetConfigFile(s string) Option

func SetVersion

func SetVersion(s string) Option

Directories

Path Synopsis
dao

Jump to

Keyboard shortcuts

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