service

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: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CertificateSet = wire.NewSet(wire.Struct(new(CertificateSrv), "*"))
View Source
var OcspSet = wire.NewSet(wire.Struct(new(OcspSrv), "*"))
View Source
var ServiceSet = wire.NewSet(
	TlsSet,
	OcspSet,
	CertificateSet,

) // end
View Source
var TlsSet = wire.NewSet(wire.Struct(new(TlsSrv), "*"))

Functions

This section is empty.

Types

type CertificateSrv

type CertificateSrv struct {
	CertificateRepo *dao.CertificateRepo
}

func (*CertificateSrv) GetC

func (a *CertificateSrv) GetC(ctx context.Context, key string) (interface{}, error)

func (*CertificateSrv) GetS

type OcspSrv

type OcspSrv struct {
	CertificateRepo *dao.CertificateRepo
	CfsslHandler    *initx.CfsslHandler
	Cache           *memorycacher.Cache
	Ctx             context.Context
}

func (*OcspSrv) Query

func (a *OcspSrv) Query(req *stdocsp.Request) ([]byte, http.Header, error)

type TlsSrv

type TlsSrv struct {
	CertificateRepo *dao.CertificateRepo
	CfsslHandler    *initx.CfsslHandler
}

func (*TlsSrv) AuthSign

func (*TlsSrv) Info

func (a *TlsSrv) Info(c *gin.Context)

func (*TlsSrv) Revoke

func (a *TlsSrv) Revoke(ctx context.Context, params schema.RevokeParams) error

Jump to

Keyboard shortcuts

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