Versions in this module Expand all Collapse all v1 v1.11.11 Aug 6, 2024 Changes in this version + const CodecVersion + const MaxFetchedByRange + var Codec codec.Manager + type Client interface + GetContainerByID func(ctx context.Context, containerID ids.ID, options ...rpc.Option) (Container, uint64, error) + GetContainerByIndex func(ctx context.Context, index uint64, options ...rpc.Option) (Container, error) + GetContainerRange func(ctx context.Context, startIndex uint64, numToFetch int, options ...rpc.Option) ([]Container, error) + GetIndex func(ctx context.Context, containerID ids.ID, options ...rpc.Option) (uint64, error) + GetLastAccepted func(context.Context, ...rpc.Option) (Container, uint64, error) + IsAccepted func(ctx context.Context, containerID ids.ID, options ...rpc.Option) (bool, error) + func NewClient(uri string) Client + type Config struct + APIServer server.PathAdder + AllowIncompleteIndex bool + BlockAcceptorGroup snow.AcceptorGroup + DB database.Database + IndexingEnabled bool + Log logging.Logger + ShutdownF func() + TxAcceptorGroup snow.AcceptorGroup + VertexAcceptorGroup snow.AcceptorGroup + 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 GetContainerByIDArgs struct + Encoding formatting.Encoding + ID ids.ID + type GetContainerByIndexArgs 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 + ID ids.ID + type GetIndexResponse struct + Index json.Uint64 + type GetLastAcceptedArgs struct + Encoding formatting.Encoding + type Indexer interface + func NewIndexer(config Config) (Indexer, error) + type IsAcceptedArgs struct + ID ids.ID + type IsAcceptedResponse struct + IsAccepted bool