internal

package
v0.0.0-...-86cf879 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: MIT 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()

InitOCSPServer OCSP 服务

func InitOcspEngine

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

func InitTLSServer

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

InitTLSServer TLS 服务

func Run

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

Types

type Injector

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

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