Documentation

Overview

Package http provides the client transport for Reunion DB queries over http.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Transport

type Transport struct {
	// contains filtered or unexported fields
}

Transport is used by Reunion protocol clients to send queries to the Reunion DB service over HTTP.

func NewTransport

func NewTransport(url string) *Transport

NewTransport creates a new Transport given a URL string.

func (*Transport) CurrentEpochs

func (k *Transport) CurrentEpochs() ([]uint64, error)

CurrentEpochs returns the valid epochs the transport provides

func (*Transport) CurrentSharedRandoms

func (k *Transport) CurrentSharedRandoms() ([][]byte, error)

CurrentSharedRandoms returns the valid shared randoms the transport provides

func (*Transport) Query

func (k *Transport) Query(command commands.Command) (commands.Command, error)

Query sends the command to the destination Reunion DB service over HTTP.

Source Files