Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client interface { // ProposeBlock submits data for a block ProposeBlock(ctx context.Context, data [timestampvm.DataLen]byte) (bool, error) // GetBlock fetches the contents of a block GetBlock(ctx context.Context, blockID *ids.ID) (uint64, [timestampvm.DataLen]byte, uint64, ids.ID, ids.ID, error) }
Client defines timestampvm client operations.
type EndpointRequester ¶
type EndpointRequester struct {
// contains filtered or unexported fields
}
EndpointRequester is an extension of AvalancheGo's EndpointRequester with http.Client reuse.
func NewEndpointRequester ¶
func NewEndpointRequester(uri, base string) *EndpointRequester
func (*EndpointRequester) SendRequest ¶
Click to show internal directories.
Click to hide internal directories.