grpcserver

package
v0.5.9 Latest Latest
Warning

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

Go to latest
Published: May 21, 2026 License: BSD-2-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Apiv1

type Apiv1 interface {
	SaveCredentialSubject(ctx context.Context, req *apiv1.SaveCredentialSubjectRequest) error
}

Apiv1 interface for the apiv1 client methods used by grpcserver

type Service

type Service struct {
	apiv1_registry.RegistryServiceServer
	// contains filtered or unexported fields
}

Service is the service object for grpcserver

func New

func New(ctx context.Context, tokenStatusListIssuer TokenStatusListIssuer, apiv1 Apiv1, cfg *model.Cfg, log *logger.Log) (*Service, error)

New creates a new gRPC server service

func (*Service) Close

func (s *Service) Close(ctx context.Context) error

Close closes the service

func (*Service) SaveCredentialSubject

SaveCredentialSubject saves credential subject info linked to a Token Status List entry

func (*Service) TokenStatusListAddStatus

TokenStatusListAdd adds a new status entry to the Token Status List

func (*Service) TokenStatusListUpdateStatus

TokenStatusListUpdate updates an existing status entry in the Token Status List

type TokenStatusListIssuer

type TokenStatusListIssuer interface {
	AddStatus(ctx context.Context, status uint8) (int64, int64, error)
	UpdateStatus(ctx context.Context, section int64, index int64, status uint8) error
}

TokenStatusListIssuer interface for Token Status List operations

Jump to

Keyboard shortcuts

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