sdk

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: Apache-2.0 Imports: 59 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuditorCheckServiceProvider

func NewAuditorCheckServiceProvider(in struct {
	dig.In
	TMSProvider     common.TokenManagementServiceProvider
	NetworkProvider common.NetworkProvider
	Checkers        []common.NamedChecker `group:"auditdb-checkers"`
}) *db.AuditorCheckServiceProvider

NewAuditorCheckServiceProvider creates an auditor check service provider using dependency injection. It aggregates TMS provider, network provider, and custom checkers from the DI container.

func NewOwnerCheckServiceProvider

func NewOwnerCheckServiceProvider(in struct {
	dig.In
	TMSProvider     common.TokenManagementServiceProvider
	NetworkProvider common.NetworkProvider
	Checkers        []common.NamedChecker `group:"ttxdb-checkers"`
}) *db.OwnerCheckServiceProvider

NewOwnerCheckServiceProvider creates an owner check service provider using dependency injection. It aggregates TMS provider, network provider, and custom checkers from the DI container.

Types

type SDK

type SDK struct {
	dig2.SDK
}

SDK wraps the base SDK and provides token platform functionality.

func NewFrom

func NewFrom(sdk dig2.SDK) *SDK

NewFrom wraps an existing SDK with token platform capabilities.

func NewSDK

func NewSDK(registry services.Registry) *SDK

NewSDK creates a new Panurus from a service registry.

func (*SDK) Install

func (p *SDK) Install() error

Install registers all token platform dependencies in the DI container. It skips installation if the token platform is disabled in configuration.

func (*SDK) Start

func (p *SDK) Start(ctx context.Context) error

Start initializes and starts the token platform services. It skips startup if the token platform is disabled in configuration.

func (*SDK) TokenEnabled

func (p *SDK) TokenEnabled() bool

TokenEnabled checks if the token platform is enabled in configuration.

Jump to

Keyboard shortcuts

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