Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GuardianSet ¶
type GuardianSet struct { GstByIndex []common.GuardianSet ExpirationTimeByIndex []time.Time }
GuardianSet definition.
func (GuardianSet) GetLatest ¶
func (gs GuardianSet) GetLatest() common.GuardianSet
GetLatest get the lastest guardianset.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(repo *repository.GuardianSetRepository, p2pNetwork string, cache cache.Cache, metrics metrics.Metrics, logger *zap.Logger) *Service
func (*Service) GetGuardianSet ¶
func (s *Service) GetGuardianSet(ctx context.Context) (*GuardianSet, error)
Click to show internal directories.
Click to hide internal directories.