info

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: May 14, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	Latest      *types.TeeInfoResponse
	LastUpdated time.Time

	sync.RWMutex
	// contains filtered or unexported fields
}

Service holds the latest TEE info and manages updating it.

When you are accessing Latest or LastUpdate mutex should be used.

func NewService

func NewService(db *gorm.DB, aq *queue.ActionQueues, rs *result.ResultStorage, tc *config.InfoTiming) Service

func (*Service) FetchInfo

func (s *Service) FetchInfo(ctx context.Context, timeout time.Duration) (*types.TeeInfoResponse, error)

FetchInfo updates info and returns the update.

func (*Service) Run

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

Run starts the periodic update of TEE info.

Jump to

Keyboard shortcuts

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