Versions in this module Expand all Collapse all v1 v1.0.0 Jun 19, 2022 Changes in this version + const MaxFetchedByRange + type Client interface + GetContainerByID func(context.Context, *GetIndexArgs) (Container, error) + GetContainerByIndex func(context.Context, *GetContainer) (Container, error) + GetContainerRange func(context.Context, *GetContainerRangeArgs) ([]Container, error) + GetIndex func(context.Context, *GetIndexArgs) (uint64, error) + GetLastAccepted func(context.Context, *GetLastAcceptedArgs) (Container, error) + IsAccepted func(context.Context, *GetIndexArgs) (bool, error) + func NewClient(host, endpoint string) Client + type Config struct + APIServer server.RouteAdder + AllowIncompleteIndex bool + ConsensusDispatcher *triggers.EventDispatcher + DB database.Database + DecisionDispatcher *triggers.EventDispatcher + IndexingEnabled bool + Log logging.Logger + ShutdownF func() + type Container struct + Bytes []byte + ID ids.ID + Timestamp int64 + type FormattedContainer struct + Bytes string + Encoding formatting.Encoding + ID ids.ID + Index json.Uint64 + Timestamp time.Time + type GetContainer struct + Encoding formatting.Encoding + Index json.Uint64 + type GetContainerRangeArgs struct + Encoding formatting.Encoding + NumToFetch json.Uint64 + StartIndex json.Uint64 + type GetContainerRangeResponse struct + Containers []FormattedContainer + type GetIndexArgs struct + ContainerID ids.ID + Encoding formatting.Encoding + type GetIndexResponse struct + Index json.Uint64 + type GetLastAcceptedArgs struct + Encoding formatting.Encoding + type Index interface + GetContainerByID func(containerID ids.ID) (Container, error) + GetContainerByIndex func(index uint64) (Container, error) + GetContainerRange func(startIndex uint64, numToFetch uint64) ([]Container, error) + GetIndex func(containerID ids.ID) (uint64, error) + GetLastAccepted func() (Container, error) + type Indexer interface + func NewIndexer(config Config) (Indexer, error) + type IsAcceptedResponse struct + IsAccepted bool